Re: What Do FL and EXP Mean in Csound Source Code?
| Date | 2017-03-19 04:08 | |||||||||||||||||
| From | Partev Barr Sarkissian | |||||||||||||||||
| Subject | Re: What Do FL and EXP Mean in Csound Source Code? | |||||||||||||||||
That makes sense. "FL tends to point to Floats in most of what I've seen. This example is single precision? Isn't e^x :: Euler to the "x" power exponent? And x^(n) would be the base of "x" to the power exponent "n"-some number? -PBS =============================================== --- jpff@CODEMIST.CO.UK wrote: From: John ff <jpff@CODEMIST.CO.UK> To: CSOUND@LISTSERV.HEANET.IE Subject: Re: [Csnd] What Do FL and EXP Mean in Csound Source Code? Date: Wed, 15 Mar 2017 12:05:03 +0000 EXP is a macro that deals with float/double option. FL is similar for constants.
Sent from TypeApp
On 15 Mar 2017, at 05:52, Nikhil Singh <nsingh1@BERKLEE.EDU> wrote:
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Netscape. Just the Net You Need. |
| Date | 2017-03-19 19:57 |
| From | jpff |
| Subject | Re: What Do FL and EXP Mean in Csound Source Code? |
On Sat, 18 Mar 2017, Partev Barr Sarkissian wrote:
>
>
> That makes sense. "FL tends to point to Floats in most of what I've seen.
> This example is single precision?
>
> Isn't e^x :: Euler to the "x" power exponent?
> And x^(n) would be the base of "x" to the power exponent "n"-some number?
>
>
True but not useful. Te exp function (ad expf) re much more efficient.
FL(1.0) expands to 1.0 is USE_DOUBLE or 1.0f if not. Removes a number of
compiler warnings and potential type conversions
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |