The position as a function of time of a squirrel running on a grass field is given in polar coordinates by r(t) = 20 + 30 (1 – e-0.1 ') r(1) θ()π (1- ε 02 1) = TT Plot as 1* subplot the trajectory (position) of the squirrel for 0st < 20s with a step of time 0.5s. Calculate numerically the speed of the squirrel given by v = r d8/dt. Create a 2nd subplot for speed of the squirrel v (numerical) as function of time for 0 st s 20s. Report the curve as green circle without line. In the same figure (2nd subplot), plot as black solid line the theoretical velocity given by the formula v =r de/dt as function of time for 0 st s 20s.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
100%
The position as a function of time of a squirrel running on a grass field is given in polar coordinates by:
r(t) = 20 + 30 (1 – e-0.1 t)
0(t) = 1 (1 – e-0.2 t)
= TT
Plot as 1* subplot the trajectory (position) of the squirrel for 0 st < 20s with a step of time
0.5s.
Calculate numerically the speed of the squirrel given by v = r d8/dt.
Create a 2d subplot for speed of the squirrel v (numerical) as function of time for 0 st s
20s. Report the curve as green circle without line.
In the same figure (2¤d subplot), plot as black solid line the theoretical velocity given by the
formula v = r de/dt as function of time for 0 st s 20s.
Transcribed Image Text:The position as a function of time of a squirrel running on a grass field is given in polar coordinates by: r(t) = 20 + 30 (1 – e-0.1 t) 0(t) = 1 (1 – e-0.2 t) = TT Plot as 1* subplot the trajectory (position) of the squirrel for 0 st < 20s with a step of time 0.5s. Calculate numerically the speed of the squirrel given by v = r d8/dt. Create a 2d subplot for speed of the squirrel v (numerical) as function of time for 0 st s 20s. Report the curve as green circle without line. In the same figure (2¤d subplot), plot as black solid line the theoretical velocity given by the formula v = r de/dt as function of time for 0 st s 20s.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 8 steps with 9 images

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning