calculus-toolkit

1.0.2 • Public • Published

calculus-toolkit

calculus-toolkit is a JavaScript library that provides various mathematical functions including calculus operations such as derivatives and integrals. It also includes basic arithmetic operations and number formatting utilities.

Installation

You can install calculus-toolkit via npm:

npm install math-kit

Usage

Derivative

import { derivative } from 'math-kit';

// Define your function
const myFunction = x => x ** 2;

// Calculate the derivative at a specific point
console.log(derivative(myFunction, 2)); // Output: 4

Integral

import { integral } from 'math-kit';

// Define your function
const myFunction = x => x ** 2;

// Calculate the integral within a specific range
console.log(integral(myFunction, 0, 2)); // Output: 2.6667

Contribution

You can contribute to the development of calculus-toolkit by submitting pull requests to the GitHub repository.

License

calculus-toolkit is licensed under the MIT License.

Package Sidebar

Install

npm i calculus-toolkit

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • luthfiamrullah