Programming in C

(Barry) #1
Math Functions 487

double remquo (x, y, quo)
Returns the remainder of xdivided by y, storing the quotient into the integer point-
ed to by quo.
double rint (x)
Returns the nearest integer to xin floating-point format. Might raise a floating-point
exception if the value of the result is not equal to the argument x.
double round (x)
Returns the value of xrounded to the nearest integer in floating-point format.
Halfway values are always rounded away from zero (so 0.5 always rounds to 1.0).
double scalbln (x, n)
Returns x×FLT_RADIXn, where nis a long int.
double scalbn (x, n)
Returns x×FLT_RADIXn.
double sin (r)
Returns the sine of r.
double sinh (x)
Returns the hyperbolic sine of x.
double sqrt (x)
Returns the square root of x,x≥ 0.
double tan (r)
Returns the tangent of r.
double tanh (x)
Returns the hyperbolic tangent of x.
double tgamma (x)
Returns the gamma of x.
double trunc (x)
Tr uncates the argument xto an integer value, returning the result as a double.

21 0672326663 AppB 6/10/04 2:03 PM Page 487

Free download pdf