This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-12-22 22:31:28

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Tangent of -90

Try it on Scratch! It makes an error!

I tried it on a calculator. It has an answer.

Last edited by johndo77 (2010-12-22 22:31:56)


Crizapples

Offline

 

#2 2010-12-22 22:54:51

Shadowed1
Scratcher
Registered: 2010-01-19
Posts: 100+

Re: Tangent of -90

Ooh, it does  smile


*Insert some witty, funny or sarcastic comment here*

Offline

 

#3 2010-12-22 23:50:17

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Tangent of -90

It's 1.99520041... why would Scratch say that's an error?


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2010-12-23 01:14:52

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Tangent of -90

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

 

#5 2010-12-23 02:25:05

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Tangent of -90

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


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#6 2010-12-23 09:38:02

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Tangent of -90

Simple. tan(-90) = tan(270) = sin(270)/cos(270) = -1/0 = Error


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2010-12-23 10:03:22

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: Tangent of -90

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?


Crizapples

Offline

 

#8 2010-12-23 11:29:28

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Tangent of -90

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)

http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#9 2010-12-23 21:28:07

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: Tangent of -90

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.


Crizapples

Offline

 

#10 2010-12-24 13:56:43

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Tangent of -90

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)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#11 2011-01-04 17:55:43

MarioLuigi2009
Scratcher
Registered: 2009-12-26
Posts: 63

Re: Tangent of -90

if you draw a graph using tangent of x, -90 is where it is straight up and down.

it's shaped like this:

Code:

     *

     |   
    /|    /
 .-' | .-'
/    |/
     |

* x:-90

Last edited by MarioLuigi2009 (2011-01-04 18:01:26)


http://mag.racked.eu/mcimage/i349/Achievement++get%21/Slammin+Salmon/mca.pnghttp://mag.racked.eu/mcimage/i5007/Achievement++get%21/Smile+for+the+camera/mca.pnghttp://mag.racked.eu/mcimage/i54/Achievement++get%21/Storin+dirt.../mca.pnghttp://www.minecraftanonymous.com/assets/banners/banner_78.png

Offline

 

Board footer