UNPKG

842 BJavaScriptView Raw
1export const DEFAULT_CONFIG = {
2 // minimum relative difference between two compared values,
3 // used by all comparison functions
4 epsilon: 1e-12,
5
6 // type of default matrix output. Choose 'matrix' (default) or 'array'
7 matrix: 'Matrix',
8
9 // type of default number output. Choose 'number' (default) 'BigNumber', or 'Fraction
10 number: 'number',
11
12 // number of significant digits in BigNumbers
13 precision: 64,
14
15 // predictable output type of functions. When true, output type depends only
16 // on the input types. When false (default), output type can vary depending
17 // on input values. For example `math.sqrt(-4)` returns `complex('2i')` when
18 // predictable is false, and returns `NaN` when true.
19 predictable: false,
20
21 // random seed for seeded pseudo random number generation
22 // null = randomly seed
23 randomSeed: null
24}