Computer Science, asked by bilalwajid49, 2 months ago

write a c++ program for following math,s function​

Answers

Answered by sujal1247
1

Answer:

C++ Mathematical Functions

  1. double sin(double) : This function takes angle (in degree) as an argument and return its sine value that could be verified using sine curve.
  2. double cos(double) : This function takes angle (in degree) as an argument and return its cosine value that could be verified using cosine curve.
  3. double tan(double) : This function takes angle (in degree) as an argument and return its tangent value. This could also be verified using Trigonometry as Tan(x) = Sin(x)/Cos(x).
  4. double sqrt(double) : This function takes number as an argument and return its square root value. Number can not be negative value.
  5. int abs(int) : This function takes integer number as an argument and return its absolute value. It means, the output will always be positive regardless of sign of input.
  6. double pow(double, double) : This function takes one argument as base and other as exponent.
  7. double hypot(double, double) : This function requires two sides of the right angled triangle to give output as its hypotenuse.
  8. double floor(double) : This functions returns the integer value lesser or equal to argument passed in the function.
  9. double fabs(double) : This function returns the absolute value of any number.
  10. double acos(double) : This Fiction returns the arc cosine of argument. The argument to acos() must be in the range -1 to 1 ; otherwise, a domain error occurs.
  11. double asin(double) : This function returns the arc sine of argument. The argument to asin() must be in the range -1 to 1 ; otherwise, a domain error occurs.
  12. double atan(double) : This function returns the arc tangent of arg.
  13. double atan2(double, double) : This function returns the arc tangent of (double a)/(double b).
  14. double ceil(double) : This function returns the smallest integer as double not less than the argument provided.
  15. double cosh(double) : This function returns the hyperbolic cosine of argument provided. The value of argument provided must be in radians.
  16. double tanh(double) : This function returns the hyperbolic tangent of argument provided. The value of argument provided must be in radians.
  17. double log(double) : This function takes a number and returns the natural log of that number.
Similar questions