Page 1 of 3
3.1 version
Posted: Sat Nov 30, 2013 7:07 pm
by Mr. Kibernetik
Function LOG(x) will be duplicated as LN(x).
Re: 3.1 version
Posted: Sun Dec 01, 2013 7:57 pm
by Mr. Kibernetik
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].
Re: 3.1 version
Posted: Mon Dec 02, 2013 6:49 pm
by Dalede
Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
LN(x) is usually a natural log (base e)
Dale
Re: 3.1 version
Posted: Mon Dec 02, 2013 6:51 pm
by Mr. Kibernetik
Dalede wrote:Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
LN(x) is usually a natural log (base e)
Dale
Yes, ECMA BASIC defines LOG() as natural logarithm. Now LN() will be the same, just one more name for this function.
Re: 3.1 version
Posted: Mon Dec 02, 2013 6:55 pm
by Dalede
Mr. Kibernetik wrote:Dalede wrote:Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
LN(x) is usually a natural log (base e)
Dale
Yes, ECMA BASIC defines LOG() as natural logarithm. Now LN() will be the same, just one more name for this function.
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
Re: 3.1 version
Posted: Mon Dec 02, 2013 6:56 pm
by Mr. Kibernetik
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
Yes, LOG() is not the best name for natural logarithm. But let it be so for the sake of standard.
Re: 3.1 version
Posted: Tue Dec 03, 2013 8:23 pm
by Mr. Kibernetik
New math operation will be implemented: % (remainder of division)
5%3=2
Re: 3.1 version
Posted: Wed Dec 04, 2013 2:33 pm
by Mr. Kibernetik
Command OPTION BASE will accept expressions:
OPTION BASE n
makes array indices start with [n]. Valid values are 0 or 1. Default is 0.
Re: 3.1 version
Posted: Wed Dec 04, 2013 10:17 pm
by wdmcdaniel
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
Re: 3.1 version
Posted: Thu Dec 05, 2013 4:17 pm
by Mr. Kibernetik
Retina graphics will be optimized: to run 5 times faster, with better quality.