Page 1 of 1

NXC Trig functions aren't working...

Posted: 17 Jan 2013, 20:43
by thegenie
Well I have nxtcc up an running on a Mac! :D
Problem is, the trig functions don't work. Cos(90) should be 0, but my NXT is telling me that it's -0.4481. Also, Sin(45) should be .707, but my NXT is pretty firm about it being 0.8509.
Is this just an NXTCC glitch? I know that it's still rough around the edges. Or could it be a FW problem? I'm running the newest test release of the BCC EFW.

Any insight would be greatly appreciated! Thanks! : )

Re: NXC Trig functions aren't working...

Posted: 17 Jan 2013, 20:52
by HaWe
sin/cos is for radians, not for degrees :mrgreen:

Re: NXC Trig functions aren't working...

Posted: 17 Jan 2013, 20:57
by HaWe
nevertheless, there's nothing supposed to be impossible for an Apple computer...
:mrgreen: :mrgreen:

(ok, that was nasty, use
sind(), cosd() instead)
8-)

Re: NXC Trig functions aren't working...

Posted: 17 Jan 2013, 21:10
by thegenie
[facepalm]
How did I pass trig?

Thanks! XD