FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mathjs/src/main.js at develop · KIKOU2016/mathjs · GitHub
KIKOU2016
/
mathjs
Public
forked from
josdejong/mathjs
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
mathjs
/
src
/
main.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (35 loc) · 1.65 KB
Breadcrumbs
mathjs
/
src
/
main.js
Copy path
File metadata and controls
40 lines (35 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'use strict'
const
core
=
require
(
'./core/core'
)
/**
* math.js factory function. Creates a new instance of math.js
*
*
@param
{
Object
} [config] Available configuration options:
* {number} epsilon
* Minimum relative difference between two
* compared values, used by all comparison functions.
* {string} matrix
* A string 'matrix' (default) or 'array'.
* {string} number
* A string 'number' (default), 'bignumber', or
* 'fraction'
* {number} precision
* The number of significant digits for BigNumbers.
* Not applicable for Numbers.
* {boolean} predictable
* Predictable output type of functions. When true,
* output type depends only on the input types. When
* false (default), output type can vary depending
* on input values. For example `math.sqrt(-4)`
* returns `complex('2i')` when predictable is false, and
* returns `NaN` when true.
*/
function
create
(
config
)
{
// create a new math.js instance
const
math
=
core
.
create
(
config
)
math
.
create
=
create
// import data types, functions, constants, expression parser, etc.
math
[
'import'
]
(
require
(
'./index'
)
)
return
math
}
// return a new instance of math.js
module
.
exports
=
create
(
)
Back
|
FazBrowse Home
|
New Git URL