This sample program generates two sine waves called X and Y.
It will then Calculate the normalized magnitude and phase of
the two waveforms using the following formulas:
Mag = sqrt(X^2 + Y^2)/sqrt(GainX^2 + GainY^2)
Phase = (long) (atan2PU(X,Y) * 360)
The program will prompt the user to change the gain and
frequency of the X and Y waveforms.
標簽:
Y.
normalized
generates
Calculate
上傳時間:
2014-01-06
上傳用戶:123456wh