sqrtMathematical Operations:Mathematical Functionssqrtsqrt
Returns a square root value.
Description
Returns the square root of x (x non-negative).
The argument value is restricted for log,
log10, and sqrt.
Syntaxsqrt(x) (no rate restriction)sqrt(k/i[]) (k- or i-arrays )
where the argument within the parentheses may be an expression. Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression.
Examples
Here is an example of the sqrt opcode. It uses the file sqrt.csd.
Example of the sqrt opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include lines like these:
square root of left channel = 1.000000
square root of left channel = 0.948688
square root of left channel = 0.894437
square root of left channel = 0.836676
square root of left channel = 0.774620
square root of left channel = 0.707139
square root of left channel = 0.632499
square root of left channel = 0.547781
square root of left channel = 0.447295
square root of left channel = 0.316242
See alsoMathematical Functions