x = A cos(wt) where x = displacement at time t, A = maximum displacement, w = angular frequency, which depends on the spring constant and the mass attached to the spring, and t = time. Find the displacement, x, with maximum displacement A of 4 cm, for times from 0 to 120 seconds with increments of 30 seconds, and angular frequencies from 0.4 to 0.6 radians/sec, with increments of 0.1 radians/sec. The displacement for all combinations of times and angular frequencies needs to be calculated. Use meshgrid. Display your results in a matrix with angular frequencies along the top row and times al
The displacement of an oscillating spring can be described by
x = A cos(wt)
where
x = displacement at time t,
A = maximum displacement,
w = angular frequency, which depends on the spring constant and the mass attached to the spring, and
t = time.
Find the displacement, x, with maximum displacement A of 4 cm, for times from 0 to 120 seconds with increments of 30 seconds, and angular frequencies from 0.4 to 0.6 radians/sec, with increments of 0.1 radians/sec. The displacement for all combinations of times and angular frequencies needs to be calculated. Use meshgrid.
Display your results in a matrix with angular frequencies along the top row and times along the left column like so (you may put zero, 0, or NaN, in the upper left corner:
The displacement of an oscillating spring can be described by
x = A cos(wt)
where
x = displacement at time t,
A = maximum displacement,
w = angular frequency, which depends on the spring constant and the mass attached to the spring, and
t = time.
Find the displacement, x, with maximum displacement A of 4 cm, for times from 0 to 120 seconds with increments of 30 seconds, and angular frequencies from 0.4 to 0.6 radians/sec, with increments of 0.1 radians/sec. The displacement for all combinations of times and angular frequencies needs to be calculated. Use meshgrid.
Display your results in a matrix with angular frequencies along the top row and times along the left column like so (you may put zero, 0, or NaN, in the upper left corner:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images