FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mathjs/index.js at v4 · JavaScriptIOT/mathjs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptIOT
/
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
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (34 loc) · 1.63 KB
Breadcrumbs
mathjs
/
index.js
Copy path
File metadata and controls
38 lines (34 loc) · 1.63 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
var
core
=
require
(
'./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(-2)`
* returns `NaN` when predictable is false, and
* returns `complex('2i')` when true.
*/
function
create
(
config
)
{
// create a new math.js instance
var
math
=
core
.
create
(
config
)
;
math
.
create
=
create
;
// import data types, functions, constants, expression parser, etc.
math
[
'import'
]
(
require
(
'./lib'
)
)
;
return
math
;
}
// return a new instance of math.js
module
.
exports
=
create
(
)
;
Back
|
FazBrowse Home
|
New Git URL