1

Cardiac Pulse & ECG

Biomedical cardiovascular simulation combining the classic mathematical cardioid heart contraction with a multi-Gaussian P-QRS-T electrocardiogram trace.

Playground
60 FPS Canvas 2D
Click + Drag to interact with field

Live Parameters

Heart Rate (BPM) 72
Beats per minute cardiac frequency
ƒ

Mathematical Formulation

85 chars high
Analytical Equation
V_{\text{ECG}}(t) = \sum_{i \in \{P, Q, R, S, T\}} a_i \exp\left( -\frac{(t - \mu_i)^2}{2\sigma_i^2} \right), \quad x(t) = 16\sin^3(t), \quad y(t) = -(13\cos t - 5\cos 2t - 2\cos 3t - \cos 4t)
Compact Formula
ecg(t) = P(0.18) + Q(-0.15) + R(1.0) + S(-0.3) + T(0.35), heart_scale = 1 + 0.22*ecg
Renderer Logic
const rWave = 1.0 * Math.exp(-Math.pow((p - 0.4) / 0.02, 2));
const hx = 16 * Math.pow(Math.sin(phi), 3) * 6;
const hy = -(13 * Math.cos(phi) - 5 * Math.cos(2 * phi) - 2 * Math.cos(3 * phi) - Math.cos(4 * phi)) * 6;
Open in Playground Zero Dependencies • Standalone

Mathematical Tags

#heart #cardiac #ecg #anatomy #biology #cardioid #pulse
Author: Math Art Core Target: 60 FPS

Export & Embed: Cardiac Pulse & ECG

4K PNG Snapshot

High-resolution single frame render

WebM Video (5s Loop)

60 FPS browser-captured stream

HTML Iframe Embed

<iframe src="https://art.fazleyrabbi.xyz/embed/cardiac-pulse" width="500" height="500" frameborder="0" loading="lazy"></iframe>
ESC
↑↓ Navigate Select
25 Mathematical Artworks