{source}

<?php require_once JPATH_SITE.'/TTcustom/TT_contentparser.php'; $$parameters = array("topicname" => "02_newtonianmechanics_8oscillations",      "modelname" => "ejss_model_SHM01realtimeODE");  echo generateSimHTML($$parameters, "EJSS");
?>
{/source}

Real Time Evolution added to Prelim code of Evolution page

//shaun code
// Date.now() gets the current UNIX timestamp in milliseconds.
curTime = Date.now();
// prevTime is initialised when the play button is hit. dt measures the time passed between 2 consecutive steps
var dt = (curTime - prevTime) / 1000;

prevTime = curTime;

### Other Resources

1.  https://www.geogebra.org/m/sux2Q5ak The Conical Pendulum by ukukuku

## Explore some factors that affect the period of a pendulum.

Press the play button. Watch the graph to see how the angle of the pendulum changes as it swings back and forth. Use the graph to determine the period of the pendulum. Adjust the scale by dragging the numbers on the axes. Change each variable – gravity, rod length, starting angle and mass – and observe how each one affects the period. Can you explain why? Try the damping slider. Does damping change the period?

{source}
<iframe width="651.3999999761581px" height="418.39999997615814px" frameborder="no" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" src="http://lab.concord.org/embeddable.html#interactives/inquiry-space/1-pendulum.json"></iframe>
{/source}

## Explore the motion of a pendulum on a spring.

Press the play button. Watch the graphs to see the motion of the spring pendulum. Can you distinguish the pattern of spring motion (up and down) from the pattern of pendulum motion (back and forth)? How are the two related? Is there a regular pattern to the motion? Compare the periods of the two graphs. How many different patterns can you produce by changing the variables – gravity, rod length, mass and spring constant? Under what conditions does the energy switch between back and forth and up and down? Does the initial starting angle affect the patterns when all the other variables are unchanged?

{source}

<iframe width="651.3999999761581px" height="418.39999997615814px" frameborder="no" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" src="http://lab.concord.org/embeddable.html#interactives/inquiry-space/3-springy-pendulum.json"></iframe>

{/source}