Section 4.2 Check Point Questions4 questions
4.2.1
4.1.1 Assume PI is 3.14159 and E is 2.71828,
evaluate the following function calls:
(a) sqrt(4.0) (b) sin(2 * PI) (c) cos(2 * PI) (d) pow(2, 2) (e) log(E) (f) exp(1) (g) max(2, min(3, 4)) (h) sqrt(125.0) (i) ceil(-2.5) (j) floor(-2.5) (k) asin(0.5) (l) acos(0.5) (m) atan(1.0) (n) ceil(2.5) (o) floor(2.5) (p) log10(10.0) (q) pow(2.0, 3)
4.2.2
True or false? The argument for trigonometric methods
is an angle in radians.
4.2.3
Write a statement that converts 47 degrees to radians and assigns the result to a variable.
4.2.4
Write a statement that converts π / 7 to an angle in degrees and assigns the result to a variable.