Discuss Scratch

-CoolKnight-
Scratcher
2 posts

sin, cos and tan

i've been on scratch for 2 yeard and seen the sin cos tan but i dont know what it is can someone help me
Catscratcher07
Scratcher
1000+ posts

sin, cos and tan

for any (measure of an) acute angle in a right triangle, SINe gives the ratio of opposite leg/hypotenuse, COSine gives adjacent leg/hypotenuse, and TANgent gives opposite/adjacent.
brun7
Scratcher
90 posts

sin, cos and tan

I'm no expert, but I do know these are functions used in trigonometry. In the context of scratch, you can utilize the “waves” created to do a lot of cool stuff! There are various tutorials on and off Scratch that explain it better, but I hope this helps nonetheless!
TheCreatorOfUnTV
Scratcher
1000+ posts

sin, cos and tan

move10steps
is really
definemovestepsstepsgotox:xposition+steps*sinofdirectiony:yposition+steps*cosofdirection
(Note that outside of Scratch, SINe and COSine would be swapped due to Scratch angles starting from the top and going clockwise, while outside of Scratch angles start from the left and go counterclockwise)

To find them:

Catscratcher07 wrote:

for any (measure of an) acute angle in a right triangle, SINe gives the ratio of opposite leg/hypotenuse, COSine gives adjacent leg/hypotenuse, and TANgent gives opposite/adjacent.

Anyway, these functions are closely related to asin, acos, and atan, which mean ArcSINe, ArcCOSine, and ArcTANgent, respectively. Here is data showing the relation:
  • sin(30) = 0.5
  • sin(45) ~= 0.707
  • sin(60) ~= 0.866

  • asin(0.5) = 30
  • asin(0.707) ~= 45
  • asin(0.866) ~= 60
The situation is similar for acos and atan. Basically, asin(sin(*insert any number from -90 to 90*)) is supposed to be the same as *insert any number from -90 to 90* (if it isn't exactly the same, that's because of rounding errors.)
Effortless-Coding
Scratcher
24 posts

sin, cos and tan

Ask IXL, not me. But I do know that these sin, cos, and tan are trigonometry functions. Basically high school math stuff.
(IXL is this cool website that provides tutorials and quizzes on math stuff).

Last edited by Effortless-Coding (Sept. 14, 2024 18:18:13)

BigNate469
Scratcher
1000+ posts

sin, cos and tan

I made a project explaining these, on a very basic level: https://scratch.mit.edu/projects/1046295885/

@TheCreatorOfUnTV explained that very well.

Trig is used for a number of things, but among them is finding angle measures, which can be very useful.
cosmosaura
Scratch Team
1000+ posts

sin, cos and tan

I'll move this over to the Questions about Scratch section for you - that's a better fit for this kind of topic
han614698
Scratcher
1000+ posts

sin, cos and tan

Effortless-Coding wrote:

Ask IXL, not me. But I do know that these sin, cos, and tan are trigonometry functions. Basically high school math stuff.
(IXL is this cool website that provides tutorials and quizzes on math stuff).

Not really high school… I learned basic trig in 7th and the rest in 8th
breakfast_for_dinner
Scratcher
1000+ posts

sin, cos and tan

han614698 wrote:

(#8)
Not really high school… I learned basic trig in 7th and the rest in 8th
i start trigonometry next year (i'm in high school and am in advanced placement)
Za-Chary
Scratcher
1000+ posts

sin, cos and tan

han614698 wrote:

Not really high school… I learned basic trig in 7th and the rest in 8th
Everybody learns and progresses through school at different paces. I learned it in middle school like you, while many others learn it for the first time in college.
SpyCoderX
Scratcher
1000+ posts

sin, cos and tan

Za-Chary wrote:

han614698 wrote:

Not really high school… I learned basic trig in 7th and the rest in 8th
Everybody learns and progresses through school at different paces. I learned it in middle school like you, while many others learn it for the first time in college.
I learned trig for coding before I learned it in school because it’s so important in coding. Around 5-6th grade if I remember correctly.

It really just depends on what you need it for. Not too long ago I learned matrix multiplication just to make curved lines. (Catmull splines specifically)

(Not trying to brag btw. Just using examples from my life.)

Last edited by SpyCoderX (Sept. 15, 2024 04:30:54)

The_Blue_J
Scratcher
1000+ posts

sin, cos and tan

-CoolKnight- wrote:

i've been on scratch for 2 yeard and seen the sin cos tan but i dont know what it is can someone help me
The first time I used it, I just interpreted sin as “a measure from 0 - 1 of how close you are to 90° (180 and 0 for cos)”

I genuinely do not know how to make it any simpler XD

Powered by DjangoBB