[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Overview of math.h

The header math.h includes the following facilities:

Classification Macros

Functions

  • "acos," determines the arccosine
  • "asin," determines the arcsine
  • "atan," determines the arctangent
  • "atan2," determines the arctangent of two variables
  • "ceil," determines the smallest int not less than x
  • "cos," determines the cosine
  • "cosh," determines the hyperbolic cosine
  • "exp," computes the exponential
  • "fabs" determines the absolute value
  • "floor," determines the largest integer not greater than x
  • "fmod," determines the remainder of a division
  • "frexp," extracts a value of the mantissa and exponent
  • "ldexp," computes a value from a mantissa and exponent
  • "log," determines the natural logarithm
  • "log10," determines the logarithm to base 10
  • "modf," separates integer and fractional parts
  • "pow," raises to a power
  • "sin," determines the sine
  • "sinh," determines the hyperbolic sine
  • "sqrt," determines the square root
  • "tan," determines the tangent
  • "tanh," determines the hyperbolic tangent
  • C9X Implementations

  • "acosh," computes the (non-negative) arc hyperbolic cosine
  • "asinh," computes the arc hyperbolic sine
  • "atanh," computes the arc hyperbolic tangent
  • "copysign," produces a value with the magnitude of x and the sign of y
  • "erf," computes the error function
  • "erfc," complementary error function
  • "exp2," computes the base-2 exponential
  • "expm1," Computes the exponential minus 1
  • "fdim," computes the positive difference of its arguments
  • "fmax," computes the maximum numeric value of its argument
  • "fmin," computes the minimum numeric value of its arguments
  • "gamma," computes the gamma function
  • "hypot," computes the square root of the sum of the squares of the arguments
  • "isgreater," compares two numbers for x greater than y
  • "isgreaterless," compares numbers for x not equal to y
  • "isless," compares two numbers for x less than y
  • "islessequal," compares two numbers for x is less than or equal to y
  • "isunordered," compares two numbers for unorder
  • "lgamma," computes the log of the absolute value
  • "log1p," computes the natural- log of x plus 1
  • "log2," computes the base-2 logarithm
  • "logb," extracts the exponent of a double value
  • "nan," Tests for NaN
  • "nearbyint," rounds off the argument to an integral value
  • "nextafter," determines the next representable value in the type of the function
  • "remainder," computes the remainder x REM y required by IEC 559
  • "remquo," computes the same remainder as the remainder function
  • "rint," rounds off the argument to an integral value
  • "rinttol," rinttol rounds its argument to the nearest long integral value
  • "round," rounds its argument to an integral value in floating-point format
  • "roundtol," roundtol rounds its argument to the nearest integral value
  • "scalb," computes x * FLT_RADIX^n
  • "trunc," rounds its argument to an integral value in floating-point format nearest to but no larger than the argument.

  • [ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

    Visit the Metrowerks website at: http://www.metrowerks.com
    For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
    Copyright © 2000, Metrowerks Corp. All rights reserved.

    Last updated: August 16, 2000