|
Feedback on: Math functions in JavaScript
irt.org | About | Feedback | 4632 [ previous next ] Feedback on: Math functions in JavaScript
Sent by Soner on Saturday May 26, 2007 at 05:08:49
Worth:
Length:
Technical:
Comments: I just read info about using sin() cos() and even tan() i tried using these but the answers they i found to be wrong? example:
where i = 1
Math.sin(i).toFixed(4) =0.8415 WRONG:
But if you divide i by 57.295800000006835 as in
Math.sin(i/57.295800000006835).toFixed(4) = 0.0175 Correct (had to create for loop to find divide value which equalled the correct value (well near enough)
seems very strange? i enter 1 value and then press sin cos or tan on a calculator and it produces the correct value as stated in an trigonometry table.
Other feedback on 'Math functions in JavaScript' - show all
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.