Explaining add-on

Equation analysis

Describe what is known, what is unknown, and which transformations are safe to show to a learner.

← All documentation

Make unknowns explicit.

EquationAnalyzer returns a serializable analysis rather than pretending every equation has a closed-form solution. Use its closed-form rules for linear, quadratic, and power forms, or use NumericalEquationAnalyzer for any single-variable equality that Core can evaluate.

$analysis = (new EquationAnalyzer())->analyze('1*x^2 + 0*x + 1 = 5');
// render $analysis->toArray() in your UI
$numeric = (new NumericalEquationAnalyzer())->analyze('sin(x) = x / 2', 'x', -8, 8);
// roots: approximately -1.89549, 0, 1.89549

Conditional branches stay explicit

PiecewiseEvaluator handles bounded piecewise(condition: value; otherwise: value) and if(condition, true, false) expressions. It evaluates conditions top-to-bottom, reports the selected branch and steps, and evaluates only that branch.

$piece = (new PiecewiseEvaluator())->explain('piecewise(x < 0: -x; otherwise: x)', ['x' => -3]);
// value: 3; branch: 1

Limits and chained bounds

LimitAnalyzer estimates one- or two-sided finite limits from geometric samples and preserves non-convergence as partial. InequalityAnalyzer intersects chained relations such as 1 < x ≤ 3 while retaining open and closed endpoints.

Bounded one-dimensional PDEs

NumericalPdeAnalyzer integrates u_t = F(x,t,u,u_x,u_xx) on a finite grid with centered advection and diffusion stencils, a direct nonlinear-operator fallback, Dirichlet, Neumann, or Robin boundary conditions, and a local sensitivity stability guard. It returns pde-heatmap snapshots. Undefined operators and higher-dimensional or symbolic PDEs remain explicitly unsupported.

Numerical scope:Finite intervals and sampled bisection provide approximate roots and limits; partial remains possible for domain gaps, tangent roots, side disagreement, singular boundary coefficients, or roots outside the interval. These analyzers expose evidence, not universal symbolic proofs.