Skip to content

cbrt

Cubic root function.

Syntax

ires[] cbrt iarg
kres[] cbrt karg

Initialization

iarg[] -- the argument.

Performance

karg[] -- the argument.

Examples

Here is an example of the cbrt opcode. It uses the file cbrt.csd.

Example of the cbrt opcode.
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>


instr 1

iArg[] fillarray 1,2,3
iRes[] cbrt iArg
ik init 0

while ik < lenarray(iRes) do
 print iRes[ik]
 ik += 1
od

endin

</CsInstruments>
<CsScore>
i1 0 0
</CsScore>
</CsoundSynthesizer>

See also

Array opcodes

Credits

Author: Victor Lazzarini
2017