Name the Python Library modules which need to be imported to invoke the following functions:
(i) sin() (ii) randint ()
Answers
The Python Library modules which need to be imported to invoke the sin() and radians () functions are math.
Explanation:
The math is a library in python for using mathematical functions. The math library is used for the Number-theoretic and representation, Power and logarithmic, Trigonometric, Angular conversion, Hyperbolic, Special, and Constants functions.
The math.sin(x) which is trigonometric function returns the sine of x radians.
The math.radians(x) which is Angular conversion function will convert angle x from degrees value to radiant value.
Answer:
The math is a library in python for using mathematical functions. The math library is used for the Number-theoretic and representation, Power and logarithmic, Trigonometric, Angular conversion, Hyperbolic, Special, and Constants functions.
The math.sin(x) which is trigonometric function returns the sine of x radians.
The math.radians(x) which is Angular conversion function will convert angle x from degrees value to radiant value.
hope it helps u
:)