suvat
v1.0.1
Published
A small TypeScript/JavaScript library for solving SUVAT equations.
Maintainers
Readme
SUVAT
A small TypeScript/JavaScript library for solving the SUVAT equations.
Installation
Install via npm:
npm install suvatExample usage
import * as suvat from "suvat";
// enter 3 known variables to find the other 2
const completed = suvat.complete({
s: 1,
u: 2,
v: 3,
});
// use a specific formula
// - solve for s, with u as the 2nd unknown.
const s = suvat.formulas.s.u({
v: 3,
a: 4,
t: 5,
});