myPhysicsLab Documentation

Setting Initial Conditions

To set the inital conditions for a myPhysicsLab simulation

SIM_VARS.ANGLE_1=0.39269908169872414;
SIM_VARS.ANGLE_1_VELOCITY=0;
SIM_VARS.ANGLE_2=0;
SIM_VARS.ANGLE_2_VELOCITY=0;
> angle_1 = 1
1
> angle_1_velocity=2
2

The above instructions use the EasyScript feature of myPhysicsLab. Customizing with EasyScript has more information.

Set Initial Conditions with JavaScript

To set initial conditions using Javascript

(0) ANGLE_1: 0.39270,
(1) ANGLE_1_VELOCITY: 0.00000,
(2) ANGLE_2: 0.00000,
(3) ANGLE_2_VELOCITY: 0.00000,
(4) ACCELERATION_1: -6.54247,
(5) ACCELERATION_2: 6.04446,
(6) KINETIC_ENERGY: 0.00000,
(7) POTENTIAL_ENERGY: 2.98392,
(8) TOTAL_ENERGY: 2.98392,
(9) TIME: 0.00000,

Customizing with JavaScript has more information about using JavaScript with myPhysicsLab.