Ashton wrote:
Ok, here's what I need help with.
I have a Sine curve (-0.5sin(2pi/3 * x)) and I need to learn how to decrease the amplitude, so when x=345, the amplitude is zero.
Can anybody help me out? I'm stumped.....
Although tomamil's answer is probably the sort of thing you are looking for, bear in mind that it is no longer a sine curve, and an exponential decrease will never attain zero.
If your genuine sine curve is:
y=A*sine(B*x + C)
to ensure this is zero at x=345, either make B*345+C=k*pi or A=0.
Alternatively, if you do not require a sine curve, you could go for many different envelopes... making "A" be f(x), such as:
f(x) = (1-x/345) (linear decreasing envelope)
f(x) = (1-x/345)^2 (quadratic envelope)
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports."
Kamran Nazeer