2.6 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

2.6 version

Post by Mr. Kibernetik »

Will be adapted for iOS 7.

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: 2.6 version

Post by Mr. Kibernetik »

INT() function will work more correctly.

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: 2.6 version

Post by Mr. Kibernetik »

Very important addition: now smart BASIC will understand both real and complex numbers.

Numeric variables can contain real and complex numbers.
Numeric variables with real numbers:
A = 10
B = 0.5E2
with complex numbers:
C = 2-3i
D = 1i

All math functions and operations will give proper result according to real or complex operands.

For example, it will be correct to write:
PRINT SQRT(-4)
and to get:
2i

Some commands and functions, for example loops and array indices will use only real component of number.

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

2.6 version

Post by Henko »

All math functions and operations will give proper result according to real or complex operands.

For example, it will be correct to write:
PRINT SQRT(-4)
and to get:
2i


PRINT exp(i*pi)
Will get:
-1 (as it should) ?

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: 2.6 version

Post by Mr. Kibernetik »

Henko wrote: PRINT exp(i*pi)
Will get:
-1 (as it should) ?
Yes, of course.

It will be written like this:

Code: Select all

PRINT exp(1i*pi)
because 'i' will be treated as variable, but '1i' as a complex number.

By the way, you can become beta-tester to test it yourself :)

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: 2.6 version

Post by Mr. Kibernetik »

New functions will be implemented:

RNDC (x)
returns random complex number with real and imaginary components from 0 to [x], not including [x]. If [x] > 1 then this is an integer number. If 0 <= [x] <= 1 then this is a float number.
Although this is a sequence of random values, it is the same at each program run. Use RANDOMIZE command to change the sequence.

REAL (x)
returns real component of complex number [x].

IMAG (x)
returns imaginary component of complex number [x].

SGNC (x)
SIGNC (x)
return sign of imaginary part of complex number [x]: -1 if [x] < 0, 0 if [x] = 0, 1 if [x] > 0.

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: 2.6 version

Post by Mr. Kibernetik »

New example programs will be added.

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: 2.6 version

Post by Mr. Kibernetik »

Manual will be updated and redesigned.

Parameter TEXT in FIELD command will be optional.

FIELD and BUTTON commands will be optimized for speed.

New interface object "switch" will be implemented with respective commands:

SWITCH n$ DELETE
deletes switch which name is [n$].

SWITCH n$ STATE k AT x, y
creates switch with name [n$] at point [x,y] with state [k]. If [k] = 0 then switch is off, otherwise it is on. If you need to change switch state or coordinates then just use this command again with the same switch name and new parameters.

SWITCH_STATE (n$)
returns state of switch with name [n$].
On = 1, off = 0.

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: 2.6 version

Post by Mr. Kibernetik »

RESET TIMER command will also have better syntax TIMER RESET.

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: 2.6 version

Post by Mr. Kibernetik »

New user interface object "slider" will be implemented with commands:

slider n$ delete
deletes slider with name [n$].

slider n$ value k at x,y hsize s
creates horizontal slider with name [n$], value [k], at point [x,y] and width [s].

slider n$ value k at x,y Vsize s
creates vertical slider with name [n$], value [k], at point [x,y] and height [s].

slider_value (n$)
returns value of slider with name [n$].

Post Reply