Presentation is loading. Please wait.

Presentation is loading. Please wait.

Header File cmath(math.h) C++. cmath Header File cmath / math functions Function name and parameters Parameters typeFunction return value acos(x)x is.

Similar presentations


Presentation on theme: "Header File cmath(math.h) C++. cmath Header File cmath / math functions Function name and parameters Parameters typeFunction return value acos(x)x is."— Presentation transcript:

1 Header File cmath(math.h) C++

2 cmath Header File cmath / math functions Function name and parameters Parameters typeFunction return value acos(x)x is a floating-point expression, -1.0 < x < 1.0 Arc cosine of x, a value between 0.0 and π asin(x)x is a floating-point expression, -1.0 < x < 1.0 Arc sine of x, a value between -π/2 and π/2 atan(x)x is a floating-point expressionArc tan of x, a value between -π/2 and π/2 ceil(x)x is a floating-point expressionThe smallest while number > x, (“ceiling” of x) cos(x)x is a floating-point expression, x is measured in radians Trigonometric cosine of the angle cosh(x)x is a floating-point expressionHyperbolic cosine of x exp(x)x is a floating-point expressionThe value e raised to the power of x; (e = 2.718…) fabs(x)x is a floating-point expressionAbsolute value of x floor(x)x is a floating-point expressionThe largest whole number < x; (“floor” of x) log(x)x is a floating-point expression, where x > 0.0Natural logarithm (base e) of x log10(x)x is a floating-point expression, where x > 0.0Common logarithm (base 10) of x pow(x,y)x and y are floating-point expressions. If x = 0.0, y must be positive; if x < 0.0, y must be a whole number x raised to the power of y

3 cmath Header File cmath / math functions Function name and parametersParameters typeFunction return value sin(x)x is a floating-point expression; x is measured in radians Trigonometric sine of the angle sinh(x)x is a floating-point expressionHyperbolic sine of x sqrt(x)x is a floating-point expression, where x > 0.0 Square root of x tan(x)x is a floating-point expression; x is measured in radians Trigonometric tangent of the angle tanh(x)x is a floating-point expressionHyperbolic tangent of x Brief Edition, Introduction to C++ Programming, D.S. Malik


Download ppt "Header File cmath(math.h) C++. cmath Header File cmath / math functions Function name and parameters Parameters typeFunction return value acos(x)x is."

Similar presentations


Ads by Google