Nov 9, 2004 #1 chessbot Programmer Mar 14, 2004 1,524 US I know that sine 30° is 0.5. Why, then, does Code: System.out.println(Math.sin(30.0)); print -0.9880316240928618? --Chessbot "See the TURTLE of enormous girth!" -- Stephen King, The Dark Tower series
I know that sine 30° is 0.5. Why, then, does Code: System.out.println(Math.sin(30.0)); print -0.9880316240928618? --Chessbot "See the TURTLE of enormous girth!" -- Stephen King, The Dark Tower series
Nov 9, 2004 1 #2 stefanwagner Programmer Oct 19, 2003 2,373 DE Perhaps Math.sin doesn't work with degrees (360) but with rad (100?) or 2 PI? seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung Upvote 0 Downvote
Perhaps Math.sin doesn't work with degrees (360) but with rad (100?) or 2 PI? seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung
Nov 9, 2004 Thread starter #3 chessbot Programmer Mar 14, 2004 1,524 US Thank you. Just checked the Sun documentation and that is correct. --Chessbot "See the TURTLE of enormous girth!" -- Stephen King, The Dark Tower series Upvote 0 Downvote
Thank you. Just checked the Sun documentation and that is correct. --Chessbot "See the TURTLE of enormous girth!" -- Stephen King, The Dark Tower series