pow
Computes one argument to the power of another argument and scales the result.
Syntax
ares pow aarg, kpow [, inorm]
ires pow iarg, ipow [, inorm]
kres pow karg, kpow [, inorm]
ires[] pow iarg[], ipow[]
kres[] pow karg[], kpow[]
ires[] pow iarg[], ipow
kres[] pow karg[], kpow
Initialization
inorm (optional, default=1) -- The number to divide the result (default to 1). This is especially useful if you are doing powers of a- or k- signals where samples out of range are extremely common!
Performance
aarg, iarg, karg -- the base.
ipow, kpow -- the exponent.
Note
Use ˆ with caution in arithmetical statements, as the precedence may not be correct. New in Csound version 3.493.
Examples
Here is an example of the pow opcode. It uses the file pow.csd.
Its output should include lines like these:
See also
Opcode Equivalents of Functions
Credits
Author: Paris Smaragdis
MIT, Cambridge
1995