nth root?

Sep 8, 2010 at 5:07am

nth root?

Hi all,

For equal divisions of the octave into n divisions, the equation is to find the nth root of 2.

Given that I can’t find a symbol/funtion for [expr] to take the ‘nth root’ of something, how do I calculate it?

Any suggestions greatly appreciated.

Thanks,

Steven

#52224
Sep 8, 2010 at 6:17am

[expr pow($f1,1.0/n)] where n is the nth root (because the nth root of n is the same as finding the power of 1/n). That example would ind the nth root of the input. If you want the input to [expr] to be n in finding the nth root of 2, you would use [expr pow(2,1.0/$f1)]

#187699
Sep 8, 2010 at 8:53am

Excellent…I figured it was something so straightforward but I just wasn’t getting it…thank you!

#187700

You must be logged in to reply to this topic.