Skip to Main Content Skip to Search
Product Documentation

C2000 Square Root IQN - Square root or inverse square root of IQ number

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ Optimization/ C28x IQmath

Description

This block calculates the square root or inverse square root of an IQ number and returns an IQ number of the same Q format. The block uses table lookup and a Newton-Raphson approximation.

Negative inputs to this block return a value of zero.

Dialog Box

Function

Whether to calculate the square root or inverse square root

  • Square root (_sqrt) — Compute the square root.

  • Inverse square root (_isqrt) — Compute the inverse square root.

References

For detailed information on the IQmath library, see the user's guide for the C28x IQmath Library - A Virtual Floating Point Engine, Literature Number SPRC087, available at the Texas Instruments Web site. The user's guide is included in the zip file download that also contains the IQmath library (registration required).

See Also

C2000 Absolute IQN, C2000 Arctangent IQN, C2000 Division IQN, C2000 Float to IQN, C2000 Fractional part IQN, Fractional part IQN x int32, C2000 Integer part IQN, Integer part IQN x int32, C2000 IQN to Float, C2000 IQN x int32, C2000 IQN x IQN, C2000 IQN1 to IQN2, C2000 IQN1 x IQN2, C2000 Magnitude IQN, C2000 Saturate IQN, C2000 Trig Fcn IQN

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS