Target Support Package - QMath Library

3 views (last 30 days)
I am using qMath library (Target Support package TI) in present development. I want to use atan2 block but I am not being able to identify why there are two inputs to this block. Has anyone used this before and know how to use these two inputs.

Accepted Answer

Richard Pfisterer
Richard Pfisterer on 25 Jan 2011
The IQ math ATAN2 function is equivalent to the ATAN2 function in MATLAB. Read the help in MATLAB
>>doc atan2
In short, one needs to know the two values in order to compute which quadrant one is in. If you used X/Y there would be no way to determine the sign on X and Y which determines the quadrant one is in.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!