Csound Csound-dev Csound-tekno Search About

Re: [Fwd: ] exp/power

Date1998-09-01 14:04
Fromroger k
SubjectRe: [Fwd: ] exp/power
exp(x) returns e raised to the xth power : e^x

what you are looking for is the ipow,kpow or apow opcodes

Date1998-09-01 17:01
FromErik Spjut
SubjectRe: [Fwd: ] exp/power
At 3:04 PM +0200 9/1/98, roger k wrote:
>exp(x) returns e raised to the xth power : e^x
>
>what you are looking for is the ipow,kpow or apow opcodes

Just for the record, in addition to ipow, kpow, and apow (which are the
best way) you can also do 100^2 as:

i1 = exp(2*log(100))

or aa^ab as

a1 = exp(ab*log(aa))

-------------------------------------------------------------------------------
Erik Spjut (pronounce ju as long u or yew) - Associate Professor of Engineering
and  Associate Director for Engineering Computing,  Center for Design Education
Harvey Mudd College, Claremont, CA 91711-5990  USA
Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967