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.

5.2.4. IQNmpyI32: Multiplication (IQN*LONG) …………….. .........................................26<br />

5.2.5. IQNmpyI32int: Integer portion of IQN*LONG ……………....................................27<br />

5.2.6. IQNmpyI32frac: Fractional portion of IQN*LONG……………..............................28<br />

5.2.7. IQNmpyIQX: Multiplication (IQN=IQN1*IQN2)……………...................................29<br />

5.2.8. IQNdiv: Fractional portion of IQ*LONG…………….. ..........................................30<br />

5.3. Trignomatric Functions. …………….. ......................................................................34<br />

5.3.1. IQNsin: SIN(radians) …… ................................................................................34<br />

5.3.2. IQNsinPU: SIN(per unit) …… ...........................................................................37<br />

5.3.3. IQNcos: COS(radians) …… .............................................................................40<br />

5.3.4. IQNcosPU: COS(per unit) ..… ..........................................................................43<br />

5.3.6. IQNatan2: 4-quadrant ATAN (radians) …….......................................................46<br />

5.3.7. IQNatan2: 4-quadrant ATAN (per unit) …… ......................................................49<br />

5.3.8. IQNatan: ATAN(radians) …… ..........................................................................52<br />

5.4. Mathamatical Functions. …………….. .....................................................................54<br />

5.3.6. IQNsqrt: Square-root …… ................................................................................54<br />

5.3.7. IQNisqrt: Inverse Square root …… ...................................................................57<br />

5.4.3. IQNmag: Magnitude Square …… .....................................................................61<br />

5.5. Miscellaneous. …………….. ....................................................................................63<br />

5.3.6. IQsat: Saturate IQ number …… ........................................................................63<br />

5.3.7. IQNabs: Absolute value of IQN number …….....................................................64<br />

Appendix A: <strong>IQmath</strong> C-Calling convention ……………..................................................65<br />

©Texas Instruments Inc., June 2002 Version 1.4.1

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

Saved successfully!

Ooh no, something went wrong!