Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LN(0.5) = positive!!!!! (solved)
#1
Code:
DIM r1,r2 AS FLOAT

r1 = RND

r2 = (r1)
PRINT "r1=";r2

r2 = LN(r1)
PRINT "LN(r1)=";r2


Attached Files
.tap   Test.tap (Size: 6.18 KB / Downloads: 0)
Reply
#2
Yes, the LN computation was bugged. Thanks for detecting it.
Try this new beta version and let me know if it works ok:

http://www.boriel.com/files/zxb/zxbasic-...a18.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...beta18.zip
http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...x64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...cos.tar.gz
Reply
#3
Works.
Thanks.

Í used this command:

C:> ZXBC -taB Test.bas
WARNING: deprecated flag --tap (use --output-format=tap instead)

Should I use another command?
Reply
#4
You can still use the old one, but from here to 12 months, the old one will be removed.
Reply
#5
At
https://zxbasic.readthedocs.io/en/latest/zxb/

where is

-H HEAP_SIZE, --heap-size HEAP_SIZE
--heap-size HEAP_ADDRESS


should be

-H HEAP_SIZE, --heap-size HEAP_SIZE
--heap-address HEAP_ADDRESS
Reply
#6
Ok, I have updated the command line output
(still need to update the executable names, since zxb is now zxbc).
Also, please, better open a new thread for a different issue. This way we can close what is already done.

Also, I have created a Github Bug report form: https://github.com/boriel-basic/zxbasic/...new/choose
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)