|
|
- NAME
- #include <libraries/mathffp.h>
#include <aros/libcall.h>
#include <proto/mathffp.h>
#include <proto/mathtrans.h>
#include <proto/exec.h>
#include <exec/types.h>
float SPTanh ()
- SYNOPSIS
- float fnum1
- FUNCTION
- Calculate hyperbolic tangens of the ffp number
- INPUTS
- fnum1
- Motorola fast floating point number
- RESULT
- Motorola fast floating point number
flags:
zero : result is zero
negative : result is negative
overflow : (not possible)
- NOTES
-
- EXAMPLE
- BUGS
-
- SEE ALSO
- MathTrans
- INTERNALS
( e^x - e^(-x) )
tanh(x) = ----------------
( e^x + e^(-x) )
tanh( |x| > 9 ) = 1
|