Forums

Squaring , adding, sqrt ing small value ( Frac16 = 90)

Started by sudamekedar September 7, 2003
hi,

after doing the FFT i got my fundmental component as (real = 1200
imag = -1300) and my second harmonic component as (real = -90 and
imag = 60). Now i want to do squaring of individual component add
the real and imaginary component and do the sqrting of the result in
order to get the magnitude. but i am not able to do it in Frac16
as 90 and 60 are too small numbers for Frac arithmatics and i am
getting zero as my result. Is there a third party sqrt function
availble for 56f807evm? can anyone suggest a way of finding harmonics
by any alternative way.

Kedar