NOTE: THIS NODE MODULE IS UNDER HEAVY DEVELOPMENT AND NOT READY FOR USAGE YET!!
Javascript:
const mathConstants = require("constants-util/math"); console.log(mathConstants.SQRT3); // Will output 1.7320508075688772
Typescript:
import mathConstants from "constants-util/math"; console.log(mathConstants.SQRT3); // Will output 1.7320508075688772
- You can only import the specific parts (e.g. math, chemistry, physics, etc.) from the module.
- It is highly recommended to NOT destructure the constants object, if you use more than one part. This is because some constants of different fields have the same name, so there would be potential issues.
Although i try to keep the documentation always up to date, i cannot guarantee the 100% coverage.
All irrational numbers have 16 digits (or 15 digits, if the 16th was a 0).
- PHI - The golden ratio
- SQRT3 - Square root of 3
- SQRT3 - Square root of 5
- SQRT3 - Square root of 6
- SQRT3 - Square root of 7
- ZETA3 - Approximate value of 3 plugged into the "Riemann zeta function"