@nanomatic/math
v1.0.0
Published
Implementation of the mathematics terms
Downloads
1
Readme
📝 Table of Contents
🏁 Getting Started
Installing
npm i @nanomatic/math
Using
Example code below:
import { Filter, Diff, Integral } from '@nanomatic/math';
// Filter
const filter = new Filter(.002);
filter.alpha = .4;
const value = 100;
console.log(filter.calc(value));
console.log(filter.calc(value));
console.log(filter.calc(value));
console.log(filter.calc(value));
filter.clear();
// Diff
const diff = new Diff;
console.log(diff.calc(5));
console.log(diff.calc(5));
console.log(diff.calc(0));
diff.clear();
// Integral
const integral = new Integral;
console.log(integral.calc(5));
console.log(integral.calc(5));
console.log(integral.calc(0));
integral.clear();
⛏️ Built With
- ts-node-dev - TypeScript Node Dev
- tsc-watch - The nodemon for TypeScript
- TSLint - TypeScript linter
- NodeJs - Test Environment
✍️ Authors
- @NANOmatic - Idea & Initial work