Skip to content

jamylak/integral04

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Definite Integral Explorer

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.

What This Repo Is

f(x) = cos(x) / (1 + e^x)
F(x) = integral from -pi/2 to x  f(t) dt

Interaction

  • Press 1 to 5 to switch between pages.
  • Press space to pause or resume the animated sweep.
  • Press r to 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 q to quit.

How To Run

Requirements:

  • A C compiler
  • make
  • pkg-config
  • raylib

Run:

make run

About

Integral Visualisation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors