How to calculate digital roots in DSP?
Posted: Mon Apr 02, 2018 7:38 pm
I'd like to learn about modular iterations and operations in dsp code. wiki on subject > https://en.wikipedia.org/wiki/Digital_root
example..
dr(45) = 9
4+5 = 9
or
dr(1618) = 16
1 + 6 + 1 + 8 = 16
or to further reduce to one digit
1 + 6 = 7
how do we perform these modular operations in DSP code?
streamin x;
streamout out;
float y;
y = dr(x);
out = y;
example..
dr(45) = 9
4+5 = 9
or
dr(1618) = 16
1 + 6 + 1 + 8 = 16
or to further reduce to one digit
1 + 6 = 7
how do we perform these modular operations in DSP code?
streamin x;
streamout out;
float y;
y = dr(x);
out = y;