📈 Graphing Calculator
Plot up to 4 functions simultaneously on an interactive canvas. Pan, zoom, and explore math visually.
Quick presets:
How to Use the Graphing Calculator
Type any mathematical function using x as the variable. You can plot up to 4 functions at once, each in a different GEMS color. Use the checkboxes to show/hide individual functions. Drag the graph to pan, scroll to zoom, or use the buttons below the canvas.
Supported Functions & Syntax
This calculator uses math.js for expression parsing, supporting:
- Trig: sin(x), cos(x), tan(x), asin(x), acos(x), atan(x)
- Powers: x^2, x^3, x^0.5, sqrt(x)
- Logs: log(x) (base 10), log(x, 2) (base 2), log2(x), ln(x)
- Other: abs(x), floor(x), ceil(x), round(x), exp(x), sign(x)
- Constants: pi, e
- Combinations: sin(x)^2 + cos(x)^2, 2*sin(3*x + pi/4)
Frequently Asked Questions
Why are trig functions in radians?
Radians are the standard unit for mathematical analysis. One full cycle of sin(x) goes from 0 to 2π (≈6.28). To work in degrees, use sin(x * pi/180).
How do I plot a straight line?
Enter a linear expression like 2*x + 1 (slope 2, y-intercept 1) or -0.5*x + 3.
Can I find intersections?
Plot both functions and hover over the crossing point — the crosshair shows the exact coordinates. You can zoom in for precision.
How does this relate to GEMS?
A graphing calculator visualizes all four GEMS operations together — Grouping (parentheses in expressions), Exponents (x^2, sqrt), Multiplication (2*x), and Addition/Subtraction (x+1). It’s order of operations made visual.