03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

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.

4.27 Function GFLIB_Acos_FLT<br />

This function implements square root based polynomial approximation of arccosine<br />

function.<br />

4.27.1 Declaration<br />

tFloat GFLIB_Acos_FLT(tFloat fltIn, const GFLIB_ACOS_T_FLT *const pParam);<br />

4.27.2 Arguments<br />

Table 4-29. GFLIB_Acos_FLT arguments<br />

Type Name Direction Description<br />

tFloat fltIn input Input argument is a 32-bit number that contains a single<br />

precision floating point value.<br />

const<br />

GFLIB_ACOS_T_FLT<br />

*const<br />

4.27.3 Return<br />

pParam input Pointer to an array of approximation coefficients. The function<br />

alias GFLIB_Acos uses the default coefficients.<br />

The function returns arccos(fltIn) as a single precision floating point number.<br />

4.27.4 Description<br />

Chapter 4 API References<br />

The GFLIB_Acos_FLT function provides a computational method <strong>for</strong> the calculation of<br />

the st<strong>and</strong>ard inverse trigonometric arccosine function arccos(x), using the square root<br />

based polynomial approximation. Function arccos(x) takes the ratio of the length of the<br />

adjacent side to the length of the hypotenuse <strong>and</strong> returns the angle.<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

Freescale Semiconductor, Inc. 217

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

Saved successfully!

Ooh no, something went wrong!