|
|
Mathematical Functions
FISh makes available a set of useful mathematical functions.
In FISh-generated C code, calls to these functions become
calls to the equivalent functions in the ANSI C math library.
The available functions are:
- acos : float -> float
- asin : float -> float
- atan : float -> float
- atan2 : float -> float -> float
- cos : float -> float
- sin : float -> float
- tan : float -> float
- cosh : float -> float
- sinh : float -> float
- tanh : float -> float
- expt : float -> float
- log : float -> float
- log10 : float -> float
- pow : float -> float -> float
- sqrt : float -> float
- ceil : float -> float
- fabs : float -> float
- floor : float -> float
- fmod : float -> float -> float
Binary functions are now written in-fix.
|