C PROGRAMMING please help with these thank you What is the o
C++ PROGRAMMING, please help with these, thank you!
What is the output after calling the following user-defined function from the main function. Can you tell which mathematical operation does the function achieve? (It is not just a simple multiplication!): What is the output of the following code fragments. Provide the mathematical steps and explanations so your results make sense (for instance: abs(- l)*2 = 1*2 = 2):Solution
5) The output will be 1 1 120 5040 362880. The function achieves factorial of the given number.
6) a) floor(7.99999) is 7, ceil(-5.0001) is -5 and round(3.666666) is 4. So the ouput will be 7+(-5)*4, which will be 7-20 which is -13.
b) pow(4,-2.5) 4^-2.5 can be written has 4^(-5/2) which is (4^(1/2))-5 which is 2^-5 which is 1/32.
c) 2^-8 is 1/256, sqrt of this is 1/16 and sqrt of this is 1/4. So output will 0.25
d) abs(-25/2) will be 12. The output will be 529386085 (on my laptop).
e) fabs(-25/2.0) will be 12.5. The output will be 529386085.5 (on my laptop).
