<< pendulumgui pendulumgui

pendulumgui >> pendulumgui > pendulumgui

pendulumgui

pendulumgui() A GUI for Simple pendulum simulations.

Syntax

pendulumgui

Description

pendulumgui() creates a graphical user interface (GUI) for simulation of simple pendulum.

It solves the following differential equation. \begin{eqnarray}
    \dfrac{d^2\theta}{dt^2}=-\dfrac{g}{l}\sin(\theta)
    \end{eqnarray}

More information

A simple gui for simple pendulum simulation. You can set the length and initial angle of the pendulum. You can also change the acceleration due to gravity, simulation speed and number of oscillations. You can plot different quantities for example, t vs \theta, t vs \dfrac{d\theta}{dt}, phase space trajectory, etc. There are three buttons: To start the simulation press Start button, if you want to pause the simulation press Pause button, and if you want to reset the simulation press Reset button.

Note : If you want to change any parameter such as length of pendulum first pause or reset the simulation, then again start the simulation.

Examples

pendulumgui()

Authors


Report an issue
<< pendulumgui pendulumgui