Helmut Jarausch <[EMAIL PROTECTED]> writes:
> You're right: standard Python's math library missing the function arctan2.
It's math.atan2 .
--
http://mail.python.org/mailman/listinfo/python-list
Mikael Olofsson wrote:
> Helmut Jarausch wrote:
>> Your model is A*sin(omega*t+alpha) where A and alpha are sought.
>> Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i)
>> ( ' denotes transposition )
>>
>> First, A*sin(omega*t+alpha) =
>> A*cos(alpha)*sin(omega*t) + A*sin(
Helmut Jarausch wrote:
> Your model is A*sin(omega*t+alpha) where A and alpha are sought.
> Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i)
> ( ' denotes transposition )
>
> First, A*sin(omega*t+alpha) =
> A*cos(alpha)*sin(omega*t) + A*sin(alpha)*cos(omega*t) =
> B*si
Thanks folks - I'll have a think about both of these options.
--
http://mail.python.org/mailman/listinfo/python-list
Iain Mackay wrote:
> Python Folks
>
> I'm a newbie to Python and am looking for a library / function that can help
> me fit a 1D data vector to a sine wave. I know the frequency of the wave,
> so its really only phase and amplitude information I need.
>
> I can't find anything in the most wi
Iain Mackay napisal(a):
> Python Folks
>
> I'm a newbie to Python and am looking for a library / function that can help
> me fit a 1D data vector to a sine wave. I know the frequency of the wave,
> so its really only phase and amplitude information I need.
>
> I can't find anything in the most w
Python Folks
I'm a newbie to Python and am looking for a library / function that can help
me fit a 1D data vector to a sine wave. I know the frequency of the wave,
so its really only phase and amplitude information I need.
I can't find anything in the most widely known libraries (they seem t