mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Provides a number-only factory for `log` with both signatures 'number' and 'number,number'. Resolves #2514.
8 lines
274 B
JavaScript
8 lines
274 B
JavaScript
// TODO: would be nice to call '../../' so we know for sure ESM is correctly exported
|
|
import { e, sqrt, format, log } from '../../lib/esm/number.js'
|
|
|
|
console.log(format(sqrt(4)))
|
|
console.log(format(sqrt(-4)))
|
|
console.log(format(log(e * e)))
|
|
console.log(format(log(625, 5)))
|