Could someone explain to me what the sine and cosine do and how to use them?
Offline
They're trig functions, that's pretty much all I know about it and need to know.
Sine make a sideways S shape on a graphing calculator and Cosine makes a U or V shape
Offline
ChuxXxliciousness wrote:
They're trig functions, that's pretty much all I know about it and need to know.
Sine make a sideways S shape on a graphing calculator and Cosine makes a U or V shape
lol I'm pretty sure it can be helpful to at least know
Offline
I guess they might come in handy making patterns or something like that, but I've never found a use for them. Maybe I could use it to make wavy text or something xD
Offline
Sine, cosine, and tangent are ratios in right triangles used in calculating distance and angles.
They're often used in projects involving things like launching objects based on angles and power.
I know that a lot of people want a block that points a sprite at a specific coordinate. Using trig, you can do that!
Last edited by Harakou (2010-07-07 01:19:36)
Offline
Well there you have it! lol.
Now if only I had good teachers at my school that would have told me the uses for trig functions. I didn't even do any of the work for the class, just programmed my calculator to do the problems for me. Aced every test that way!
Offline
ChuxXxliciousness wrote:
Well there you have it! lol.
Now if only I had good teachers at my school that would have told me the uses for trig functions. I didn't even do any of the work for the class, just programmed my calculator to do the problems for me. Aced every test that way!![]()
On a TI-84? I love those! My friend and I wrote a program that factored trinomials for us.
Offline
Heres a little project I uploaded yesterday:
(link to project)
It shows trig functions in the form of a triangle. Look at the sine and cosine scripts to see how they work.
Offline
They are actually the only reason that Scratch has the [move 10 steps] block. That block is really this:
[change x by ((sin of direction) * 10)]
[change y by ((cos of direction) * 10)]
The number that you put after * is the number of steps you want it to move.
If it was:
[change x by ((sin of direction) * 7)]
[change y by ((cos of direction) * 7)]
That would be [move 7 steps].
This can be useful for scrolling sometimes.
Hope it helps
!
Last edited by TimeFreeze (2010-07-07 10:08:21)
Offline
Harakou wrote:
ChuxXxliciousness wrote:
Well there you have it! lol.
Now if only I had good teachers at my school that would have told me the uses for trig functions. I didn't even do any of the work for the class, just programmed my calculator to do the problems for me. Aced every test that way!![]()
On a TI-84? I love those! My friend and I wrote a program that factored trinomials for us.
![]()
In my school, they gave us a program to do that stuff
TimeFreeze wrote:
They are actually the only reason that Scratch has the [move 10 steps] block. That block is really this:
[change x by ((sin of direction) * 10)]
[change y by ((cos of direction) * 10)]
The number that you put after * is the number of steps you want it to move.
If it was:
[change x by ((sin of direction) * 7)]
[change y by ((cos of direction) * 7)]
That would be [move 7 steps].
This can be useful for scrolling sometimes.
Hope it helps!
This is only for scratch. Otherwise you use cos for x and sin for y.
Offline