Question: Question 2 . 3 - - Boolean indicator Create a boolean array called rod _ stopped indicating times where the energy of the rod is

Question 2.3-- Boolean indicator
Create a boolean array called rod_stopped indicating times where the energy of the rod is less than
joules.
tau=1e-4
rod_stopped =...
# Run this cell to see a plot of the total energy
plt.figure(figsize=(8,2))
plt.plot(time[~rod_stopped],E[~rod_stopped],'g-',label='E (not stopped)')
plt.plot(time[rod_stopped],E[rod_stopped],'r-',label='E (stopped)')
plt.xlabel('t')
plt.legend()
plt.grid()
grader.check("q2p3")
Question 2.4-- Settling time
Define the settline time Ts (in seconds) as the earliest value of time when the rod_stopped condition is True.
Hint np.where, np.min

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!