Question: Solution of second order differential equation system different from initial conditions at t=0.

Hello!

So as the title says i have a problem with solution of second order differential equation system.

The problem is that after i set some initial conditions and check the solution when the time equals zero, the solution graph is completely different from my initial conditions which is obviously incorrect. I know that i can change "spacestep" parameter, but i am not sure if it is the only way to fix the problem. Are there any other ways to fix this?

Here is a part of my code if it helps

r0=1.570796327
theta0=6.000000000


Please Wait...