dcpu-cbmbasic icon indicating copy to clipboard operation
dcpu-cbmbasic copied to clipboard

Implement exponents and logarithms (LOG, EXP, ^ operator)

Open unbibium opened this issue 13 years ago • 3 comments

unbibium avatar Mar 03 '13 00:03 unbibium

There's some literally-translated code for this in the latest commit but it seems to spit out random values when you try anything.

unbibium avatar Mar 03 '13 01:03 unbibium

So I fixed the polynomial routine and EXP() works. The ^ operator and LOG are still not quite done.

unbibium avatar Mar 19 '13 05:03 unbibium

The power operator and LOG are implemented, but inaccurate. They both rely on division, and currently division is only accurate to 16 bits.

This will probably fix itself when #4 is closed.

unbibium avatar Mar 20 '13 06:03 unbibium