How the Physics Calculator Solves for Any Variable
Each formula is stored with its variables and a solver that knows how to isolate every one of them. When you pick a target variable, the engine selects the rearranged form algebraically — for example v = u + a·t becomes a = (v − u) / t or t = (v − u) / a — substitutes the known values, and returns the result along with the rearranged formula and a substitution line. The displacement-versus-time case s = u·t + ½a·t² is solved for time as a quadratic, choosing the smallest non-negative root, and every rearrangement guards against division by zero, negative radicands and out-of-range inverse-trig arguments. All routines are pure functions in a unit-testable engine.
- Every variable of every formula has an explicit closed-form rearrangement
- Kinematics, forces, energy, power, momentum, circular, waves, electricity, fluids, gravitation
- Solving s = u·t + ½a·t² for t uses the quadratic formula (smallest non-negative root)
- Constants g = 9.80665, G = 6.6743e−11, c and k are built in
- Pure, unit-testable engine — no DOM, no server
