Jump to content

amplitude, frequency and phase of a sine wave

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
deepmadan

deepmadan

    Newbie

  • Members
  • Pip
  • 7 posts
A point moves along a sine wave..
its positions or values are y1, y2 and y3 at times 0, t2 and t3 respectively.

find the amplitude, frequency and initial phase of the sine wave..

y1 = amp * sin(phase)
y2 = amp * sin(w*t2 + phase)
y3 = amp * sin(w*t3 + phase)

please reply me the possible solution to this such that the result has minimal error...

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Are you looking for the algorithm to solve this? If so, you're in trouble. You need a minimum of four data points to solve for the information you want, and depending on the data points you may not be able tell anyway.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
deepmadan

deepmadan

    Newbie

  • Members
  • Pip
  • 7 posts
ya i need an algorithm or any hint how to proceed..

if the frequency is also known then is it possible to find a suitable algorithm to find amp and phase.. if yes ??? how ??

thanks..

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
w=1/frequency.

sin(w*t+phase) = sin(w*t)cos(phase)+sin(phase)cos(w*t)
sin(phase) = cos(pi/2 - phase)

Combined gives us:
y1 = amp * sin(phase)
y2 = amp * sin(w*t2 + phase) = amp*sin(w*t2)cos(phase) + y1 cos(w*t2)
y3 = amp * sin(w*t3 + phase) = amp*sin(w*t3)cos(phase) + y1 cos(w*t3)

Playing around with some real values should get you closer.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
deepmadan

deepmadan

    Newbie

  • Members
  • Pip
  • 7 posts
i have played around with values and got some results quite closer to the answers...

but didnt got any accurate resultss..

so need some other algorithms to get more accurate results..

thankss..