I'm new to Julia programming I managed to solve some 1st order ODE, but when I thought to move to the second order I don't know how to use the solver to implement to the required equation.
I want to solve this equation
y" + y = 0
with initial conditions
y(0) = 3
y'(0) = -0.5
How can I do this?
change it to
y'' = -y
and then useSecondOrderODEProblem
, i.e. https://diffeq.sciml.ai/stable/types/dynamical_types/, via:For more examples of this, see the Classical Physics Problems tutorial:
https://tutorials.sciml.ai/html/models/01-classical_physics.html