- #1
webamoeba
- 3
- 0
Hi,
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 appears
so in Maple that'd be:
Now I want the total of all the equations to = 240:
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.
so if y = 1 I would need to add
if y = 2 I would need to add
Is there an easier way to determine x given y? without having to use all of those nasty looking equations!
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 ;)
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:
Code:
y=sin(x)
so in Maple that'd be:
Code:
plot(sin(x)+1,x=Pi/2..Pi+(Pi/2));
Code:
solve(((sin(Pi/2)+1)+(sin(Pi/2)+1))*x=240, x);
so if y = 1 I would need to add
Code:
... (sin((((Pi/2)-(Pi+Pi/2))/y+1)*y) +1) ...
if y = 2 I would need to add
Code:
... (sin((((Pi/2)-(Pi+Pi/2))/(y-1)+1)*(y-1)) +1) + (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!
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 ;)
Last edited by a moderator: