App-Physics-ParticleMotion
view release on metacpan or search on metacpan
lib/App/Physics/ParticleMotion.pm view on Meta::CPAN
my $out_filehandle = $app->{out_filehandle};
my $displayscale = $app->{displayscale};
my $time_warp = $app->{time_warp};
my @y = @{$app->{y}};
my $proj = $app->{proj};
# Starting time and time steps. $dt will be adjusted by the integrator
my $t = 0;
my $dt = 0.1;
# @prevlines holds line objects from the previous iterations.
my @prevlines = ();
# Previous values for line drawing
my @prev_x = ();
my @prev_y = ();
# Start time of the simulation for speed adjustment on fast systems
my $timeref = time();
# main loop
( run in 1.749 second using v1.01-cache-2.11-cpan-96521ef73a4 )