cmath-0.1: A small binding to the standard C math library

Portability FFI provisional Don Stewart

Foreign.C.Math.Double

Description

Synopsis

# Documentation

The acos function computes the principal value of the arc cosine of x in the range [0, pi]

The asin function computes the principal value of the arc sine of x in the range [-pi2, +pi2].

The atan function computes the principal value of the arc tangent of x in the range [-pi2, +pi2].

The atan2 function computes the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value.

The cos function computes the cosine of x (measured in radians). A large magnitude argument may yield a result with little or no significance. For a discussion of error due to roundoff, see math(3).

The sin function computes the sine of x (measured in radians). A large magnitude argument may yield a result with little or no significance. For a discussion of error due to roundoff, see math(3).

The tan function computes the tangent of x (measured in radians). A large magnitude argument may yield a result with little or no significance. For a discussion of error due to roundoff, see math(3).

The cosh function computes the hyperbolic cosine of x.

The sinh function computes the hyperbolic sine of x.

The tanh function computes the hyperbolic tangent of x.

The exp() function computes the exponential value of the given argument x.

frexp :: Double -> (Double, Int)Source

frexp convert floating-point number to fractional and integral components frexp is not defined in the Haskell 98 report.

The ldexp function multiplies a floating-point number by an integral power of 2. ldexp is not defined in the Haskell 98 report.

The log() function computes the value of the natural logarithm of argument x.

The log10 function computes the value of the logarithm of argument x to base 10. log10 is not defined in the Haskell 98 report.

modf :: Double -> (Double, Double)Source

The modf function breaks the argument value into integral and fractional parts, each of which has the same sign as the argument. modf is not defined in the Haskell 98 report.

The pow function computes the value of x to the exponent y.

The sqrt function computes the non-negative square root of x.

The ceil function returns the smallest integral value greater than or equal to x.

The fabs function computes the absolute value of a floating-point number x.

The floor function returns the largest integral value less than or equal to x.

The fmod function computes the floating-point remainder of x / y.

The round function returns the nearest integral value to x; if x lies halfway between two integral values, then these functions return the integral value with the larger absolute value (i.e., it rounds away from zero).

The fmod function computes the floating-point remainder of x / y.