- Write A Python Script Which Creates An Array T Of 1001 Equally Spaced Points From T 0 To T 67 Use Vectorization To 1 (53.95 KiB) Viewed 18 times
Write a Python script which creates an array t of 1001 equally spaced points from t = 0 to t = 67. Use vectorization to
-
- Site Admin
- Posts: 899603
- 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