Hi,(adsbygoogle = window.adsbygoogle || []).push({});

This maths stuff is tstarting to hurt my head!!! :p Ok, I want to use a sine wave to make objects appear at an increasing rate and then a decreasing rate. e.g. where:

y = interval before next object appearsCode (Text):y=sin(x)

so in Maple that'd be:

Now I want the total of all the equations to = 240:Code (Text):plot(sin(x)+1,x=Pi/2..Pi+(Pi/2));

x comes to 60 in this case. Now I want to alter the equation so as it takes another variable, y, where y = the number of objects (integer >= 0), this does not include the first and last objects.Code (Text):solve(((sin(Pi/2)+1)+(sin(Pi/2)+1))*x=240, x);

so if y = 1 I would need to add

if y = 2 I would need to addCode (Text):... (sin((((Pi/2)-(Pi+Pi/2))/y+1)*y) +1) ...

Is there an easier way to determine x given y? without having to use all of those nasty looking equations!!!!Code (Text):... (sin((((Pi/2)-(Pi+Pi/2))/(y-1)+1)*(y-1)) +1) + (sin((((Pi/2)-(Pi+Pi/2))/y+1)*y) +1) ...

thanks

hmmm, not sure that was a very good explanation, take a look at http://www.webamoeba.co.uk/glam/CS1S01/cw2/maths.gif

it mite make more sense ;)

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Sine wave - long algorithm :s

Loading...

Similar Threads - Sine wave long | Date |
---|---|

I Period of a sine wave | Dec 4, 2017 |

I Regression of a sine wave | Aug 10, 2017 |

I Trigonometry - sine waves between objects | Apr 27, 2016 |

Question about rms value of a sine wave | May 7, 2014 |

Sine Waves Sine Angles | Mar 14, 2014 |

**Physics Forums - The Fusion of Science and Community**