@honux/mathf
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

MathF.js

MathF is a JavaScript library that provides constants and static methods for common mathematical functions.

Install

npm install @honux/mathf

Quick Start

const { Mathf } = require('@honux/mathf');
console.log(Mathf.PI);
console.log(Mathf.isEven(2));
console.log(Mathf.isOdd(2));

Methods

  • IsOdd(num) : return true if num is a odd number
  • IsEven(num) : return true if num is a even number

Value

  • PI : Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
  • E : Represents the natural logarithmic base, specified by the constant, e.
  • Tau : 2 * PI

Reference

Readme

Keywords

Package Sidebar

Install

npm i @honux/mathf

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

2.35 kB

Total Files

4

Last publish

Collaborators

  • honux