Question

4. Matlab Solvers: A Case Study in Mechanics Suppose we have two objects orbiting in space, with masses 1 - and , rotating ar
measure the distance of the space ship from the earth and from the moon, respectively. Consider the initial conditions 9.(0)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

According to the data, the following as the MAT hab Code. that involves Code step Code * An ordinary differential equation COt in [o, pil2]. % F(t, Y) for any given ty, I, and y, and name it funsys.m function Fu = funsys (t, ross FVCI,1)= 2 * Y (1) +a to solve dy/dt = f(t, y). In general it can be function of both % define fct, f) fenstr=y-t^2 +l; f=inline (fenstr, Its% Adding step size disp sprintf = f(49,79), fact, ya) tali) = to s ya (1)= you for i=lan diep (sprintf (\n Step login disp (%g in ska) disp cspscent 7 (23 € (19.8 +0.5 th ,9%+ 0.5xkixh) 1-1, 1-19) dispespeíutt (=f(%8+0.5*79,79 +0.5*ng* %8)) tali)Witaciti) 1 *)) disp (sprintf(! - login, ya (i+19)) disp (spréutf( at trg=%g!, Ai end disp (sprintf (Inin *** Results ** %dont represent the exact) disp(The figure window that now appears shows the approximate solutions dispe pre celúse Continuou- disp (sprintf ľ 179 18.91*100 yf- ya (n+1), yf) disp (sprintf ( % gabs (lyf-Ya(n+1)/ yt )*100) dispe sprintf( In The appr

I hope it will be helpful, Please give ThumsUp

Thank you!!

Add a comment
Know the answer?
Add Answer to:
4. Matlab Solvers: A Case Study in Mechanics Suppose we have two objects orbiting in space,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 6. [20 points] The following nonlinear differential equations describe the motion of a body in orbit...

    6. [20 points] The following nonlinear differential equations describe the motion of a body in orbit around two much heavier bodies. An example would be an Apollo capsule in an Earth-moon orbit. The three bodies determine a two-dimensional Cartesian plane in space The origin is at the center of mass of the two heavy bodies, the r-axis is the line through these two bodies, and the distance between their centers is taken as the unit. Thus, if μ is the...

  • PLEASE HELP SOLVE WITH MATLAB LANGUGE. Below are hints to the problem. THANKS A LOT!! 2...

    PLEASE HELP SOLVE WITH MATLAB LANGUGE. Below are hints to the problem. THANKS A LOT!! 2 Coriolis Force In a rotating frame-of-reference,the equations of motion of a particle, written in co- ordinates fixed to the frame, have additional terms due to the rotation of the frame itself Consider such a rotating frame, with its origin at the center of rotation.In these coor- dinates, the equations of motion for a point-mass subjected to forces F, and F S m, are F(0...

  • 6. In studying the Moon and the Earth, we saw that the tidal forces are causing...

    6. In studying the Moon and the Earth, we saw that the tidal forces are causing the Moon to be pushed away from the Earth. In our solar system, we have another curious case. Triton, the main moon of Neptune, is in a retrograde orbit, which means it is orbiting in the opposite direction that Neptune is rotating. It is likely a captured object. Because of tidal forces and this odd orbit, Triton is slowly spiraling in toward Neptune. This...

  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. d'T dT +0.83x = 0 dx? dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5, T(5) = 1)....

  • Hello These are a math problems that need to solve by MATLAB as code Thank you...

    Hello These are a math problems that need to solve by MATLAB as code Thank you ! Initial Value Problem #1: Consider the following first order ODE: dy-p-3 from to 2.2 with y() I (a) Solve with Euler's explicit method using h04. (b) Solve with the midpoint method using h 0.4. (c) Solve with the classical fourth-order Runge-Kutta method using 0.4 analytical solution of the ODE is,·? solution and the numerical solution at the points where the numerical solution is...

  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. der 0 dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. dr? +0.83, dT This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5,7/5) = 1). You are...

  • Seismometer Project Imagine that we have a delicate instrument carefully mounted on a low-friction surface, and...

    Seismometer Project Imagine that we have a delicate instrument carefully mounted on a low-friction surface, and held in place laterally by springs. Delicate Instrument Very low friction Mounting frame fixed to Earth Since the mounting frame is fixed to the Earth, seismic movements such as earthquakes are our input into the system! The delicate instrument of mass 'm', on the other hand, wants to stay fixed relative to inertial space. Let's assume that the inertial position of the delicate instrument...

  • matlab INSTRUCTIONS Consider the spring-mass damper that can be used to model many dynamic systems Applying Newton...

    matlab INSTRUCTIONS Consider the spring-mass damper that can be used to model many dynamic systems Applying Newton's Second Law to a free-body diagram of the mass m yields the following ODE m습+8 +kx=F(t) (1) dt2 Where F() is a forcing function, Consider the case where the forcing function itself is a damped oscillation: Where F F(t)-Ae-Bt COS(wt) (2) For this activity we'll see how we can formulate this ODE for a solution using MATLAB that could be used to study...

  • In this problem, we will investigate the strategy to deal with repeated eigenvalues in two wavs. Consider A-I 7-2-6...

    In this problem, we will investigate the strategy to deal with repeated eigenvalues in two wavs. Consider A-I 7-2-6 1. Find the only eigenvalue λο of A. Calculate (A-λ01)2 and (A-λ01)3. Does | 0 | satisfy (A-λ01YP P 0 or not? 2. Let M (PIAPIAP). Compute M-1AM. 3. Let Y -M-1X. From the system of equation for Y, deduce the differential equation of order n containing only уз (it should not contain yl or y2) and solve it 4. Obtain...

  • In this problem we consider rotational motion of a diatomic molecule such as carbon monoxide or...

    In this problem we consider rotational motion of a diatomic molecule such as carbon monoxide or nitric oxide. We treat a system of two point masses, mi and m2, rotating about their common center of mass. There are no external forces or torques on the system. We are in the center-of-mass frame, so the CM is at the origin. We treat the case of steady rotation, with w pointing in the z direction, and the particles moving in the ry...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT