I know why but this is kind of difficult to explain actually... I'll try to.
Trigonometric arguments can be in either degrees or radians.
When it is in degrees: tan((-90)°) = complex infinity
When it is in radians: tan(-90) = -tan(90) = 1.9952004122082420252873530763796023761917715543914539347143...
Scratch takes trigonometric arguments in degrees, while your calculators take trigonometric arguments in radians.
Offline
http://en.wikipedia.org/wiki/Radian
deg = rad * (180/ pi)
Degrees and Radians are different. Now who ever has a calculator make sure that you leave it on degrees. Usually represented by "d" on a scientific calculator. Unless a question says it in radians don't use it as you'll get questions wrong.
On many Casio scientific calc's degrees is default. To restore default settings check your manual.
My scientific is Shift --> 9 (CLR) --> 1 (Setup) --> =
Also I can change to and from rads by Shift --> Setup
My site Offline
johndo77 wrote:
Thanks! I thought it might have something to do with that, but I'm not very good at trigonometry.
Is there a way to turn Scratch from degrees to radians?
I don't think so, but you can always convert degrees to radians with this equation:
radians = (degrees * pi)/180 degrees = radians * (180/pi)
Offline
Harakou wrote:
johndo77 wrote:
Thanks! I thought it might have something to do with that, but I'm not very good at trigonometry.
Is there a way to turn Scratch from degrees to radians?I don't think so, but you can always convert degrees to radians with this equation:
Code:
radians = (degrees * pi)/180 degrees = radians * (180/pi)
Cool.
Offline
mathematics wrote:
I know why but this is kind of difficult to explain actually... I'll try to.
Trigonometric arguments can be in either degrees or radians.
When it is in degrees: tan((-90)°) = complex infinity
When it is in radians: tan(-90) = -tan(90) = 1.9952004122082420252873530763796023761917715543914539347143...
Scratch takes trigonometric arguments in degrees, while your calculators take trigonometric arguments in radians.
That makes sense....let me try switching my calculator to degrees mode...
EDIT: Yep, you're right.
Last edited by ScratchReallyROCKS (2010-12-24 13:58:13)
Offline
if you draw a graph using tangent of x, -90 is where it is straight up and down.
it's shaped like this:
*
|
/| /
.-' | .-'
/ |/
|
* x:-90Last edited by MarioLuigi2009 (2011-01-04 18:01:26)
Offline