2022-07-19 00:08:49 +00:00
|
|
|
/* Core of pocomath: generates the default instance */
|
2022-07-22 20:49:14 +00:00
|
|
|
import PocomathInstance from './core/PocomathInstance.mjs'
|
2022-07-25 11:20:13 +00:00
|
|
|
import * as numbers from './number/native.mjs'
|
2022-07-25 18:56:12 +00:00
|
|
|
import * as bigints from './bigint/native.mjs'
|
2022-07-25 11:20:13 +00:00
|
|
|
import * as complex from './complex/native.mjs'
|
2022-08-03 18:27:40 +00:00
|
|
|
import * as tuple from './tuple/native.mjs'
|
|
|
|
// Most of tuple is not ready yet:
|
|
|
|
const tupleReady = {
|
|
|
|
Tuple: tuple.Tuple,
|
|
|
|
equal: tuple.equal,
|
2022-08-04 15:23:14 +00:00
|
|
|
isZero: tuple.isZero,
|
2022-08-03 18:27:40 +00:00
|
|
|
length: tuple.length,
|
|
|
|
tuple: tuple.tuple
|
|
|
|
}
|
2022-07-25 11:20:13 +00:00
|
|
|
import * as generic from './generic/all.mjs'
|
2022-08-02 07:47:37 +00:00
|
|
|
import * as ops from './ops/all.mjs'
|
2022-07-19 00:08:49 +00:00
|
|
|
|
2022-08-01 15:28:21 +00:00
|
|
|
const math = PocomathInstance.merge(
|
2022-08-03 18:27:40 +00:00
|
|
|
'math', numbers, bigints, complex, tupleReady, generic, ops)
|
2022-07-19 00:08:49 +00:00
|
|
|
|
|
|
|
export default math
|