Instructions
290Libraries
© 2013 Conrad Electronic
5.16 Math
Mathematical Functions.
5.16.1 Floating Point
In the following the mathematical functions are listed which the C-Control Pro is able to master with
single floating point accuracy (32 bit). These functions are not contained in the C-Control Pro 32
since it would then not offer enough memory for user programs.
5.16.1.1 FPU (AVR32Bit)
The AVR32Bit UNIT has an integrated floating point unit (FPU), that greatly accelerates floating point
operations. An exception is the floating-point division performed in software. By dividing by a con-
stant, one should therefore consider to multiply by the reciprocal.
5.16.1.2 acos
Floating Point Functions
Syntax
float acos(float val);
Sub acos(val As Single) As Single
Description
The mathematical arc cosine (inverse cosine) is calculated.
Parameter
val input value between -1 and 1
Return Parameter
arc cosine of the input value in the range [0..Pi], expressed in radians
5.16.1.3 asin
Floating Point Functions
Syntax
float asin(float val);
Sub asin(val As Single) As Single