timath.h Header File

Header File Index

Routines for floating point arithmetic

 Functions
abs
Absolute value of a number.
acos
Floating point arc cosine.
acosh
Floating point hyperbolic area cosine.
asin
Floating point arc sine.
asinh
Floating point hyperbolic area sine.
atan2
Four-quadrant arc tangent of y/x (or argument of the complex number).
atan
Floating point arc tangent.
atanh
Floating point hyperbolic area tangent.
atof
Converts a string to a floating point.
bcd_to_float
Converts BCD to float.
bcd_var
Converts reference to float object to reference to BCD object.
bcdadd
BCD addition.
bcdbcd
Converts integer to BCD.
bcdcmp
BCD comparation.
bcddiv
BCD division.
bcdlong
Converts BCD to integer.
bcdmul
BCD multiplication.
bcdneg
BCD negation.
bcdsub
BCD substraction.
cacos
Complex arc cosine.
cacosh
Complex hyperbolic area cosine.
casin
Complex arc sine.
casinh
Complex hyperbolic area sine.
catan
Complex arc tangent.
catanh
Complex hyperbolic area tangent.
ccos
Complex cosine.
ccosh
Complex hyperbolic cosine.
ceil
Rounds up the floating point number.
cexp
Complex exponential function.
cln
Complex natural logarithm (base e).
clog10
Complex logarithm, base 10.
cos
Floating point cosine.
cosh
Floating point hyperbolic cosine.
csin
Complex sine.
csinh
Complex hyperbolic sine.
csqrt
Complex square root.
ctan
Complex tangent.
ctanh
Complex hyperbolic tangent.
exp
Floating point exponential function.
fabs
Absolute value of a floating point number.
fadd
Floating point addition.
fcmp
Floating point comparation.
fdiv
Floating point division.
FEXP_NEG
A deprecated macro used to define floating point numbers.
FEXP
A deprecated macro used to define floating point numbers.
float_class
Determines the class of the floating point number.
float_to_bcd
Converts float to BCD.
floor
Rounds down the floating point number.
FLT_NEG
A deprecated macro used to define floating point numbers.
flt
Converts integer to floating point.
FLT
A deprecated macro used to define floating point numbers.
fmod
Calculates x modulo y, i.e. the remainder of x/y.
fmul
Floating point multiplication.
fneg
Floating point negation.
fpisanint
Checks whether the floating point number is reducable to an integer.
fpisodd
Checks whether the integer part of a floating point number is an odd number.
frexp10
Splits floating point number into mantissa and exponent.
fsub
Floating point substraction.
hypot
Calculates hypotenuse of right triangle.
init_float
Initializes the floating point emulator.
is_float_infinity
Checks whether the argument is an infinite number.
is_float_negative_zero
Checks whether the argument is negative zero.
is_float_positive_zero
Checks whether the argument is positive zero.
is_float_signed_infinity
Checks whether the argument is signed infinity.
is_float_transfinite
Checks whether the argument is a transfinite number.
is_float_unsigned_inf_or_nan
Checks whether the argument is unsigned infinity or Not_a_Number.
is_float_unsigned_zero
Checks whether the argument is unsigned zero.
is_inf
Checks whether the argument is an infinite number.
is_nan
Checks whether the argument is Not_a_Number.
is_nzero
Checks whether the argument is negative zero.
is_pzero
Checks whether the argument is positive zero.
is_sinf
Checks whether the argument is signed infinity.
is_transfinite
Checks whether the argument is a transfinite number.
is_uinf_or_nan
Checks whether the argument is unsigned infinity or Not_a_Number.
is_uzero
Checks whether the argument is unsigned zero.
itrig
Generic subroutine for calculating inverse trigonometric functions.
labs
Absolute value of a long integer number.
ldexp10
Calculates x times 10 raised to exponent.
log
Floating point natural logarithm (base e).
log10
Floating point logarithm, base 10.
modf
Splits floating point value into integer and fraction part.
pow
Floating point power function.
round12_err
Rounds the floating point number to 12 significant digits, throwing an error if unsuccessful.
round12
Rounds the floating point number to 12 significant digits.
round14
Rounds the floating point number to 14 significant digits.
sin
Floating point sine.
sincos
Calculates both sine and cosine in one turn.
sinh
Floating point hyperbolic sine.
sqrt
Floating point square root.
tan
Floating point tangent.
tanh
Floating point hyperbolic tangent.
trig
Generic subroutine for calculating trigonometric functions.
trunc
Converts floating point to integer.
 Constants
FIVE
A deprecated constant.
FOUR
A deprecated constant.
HALF_PI
A constant with value PI/2.
HALF
A deprecated constant.
MINUS_ONE
A deprecated constant.
NAN
A constant defining an undefined value.
NEGATIVE_INF
Represents an infinitely large negative quantity.
NEGATIVE_ZERO
Represents an infinitely small quantity which is known to be always non-positive.
ONE
A deprecated constant.
PI
An approximated value of pi.
POSITIVE_INF
Represents an infinitely large positive quantity.
POSITIVE_ZERO
Represents an infinitely small quantity which is known to be always non-negative.
TEN
A deprecated constant.
THREE
A deprecated constant.
TWO
A deprecated constant.
UNSIGNED_INF
Represents an infinite quantity.
UNSIGNED_ZERO
Represents an infinitely small quantity with indeterminate sign.
ZERO
A deprecated constant.
 Predefined Types
bcd
Represents the internal organization of floating point numbers in the format recognized by the TIOS.
Bool
An enumeration to describe true or false values.
ti_float
An alias for the standard ANSI float type.

Note: All functions which return a result of type float are implemented as macros, although many of them exist as TIOS entries. This is done because the GCC convention for returning floating point values as function results differs from the convention expected by the TIOS. This note is mainly unimportant from the user's point of view.


See also: math.h