import numpy as np
import scipy.linalg as la
import matplotlib.pyplot as plt
3. Choose an angle θ and set the variable theta to its value (a number).
4. What is sin θ? cos θ? Angles can be measured in degrees or radians.
Which of these are being used used?
import numpy as np
import scipy.linalg as la
import matplotlib.pyplot as plt
# 3
theta = np.pi / 3
print('theta =', theta)
# 4
s = np.sin(theta)
print('sin theta =', s)
c = np.cos(theta)
print('cos theta =', c)
# In NumPy angles are neasured in radians
Comments
Leave a comment