3.1 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

3.1 version

Post by Mr. Kibernetik »

Function LOG(x) will be duplicated as LN(x).

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post 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].

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 3.1 version

Post by Dalede »

Mr. Kibernetik wrote:Function LOG(x) will be duplicated as LN(x).
LN(x) is usually a natural log (base e)

Dale

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post 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.

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 3.1 version

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post by Mr. Kibernetik »

New math operation will be implemented: % (remainder of division)

5%3=2

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post 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.

wdmcdaniel
Posts: 21
Joined: Thu Nov 14, 2013 4:12 pm

Re: 3.1 version

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.1 version

Post by Mr. Kibernetik »

Retina graphics will be optimized: to run 5 times faster, with better quality.

Post Reply