mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
12 lines
288 B
JavaScript
12 lines
288 B
JavaScript
// Use case 4
|
|
// create your own config and load some functions
|
|
|
|
import { create, add, multiply } from '../src/mainAll'
|
|
|
|
console.log('\nuse case 4')
|
|
|
|
const math = create([add, multiply])
|
|
math.config({ number: 'BigNumber' })
|
|
|
|
console.log('2 * 3 + 4 = ' + math.add(math.multiply(2, 3), 4))
|