Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Find out, with dir and help, which function of math gives the sine of an angle, and which gives the angle in radians from degrees. Show the sine of 90 degrees.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. List the names of math, look for the words sin and rad, and read the notes.
The first list shows sin (and asin, sinh, asinh). The second shows radians and degrees. The note of math.sin says that the angle is in radians, so we change 90 degrees first with math.radians(90).
Check. The sine of 90 degrees is 1.0.
Answer: math.sin and math.radians. math.sin(math.radians(90)) is 1.0.
Log in to join the discussion.
Loading…