1. Mapping World Coordinates to Canvas Pixels
A real-time graphing engine translates continuous mathematical (x, y) pairs from abstract Cartesian world space onto discrete screen pixel coordinates on an HTML5 Canvas. By sampling hundreds of horizontal x-positions across the active viewport bounds, polynomials, wave functions, and exponential curves render smoothly at interactive frame rates.
Handling domain singularities such as division by zero in 1/x or vertical asymptotes in tan(x) requires detecting sudden unbounded jumps between adjacent samples so the plotter lifts the stroke cleanly instead of drawing false vertical lines across infinity.
2. Exploring Roots and Intersections Visually
Overlaying two or more expressions f(x) and g(x) on the same color-coded coordinate plane immediately reveals root intercepts, local extrema, and non-linear intersections without tedious algebraic guesswork.
Toolbly supports trigonometric functions (sin, cos, tan), logarithms, square roots, absolute values, and polynomial exponents with interactive pan and zoom controls right inside your browser.
3. Polynomials vs. Trigonometric Curves
Understanding input syntax and radian mode prevents common plotting surprises when comparing curve families:
Algebraic & Rational Curves
Use explicit operators like 2 * x^2 - 4 or 1 / x to inspect parabolas, asymptotes, and exact x-axis intercepts.
Trigonometric Waves (Radians)
Evaluates sin(x), cos(x), and tan(x) in standard radians, peaking at pi/2 (~1.5708) and completing full cycles every 2*pi.
Pro tip: Combine a linear or polynomial curve with a trigonometric wave such as x/3 and sin(x) to visualize non-linear root intersections clearly.
4. 60 FPS Client-Side Rendering Offline
Every equation is parsed and plotted directly in local browser JavaScript and Canvas 2D memory, eliminating server round-trips and ensuring smooth zooming and panning in classrooms, labs, and offline study sessions.