Interactive Demos

Explore mathematical concepts through interactive Python code. Edit the highlighted sections and run the code to see immediate results.

Trigonometric Functions

The sine function is fundamental in mathematics and physics. It can be expressed as:

Where is the amplitude, is the frequency, and is the phase shift. Try modifying these parameters below:

Interactive Sine Wave Generator

Modify the frequency, amplitude, and phase parameters to see how they affect the sine wave.

python

Interactive Plot:

💡 Try: hover over elements, zoom with mouse wheel, pan by dragging, use toolbar buttons

Statistical Distributions

The normal distribution is characterized by its probability density function:

Where is the mean and is the standard deviation. Experiment with different parameters:

Statistical Distribution Explorer

Adjust the sample size, mean, and standard deviation to explore how they affect the distribution.

python

Interactive Plot:

💡 Try: hover over elements, zoom with mouse wheel, pan by dragging, use toolbar buttons

How It Works

Client-Side Execution

Python code runs entirely in your browser using Pyodide (WebAssembly). No server required - everything happens locally for instant results.

Selective Editing

Only highlighted regions can be edited. This focuses learning on key concepts while maintaining working code structure.

Mathematical Rendering

LaTeX equations are rendered beautifully using KaTeX, allowing complex mathematical expressions to be displayed alongside code.

Interactive Visualizations

Plotly creates fully interactive plots with zoom, pan, hover, and more. Modify parameters and explore data dynamically in real-time.