Discuss Scratch

QuantumPixel
Scratcher
89 posts

tan 90 and cos 90

In the Scratch editor,
([ tan] of (90))
is defined as a very large number. This is not true, as tan 90 is sin90/cos90, which is a singularity.
The ratio for tan 90 is also faulty. Because tan in the right triangle is opposite theta / adjacent theta, and if theta is ninety, the third angle (adjacent) would be 0, and you can't divide by 0.
mathfreak231
Scratcher
1000+ posts

tan 90 and cos 90

As x approaches some odd multiple of 90, tan(x) approaches infinity (or negative infinity from the other side) so it's probably just how Scratch calculates the trig ratios.
TheLogFather
Scratcher
1000+ posts

tan 90 and cos 90

You might want to read this…
http://scratch.mit.edu/discuss/topic/39873/
(In particular, my first reply.)

Last edited by TheLogFather (Oct. 1, 2014 02:25:57)

QuantumPixel
Scratcher
89 posts

tan 90 and cos 90

TheLogFather wrote:

You might want to read this…
http://scratch.mit.edu/discuss/topic/39873/
(In particular, my first reply.)
Ah, I get it. Rounding issue. So tan 90 can be defined, since cos 90 is not exactly 0. Thanks!
DevanWolf
Scratcher
100+ posts

tan 90 and cos 90

QuantumPixel wrote:

([ tan]of(90))
Correction:
([tan v]of(90))
See. You just don't need to add the extra space at the start of “tan”, and just add the dropdown look by adding a “v” near the end of “tan”!
QuantumPixel
Scratcher
89 posts

tan 90 and cos 90

DevanWolf wrote:

QuantumPixel wrote:

([ tan]of(90))
Correction:
([tan v]of(90))
See. You just don't need to add the extra space at the start of “tan”, and just add the dropdown look by adding a “v” near the end of “tan”!

*necropost* lol. Thank you for teaching me that interesting fact, though.
Serbian_Developer
Scratcher
5 posts

tan 90 and cos 90

QuantumPixel wrote:

In the Scratch editor,
([ tan] of (90))
is defined as a very large number. This is not true, as tan 90 is sin90/cos90, which is a singularity.
The ratio for tan 90 is also faulty. Because tan in the right triangle is opposite theta / adjacent theta, and if theta is ninety, the third angle (adjacent) would be 0, and you can't divide by 0.

Serbian_Developer wrote:

…Hmm…
i Think that if
([ tan v] of (90))
is not defined as a ‘'very large number’' there would be some cases where we couldn't use this glitch for something else
like idk maybe to count the time spent on to doing something in that project or whatever..
And how (removed by moderator - please keep it polite) could you make a triangle that his adjacent is 0!?
i Don't really get it…

Last edited by Paddle2See (March 19, 2015 00:21:09)

Powered by DjangoBB