Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi need a code in Octave Programming Language to answer to the below questions related to Physics, please comment the code and give some brief
Hi need a code in Octave Programming Language to answer to the below questions related to Physics, please comment the code and give some brief explanation about it.
The forced oscillator is a harmonic oscillator subject to an outside force. Eventually, the oscillator may also be subject to friction or drag. In case this drag force exists and is proportional to the velocity, if the external force is sinusoidal, the 2nd law of Newton leads to the 2nd order differential equation for the trajectory: dx dx 1 + 20,5 + wax = F sen(wt) dt2 dt m Such that: x,t: position and time, x(t) Wo: angular frequency of natural oscillation, in the absence of outside force Wo = 7: drag coefficient. m: oscillating body mass. E: maximum magnitude of the external force. w: angular frequency of the external force. A - Integrate numerically the above differential equation to the following values: (SI) x(0) = 5, dx v(0) = = 0, dt Wo = 2, ? = 1, F = 4, w = 3 Interval and integration step:t E [0.20], h = 0.1. Introduce the results in a table like the one below and graphically represent the position and speed. The sine argument must be in RADIANS. t(s) x (m) (m/s) Kix kiv k2x k2v 0 0,1 0,2 0,3 0,4 0,5 19,9 20,0 B - Comment the Graphic and the resultsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started