(Testing Math Library Functions) Write a program that tests the math.docx - (Testing Math Library Functions Write a program that tests the math library
(Testing Math Library Functions) Write a program that tests the math.docx
(Testing Math Library Functions) Write a program that tests the math library functions in Fig. 5.2. Exercise each of these functions by having your program print out tables of return values for a diversity of argument values. Function Description Example sqrt(x) square root of x cbrt(x) cube root of x (C99 and C11 only) exp(x) exponential function et log(x) natural logarithm of * (base e) log10(x) logarithm of x(base 10) sqrt(900.0) is 30.0 sqrt(9.0) is 3.0 cbrt(27.0) is 3.0 cbrt(-8.0) is -2.0 exp(1.0) is 2.718282 exp(2.0) is 7.389056 log(2.718282) is 1.0 log(7.389056) is 2.0 log10(1.0) is 0.0 log10(10.0) is 1.0 log10(100.0) is 2.0 fabs (13.5) is 13.5 fabs(0.0) is 0.0 fabs(-13.5) is 13.5 ceil(9.2) is 10.0 ceil(-9.8) is -9.0 floor(9.2) is 9.0 floor(-9.8) is -10.0 pow(2, 7) is 128.0