Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i use (sin) (cos) and (tan)
- SYG4-2
-
15 posts
How do i use (sin) (cos) and (tan)
I see
a lot in project and i wanna know how to use them to my advantage
- cs9999999999
-
100+ posts
How do i use (sin) (cos) and (tan)
search up “sin, cos, and tan” on google
- codeman1044
-
1000+ posts
How do i use (sin) (cos) and (tan)
The sine of a number (sin), the cosine of a number (cos), and the tangent of a number (tan) are all used in trigonometry for calculating radians of circles and angles of polygons (mostly triangles).
You probably haven't learned trigonometry in school yet, so that's why the terms seem unfamiliar.
Usually in scratch, these functions are used to find an angle rotation or a change in something (You might see “Change” “Delta” or “Δ”)
You probably haven't learned trigonometry in school yet, so that's why the terms seem unfamiliar.
Usually in scratch, these functions are used to find an angle rotation or a change in something (You might see “Change” “Delta” or “Δ”)
Last edited by codeman1044 (April 16, 2019 22:24:01)
- codeman1044
-
1000+ posts
How do i use (sin) (cos) and (tan)
Also, the wiki does a good job of explaining it:
https://en.scratch-wiki.info/wiki/()_of_()_(Operators_block)
Hope this helps!
https://en.scratch-wiki.info/wiki/()_of_()_(Operators_block)
Hope this helps!
Last edited by codeman1044 (April 16, 2019 22:24:35)
- -Rex-
-
500+ posts
How do i use (sin) (cos) and (tan)
They allow you to calculate the coordinates of a point based on an angle:
Note that the circle has a radius of one. In Scratch, the angle t is in degrees. Tangent (tan) is equal to sine (sin) divided by cosine (cos). Arcsine (asin), arccosine (acos), and arctangent (atan) allow you to go “backwards” from a value to its original angle.

Last edited by -Rex- (April 17, 2019 23:56:33)
- --Explosion--
-
1000+ posts
How do i use (sin) (cos) and (tan)
-snip-Search “sine” instead search up “sin”…
- 098765432154321
-
500+ posts
How do i use (sin) (cos) and (tan)
Sin, Cos and Tan are used for advanced calculators, and Scratch implemented that for advanced calculator checkers.
(i'm sorry if anything's wrong)
(i'm sorry if anything's wrong)
- deck26
-
1000+ posts
How do i use (sin) (cos) and (tan)
No, there are multiple uses of these functions - they're not just there so people can make calculators. Sin, Cos and Tan are used for advanced calculators, and Scratch implemented that for advanced calculator checkers.
(i'm sorry if anything's wrong)
- 15-MinuteGaming
-
100+ posts
How do i use (sin) (cos) and (tan)
I also use them for pen projects relating to circles, like polar coordinates.
- Wiz03A
-
1 post
How do i use (sin) (cos) and (tan)
Sin and Cos are helpful if you rotate an object and then want to move the object based on orientation using variables to represent position and speed.
Scratch makes this largely unnecessary, but could be useful for some cases.
I am using speed and position variables so that I can control ‘bounces’ more precisely. I want to increase the velocity of a ‘rocket’ based on the direction it is facing. Sin and Cos let me get x and y components for speed that I can add or subtract to the existing speed. This allows me to control the properties of x- and y-speed when collisions occur.
Scratch makes this largely unnecessary, but could be useful for some cases.
I am using speed and position variables so that I can control ‘bounces’ more precisely. I want to increase the velocity of a ‘rocket’ based on the direction it is facing. Sin and Cos let me get x and y components for speed that I can add or subtract to the existing speed. This allows me to control the properties of x- and y-speed when collisions occur.
- codeman1044
-
1000+ posts
How do i use (sin) (cos) and (tan)
Please check the date of the topic before posting. Sin and Cos are helpful if you rotate an object and then want to move the object based on orientation using variables to represent position and speed.
Scratch makes this largely unnecessary, but could be useful for some cases.
I am using speed and position variables so that I can control ‘bounces’ more precisely. I want to increase the velocity of a ‘rocket’ based on the direction it is facing. Sin and Cos let me get x and y components for speed that I can add or subtract to the existing speed. This allows me to control the properties of x- and y-speed when collisions occur.
- Security_hacker
-
2 posts
How do i use (sin) (cos) and (tan)
But what do they do ( +2 ) ??????????????????????????
also follow me hear since i am not new this is my 3rd account!!! so please follow me here.
also follow me hear since i am not new this is my 3rd account!!! so please follow me here.
- Discussion Forums
- » Help with Scripts
-
» How do i use (sin) (cos) and (tan)