Write a Python script which creates an array t of 1001 equally spaced points from t = 0 to t = 67. Use vectorization to
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a Python script which creates an array t of 1001 equally spaced points from t = 0 to t = 67. Use vectorization to
Write a Python script which creates an array t of 1001 equally spaced points from t = 0 to t = 67. Use vectorization to create an array y containing the values of the function 1 y(t) = 1+0.8 sin(t) evaluated at each value in array t. Using the arrays t and y, plot y as a function of t. Extend your script to add the following features (decorations) to the plot: change the line color to red add a grid When correctly written, your script will produce the following plot: 35 10.0 125 15.0 175
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!