Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / sinus = not sinus

Author
Message
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 4th Jan 2003 20:13
there's a small problem with the sinus and db :
dark basicb> sin(36) = 0.587689
dark basic pro> sin(36) = 0.587785
my calculator> sin(36) = 0.587785

I tried with a few other angles, and it is always the same : dark basic has a problem with the sinus... and the cosinus, tangeante, ..
with db pro, it work without any problem.

( yes, i don't speak well english, but if I do greats errors, tell me please, I want to learn ^^ )
I'm following John, but I'm not john.
Lol, it is funnier in french
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Jan 2003 20:21
It does appear to be wrong, though it is such a small error I doubt it would cause problems in any program, maybe you should stick with DBpro if it is a problem.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 4th Jan 2003 20:41
damn, that is a big problem to me. i use sin and cos commands a lot and mutiply them by sometimes 1000 to get a bigger value. i hope the team goes back and fixes this problem. i'll have to e-mail Lee.

THE TRUTH IS OUT THERE!
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 4th Jan 2003 20:44
btw, i only use dbv1 because there is much that i dont know about db and dbpro has lots of bugs. i am bringing up my math skills by darkbasic a lot. a little math error can be a big problem.

THE TRUTH IS OUT THERE!
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Jan 2003 20:57
Maybe you should change your scale.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 5th Jan 2003 21:02
maybe i should. but right now, i am working with another program for making models and animations for some time for practice. when that time finishes or i decide to go back to darkbasic, dbpro might be well fixed and i would use it. so its less off a problem for me now.

THE TRUTH IS OUT THERE!

Login to post a reply

Server time is: 2024-04-25 12:44:21
Your offset time is: 2024-04-25 12:44:21