Results 1 to 2 of 2
Thread: Sin() Wrong Results
- 12-07-2011, 09:28 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 11
- Rep Power
- 0
Sin() Wrong Results
I have the following java snippet:
zMove = Math.sin(rotationN);
zMove is a double, while rotationN is an integer.
The problem arises in the calculation. When rotationN is 30, the result should be 0.5. However, the output is -0.9880316240928618. What am I doing wrong, and what should I change? Thanks in advance.
EDIT: Solved. Apparently, it was working in Radians. Please, Mods, do not delete this post. Maybe someone with the same problem sees this. Thanks.Last edited by MemoNick; 12-07-2011 at 09:34 AM.
- 12-07-2011, 02:21 PM #2
Similar Threads
-
Wrong output (well.. the one who's wrong is probably me ;) )
By shacht1 in forum New To JavaReplies: 4Last Post: 06-11-2013, 01:37 AM -
wrong results with recursion
By sara12345 in forum New To JavaReplies: 0Last Post: 04-12-2010, 04:49 PM -
Wrong Numeric Results with Right Math Implementation.
By Übermenschen in forum Advanced JavaReplies: 4Last Post: 04-02-2010, 02:52 AM -
Sometimes get the right results sometimes dont
By Battlefeldt in forum New To JavaReplies: 0Last Post: 12-18-2009, 01:03 AM -
InsertionSort My SourceCode - wrong results
By JohnF8FJohn in forum New To JavaReplies: 1Last Post: 11-27-2008, 01:11 AM


2Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks