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 | Science Articles, Homework Help, Discussion**

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

**Physics Forums | Science Articles, Homework Help, Discussion**