Discuss Scratch

SYG4-2
Scratcher
15 posts

How do i use (sin) (cos) and (tan)

I see
sinofsomething
a lot in project and i wanna know how to use them to my advantage
cs9999999999
Scratcher
100+ posts

How do i use (sin) (cos) and (tan)

search up “sin, cos, and tan” on google
codeman1044
Scratcher
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 “Δ”)

Last edited by codeman1044 (April 16, 2019 22:24:01)

codeman1044
Scratcher
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!

Last edited by codeman1044 (April 16, 2019 22:24:35)

-Rex-
Scratcher
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--
Scratcher
1000+ posts

How do i use (sin) (cos) and (tan)

cs9999999999 wrote:

search up “sin”… -snip-
Search “sine” instead
098765432154321
Scratcher
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)
deck26
Scratcher
1000+ posts

How do i use (sin) (cos) and (tan)

098765432154321 wrote:

Sin, Cos and Tan are used for advanced calculators, and Scratch implemented that for advanced calculator checkers.
(i'm sorry if anything's wrong)
No, there are multiple uses of these functions - they're not just there so people can make calculators.
15-MinuteGaming
Scratcher
100+ posts

How do i use (sin) (cos) and (tan)

I also use them for pen projects relating to circles, like polar coordinates.
Wiz03A
Scratcher
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.
codeman1044
Scratcher
1000+ posts

How do i use (sin) (cos) and (tan)

Wiz03A wrote:

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.
Please check the date of the topic before posting.
Security_hacker
Scratcher
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.
azzucar
Scratcher
31 posts

How do i use (sin) (cos) and (tan)

Security_hacker wrote:

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.
Please don’t necropost.

Reporting this thread so it can be locked.

Powered by DjangoBB