A small Raylib app for visualising a sample integral. AI Generated to play with the visualisation not for code quality.
integral.mov
integral from -pi/2 to pi/2 cos(x) / (1 + e^x) dx = 1
You can watch the weighted cosine curve, the accumulated area function F(x), the mirrored pairing f(x) + f(-x), and the denominator rewrite all line up on screen.
f(x) = cos(x) / (1 + e^x)
F(x) = integral from -pi/2 to x f(t) dt
- Press
1to5to switch between pages. - Press
spaceto pause or resume the animated sweep. - Press
rto reset the animation. - Use the mouse wheel to zoom the graph.
- Drag inside the graph to pan.
- Click on the graph to move the probe to a specific
x. - Hover curves and highlighted points to inspect live numeric values.
- Press
qto quit.
Requirements:
- A C compiler
makepkg-configraylib
Run:
make run