07.03.2014 Views

IQmath Library

IQmath Library

IQmath Library

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IQNmag<br />

Magnitude of IQ complex number<br />

Description<br />

This function calculates the magnitude of two orthogonal vectors as<br />

follows: Mag = sqrt(A^2 + B^2). This operation achieves better accuracy<br />

and avoids overflow problems that may be encountered by using the<br />

"_IQsqrt" function.<br />

A<br />

B<br />

IQNmag<br />

output<br />

Availability<br />

C-Callable Assembly (CcA)<br />

Module Properties<br />

Type: Target Independent, Application Independent<br />

Target Devices: x28xx<br />

C/CPP Interface Files: <strong>IQmath</strong>Lib.h, <strong>IQmath</strong>CPP.h & <strong>IQmath</strong>.lib<br />

Item C-Callable ASM Comments<br />

Code Size<br />

96 words<br />

Data RAM<br />

0 words<br />

Multiple instances N/A<br />

Reentrancy Yes<br />

Multiple Invocation Yes<br />

Stack usage 2 words Stack grows by 2 words<br />

Accuracy<br />

29-bits (Same as SQRT function)<br />

©Texas Instruments Inc., June 2002 61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!