1. Using Python to Calculate the value of sin4, assuming 4 is in radians and that the sin function available in Python accepts radians. Store the result in a variable sin4.
2.Using Python to Calculate the value of sin4∘in degrees. Since the sin function available in Python accepts radians, you will need to convert degrees to radians. math.radians is a function which accepts degrees and returns the radians equivalent. Store the result in a variable sin4d.
import math # Using Python to Calculate the value of sin4, assuming 4 is in radians and that the sin function available in Python accepts radians. Store the result in a variable sin4. sin4 = math.sin(4) # Using Python to Calculate the value of sin4∘in degrees. Since the sin function available in Python accepts radians, you will need to convert degrees to radians. math.radians is a function which accepts degrees and returns the radians equivalent. Store the result in a variable sin4d. sin4d = math.sin(4*(math.pi/180))
Get Answers For Free
Most questions answered within 1 hours.