Skip to content
Snippets Groups Projects
Commit d8040236 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Korrektur pendulum-3.c

parent 7163da6a
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ gboolean timer (GtkWidget *widget)
{
t += dt;
phi_with_sin += omega_with_sin * dt;
omega_with_sin += - dt * g / l * phi_with_sin;
omega_with_sin += - dt * g / l * sin (phi_with_sin);
phi_without_sin += omega_without_sin * dt;
omega_without_sin += - dt * g / l * phi_without_sin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment