Csound Csound-dev Csound-tekno Search About

Re: Raising to the power?

Date1998-01-23 09:18
FromGabriel Maldonado
SubjectRe: Raising to the power?
Per Villez wrote:

>         I am trying to raise a number to a power within Csound, (say 2
> to
> the power of .04) and as far as I can tell there is no quick
> arithmetical
> operator to do this. The only operator I can find is exp(). Does
> anybody
> have a quick fudge for doing this?

I've implemented the 'powoftwo()' function: it is fast because is
derived from cpsoct() which uses table indexing with integer arithmetic,
and will be avalaible with the next release of my win95 realtime csound
(within a couple of weeks).
--
Gabriel Maldonado

mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
http://www.geocities.com/SiliconValley/Way/7041/home2.htm