See Toddez/graphing-calcuator for a more recent attempt at a graphing calculator.
yarn install
Install node modules
yarn start
Runs a express server on port 3000 serving the application
-
- The expressions, constants and functions are parsed into glsl.
- The parser can expressions such as:
- Lines:
- Referencing other variables or functions:
y = x
x = tanh(y)
- Constraints:
y = x { x > 0; y > 0 }
- Will only ploty = x
wherex > 0
andy > 0
- Referencing other variables or functions:
- Points:
(1, 2)
- Derivatives
y = 'y0
- Will plot the derivative of the firsty=
expression
- Lines:
- The constants and functions need to be valid glsl (with minor exceptions such as
1
is automatically parsed to1.0
) - Constants and functions are evaluated in order
-
- All expressions are evaluated and rendered on the GPU using WebGL in real time
- Move around holding left click and dragging mouse
- Zoom using scroll wheel