Tuesday, November 8, 2011

Arithmetic Functions in C programming

Function
Use
abs
Returns the absolute value of an integer
cos
Calculates cosine
cosh
Calculates hyperbolic cosine
exp
Raises the exponential e to the xth power
fabs
Finds absolute value
floor
Finds largest integer less than or equal to argument
fmod
Finds floating-point remainder
hypot
Calculates hypotenuse of right triangle
log
Calculates natural logarithm
log10
Calculates base 10 logarithm
modf
Breaks down argument into integer and fractional parts
pow
Calculates a value raised to a power
sin
Calculates sine
sinh
Calculates hyperbolic sine
sqrt
Finds square root
tan
Calculates tangent
tanh
Calculates hyperbolic tangen

No comments:

Post a Comment