@nanomatic/math
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Math library

@nanomatic/math

Status License


Implementation of the mathematics utils.

📝 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

✍️ Authors

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i @nanomatic/math

Homepage

nanomatic.pl

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.94 kB

Total Files

4

Last publish

Collaborators

  • nano_matic