Skip to content

apl9000/athena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘©β€πŸ”¬ Athena

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!

Install

deno add jsr:@apl/athena

Usage

import { 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";

API highlights

  • statistics: mean, median, variance, standardDeviation, correlation, mode, range
  • geometry: circle, square, rectangle helpers with derived properties
  • linear_algebra: vectorAddition, dotProduct, distance, matrix, identityMatrix

Tasks

deno task fmt       # format
deno task lint      # lint
deno task test      # run tests
deno task coverage  # generate coverage.lcov

Development

  • Tests look for *_test.ts.
  • CI (GitHub Actions) runs fmt, lint, and test on push/PR.

About

πŸ‘©β€πŸ”¬ Athena is a collection of functions for math, science and other stuff.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors