3.1 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
3.1 version
Function LOG(x) will be duplicated as LN(x).
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
New functions will be added:
LOG (x, y)
returns logarithm of [x] to base [y].
LOG2 (x)
returns binary logarithm of [x].
LOG10 (x)
returns decimal logarithm of [x].
LOG (x, y)
returns logarithm of [x] to base [y].
LOG2 (x)
returns binary logarithm of [x].
LOG10 (x)
returns decimal logarithm of [x].
Re: 3.1 version
LN(x) is usually a natural log (base e)Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
Dale
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
Yes, ECMA BASIC defines LOG() as natural logarithm. Now LN() will be the same, just one more name for this function.Dalede wrote:LN(x) is usually a natural log (base e)Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
Dale
Re: 3.1 version
Ah, LOG is usually base 10 in most Basics. I hadn't realized it was base e in this basic. Have yet to try it out!Mr. Kibernetik wrote:Yes, ECMA BASIC defines LOG() as natural logarithm. Now LN() will be the same, just one more name for this function.Dalede wrote:LN(x) is usually a natural log (base e)Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
Dale
Dale
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
Yes, LOG() is not the best name for natural logarithm. But let it be so for the sake of standard.Dalede wrote:
Ah, LOG is usually base 10 in most Basics. I hadn't realized it was base e in this basic. Have yet to try it out!
Dale
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
New math operation will be implemented: % (remainder of division)
5%3=2
5%3=2
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
Command OPTION BASE will accept expressions:
OPTION BASE n
makes array indices start with [n]. Valid values are 0 or 1. Default is 0.
OPTION BASE n
makes array indices start with [n]. Valid values are 0 or 1. Default is 0.
-
- Posts: 21
- Joined: Thu Nov 14, 2013 4:12 pm
Re: 3.1 version
Log(x) being the natural log of x in the original BASIC has been a pain for over 40 years! I recall having arguments about it when I was just 15.
Thanks for making LN() ... It's one of the first things I usually do when writing math code ... I like the variations too...being able to express the base is helpful.
Bill
Thanks for making LN() ... It's one of the first things I usually do when writing math code ... I like the variations too...being able to express the base is helpful.
Bill
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.1 version
Retina graphics will be optimized: to run 5 times faster, with better quality.