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.
Free Promotional SAmple: for J2EE This e-book is intended for the exclusive use of,and distribution among, members of the developer community. Only registered members of the