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 Professional Discussion / Bug discovery in asin() command?

Author
Message
Philip
23
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 14th Jul 2003 19:11
I've been trying to use the asin() command in DBPro. For those non-mathematicians amongst us, asin() is arcsine. Arcsine in mathematics returns the angle of a triangle when the length of the hypotenuse is divided by the length of the opposite site.

Interesting, the asin command doesn't seem to work. It either returns 90 when a 90 angle is present, or otherwise 0.

I've attached my code in case I am doing something wrong and someone can point it out to me.

Phil
What do you mean, bears aren't supposed to wear hats and a tie?
Philip
23
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 14th Jul 2003 19:23
Disregard the last post. There is no bug. Just a shockingly simple mathematical fault by yours truly.

I've divided the opposite by the hypotenuse when it should have been vice versa. Duuuh!

Phil (smacks himself repeatedly)

What do you mean, bears aren't supposed to wear hats and a tie?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Jul 2003 20:47
Can I join in? (smacks Phil)
Philip
23
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 15th Jul 2003 17:30
To misquote Gandalf, do not meddle in the affairs of Bears, because we are large and hairy, and quick to anger.

Er. I think.

Phil

What do you mean, bears aren't supposed to wear hats and a tie?

Login to post a reply

Server time is: 2026-07-21 21:25:25
Your offset time is: 2026-07-21 21:25:25