Complexity Explorer Santa Few Institute

Ordinary Differential Equations

Lead instructor:

Your progress is not being saved! Enroll now or log in to track your progress or submit homework.

10.1 Unit 3 Homework » Homework Part 1

Quiz scores are NOT recorded.

  • You may come back to quizzes and take them as many times as you like
  • When you are finished, clicking the "Score" button at the bottom of the test will show you the correct responses.

Instructions

This homework assignment explores numerical ODE solvers; it is intended for people with some programming ability.

(The following questions are refered to in the solutions video as Part A and Part B of Question 1.)

Write a forward Euler (also called explicit Euler) solver for the simple harmonic oscillator ODEs with , , and

- that is, no friction. Check your solver using the Unit 3.5 quiz solution: start from initial condition:

with timestep to find and compare it to the quiz solution.