Answer to Question #205277 in Python for Reoma Alurd

Question #205277

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?


1
Expert's answer
2021-06-10T10:26:48-0400
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


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS