Answered step by step
Verified Expert Solution
Question
1 Approved Answer
From the starting point of the geosynchronous orbit code, turn the script into a function that takes four inputs ( 1 ) a starting velocity,
From the starting point of the geosynchronous orbit code, turn the script into a function that takes four inputs a starting velocity, a starting position, the size of the time step, and a total run time and returns the ratio of the distance from the satellite to the Earth at the end of the simulation over the distance from the satellite to the center of the Earth at the start of the simulation. Also make a second version of this same function that does not use the Verlet algorithm, but instead uses Euler's method by updating the position using the velocity and then updating the velocity using the force.
The deliverables are a plot with two lines where the axis shows the varying time steps and the axis shows the ratios from the two functions Verlet and Euler plotted on a log scale for the geosynchronous condition and of run time and a short description in words of your conclusions based on the results. The goal is to get some idea of at what time step the two methods deliver comparable results say within or another threshold you specify. Your plot should be at least points and cover a nontrivial parameter space of time steps meaning enough range that something changes You should make a small MATLAB script that creates this plot, but no code will be graded.
Step 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