Athena is a small math toolkit for statistics, geometry, and linear algebra.
π§ Athena is a passion project and work in progress. Contributions welcomeβopen an issue or PR!
deno add jsr:@apl/athenaimport { geometry, linearAlgebra, statistics } from "jsr:@apl/athena";
const avg = statistics.mean([1, 2, 3]);
const circle = geometry.circle({ radius: 2 });
const distance = linearAlgebra.distance([0, 0], [3, 4]);Or import subpaths for smaller bundles:
import { mean } from "jsr:@apl/athena/statistics";
import { circleArea } from "jsr:@apl/athena/geometry";statistics:mean,median,variance,standardDeviation,correlation,mode,rangegeometry:circle,square,rectanglehelpers with derived propertieslinear_algebra:vectorAddition,dotProduct,distance,matrix,identityMatrix
deno task fmt # format
deno task lint # lint
deno task test # run tests
deno task coverage # generate coverage.lcov- Tests look for
*_test.ts. - CI (GitHub Actions) runs fmt, lint, and test on push/PR.