Page 1 of 1

Add more Native Math functions.

Posted: Tue Feb 16, 2010 7:58 pm
by skywalk
Hi,
I know this topic has been brought up before, but can we add some more native basic functions?

http://www.purebasic.fr/english/viewtop ... s&start=15

Couldn't find the antilogarithm -> Exp(). The complement of the Log() function.

Work around:
I know with the Pow(x.d, exponent.d) function you get x ^ exponent.
So, without Exp(), I am forced to create a constant for e ~= 2.7182818284590452353, and use it in the Pow() function.
Pow(#E, 2) = 7.3890560989306762

Can we add a constant for #E to the list of built-in constants?
#E = 2.7182818284590452353
#PI already exists. :)

Thanks for a great development tool!

Re: Add more Native Math functions.

Posted: Sun Feb 21, 2010 10:41 pm
by freak
done for the next version.

Re: Add more Native Math functions.

Posted: Mon Feb 22, 2010 2:13 am
by skywalk
Cool,
This really is an awesome development tool! :)

Re: Add more Native Math functions.

Posted: Mon Feb 22, 2010 8:48 am
by Michael Vogel
freak wrote:done for the next version.
Cool.
Next step, even more complicate (integer) things, like signum, min, max, scale,... ? :wink:

Michael

Re: Add more Native Math functions.

Posted: Mon Feb 22, 2010 12:51 pm
by blueznl
Mine is very little... I mean, my request :-)

^ <-- is all... 2^2 etc. just like in most other Basic dialects... It looks so much nicer than Pow(2,2)... IMHO YMMV etc. etc. etc.