In: Computer Science
Create a table of all three of these trigonometric functions for angles from 0 to 2p, with a spacing of 0.1 radian. Your table should contain a column for the angle and then for the sine, cosine, and tangent. ((python))
from math import sin, cos, tan, pi print("{:10s}{:10s}{:10s}{:10s}".format("angle", "sin", "cos", "tan")) angle = 0 while angle <= 2*pi: print("{:<10.6f}{:<10.6f}{:<10.6f}{:<10.6f}".format(angle, sin(angle), cos(angle), tan(angle))) angle += 0.1