@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    2
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @honux/mathf

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

2.35 kB

Total Files

4

Last publish

Collaborators

  • honux