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

#26 2009-10-29 11:56:27

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Formula for Sine and Cosine

Lucario621 wrote:

I've been wondering . . . is there any formula to find out sine or cosine of a direction without using the math block? Because inside that block there has to be a formula . . . but what is it? I mean I have and explanation of sine right here:

                                                                ___+++++++++___
                                                     -+++++++                  +  +++++++-
                                           -+++++                             + |               +++++-
                                       -++++                                +    |                   ++++-
                                       -+++                                o      |                     +++-
                                       -++++                                      |                   ++++-
                                           -+++++                                |               +++++-
                                                    -+++++++                   |  +++++++-
                                                                ___++++++++|___
                                                                                      |
                                       -1              -0.5                0     |       0.5               1
                                       |--------------------------------------------------------|

Well it took me 15 min to make, but it was worth it I guess even though I made a horrible circle. As you can see, the direction is about 15 degrees. So the line goes in that direction starting in the middle 'til it touches the circle/oval(sadly) and then the line goes strait down. Now on the number-line it is at about 0.2 so you could say sine of 15=0.2. For cosine the number line would go on the right. and cosine of 15 would be maybe 0.85 I'm guessing. But please, tell me if there is a formula for finding sine or cosine of a direction.

I think it was something like direction multiplied by some number like 0.8909 or something...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer