mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Publish v11.0.1
This commit is contained in:
parent
97768daf55
commit
4a7f9dcbdb
@ -40,10 +40,9 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.acot(0.5) // returns number 0.4636476090008061
|
||||
math.acot(0.5) // returns number 1.1071487177940904
|
||||
math.acot(2) // returns number 0.4636476090008061
|
||||
math.acot(math.cot(1.5)) // returns number 1.5
|
||||
|
||||
math.acot(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -40,10 +40,9 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.acsc(0.5) // returns number 0.5235987755982989
|
||||
math.acsc(2) // returns 0.5235987755982989
|
||||
math.acsc(0.5) // returns Complex 1.5707963267948966 -1.3169578969248166i
|
||||
math.acsc(math.csc(1.5)) // returns number ~1.5
|
||||
|
||||
math.acsc(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -40,10 +40,10 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.asec(0.5) // returns 1.0471975511965979
|
||||
math.asec(2) // returns 1.0471975511965979
|
||||
math.asec(math.sec(1.5)) // returns 1.5
|
||||
|
||||
math.asec(2) // returns 0 + 1.3169578969248166 i
|
||||
math.asec(0.5) // returns Complex 0 + 1.3169578969248166i
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ Type | Description
|
||||
math.asin(0.5) // returns number 0.5235987755982989
|
||||
math.asin(math.sin(1.5)) // returns number ~1.5
|
||||
|
||||
math.asin(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
||||
math.asin(2) // returns Complex 1.5707963267948966 -1.3169578969248166i
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -41,9 +41,8 @@ Type | Description
|
||||
|
||||
```js
|
||||
math.atan(0.5) // returns number 0.4636476090008061
|
||||
math.atan(2) // returns number 1.1071487177940904
|
||||
math.atan(math.tan(1.5)) // returns number 1.5
|
||||
|
||||
math.atan(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ const angle = math.unit(60, 'deg') // returns Unit 60 deg
|
||||
const x = math.cos(angle)
|
||||
const y = math.sin(angle)
|
||||
|
||||
math.atan(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
||||
math.atan(2) // returns number 1.1071487177940904
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ Type | Description
|
||||
```js
|
||||
math.bitNot(1) // returns number -2
|
||||
|
||||
math.bitNot([2, -3, 4]) // returns Array [-3, 2, 5]
|
||||
math.bitNot([2, -3, 4]) // returns Array [-3, 2, -5]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ Type | Description
|
||||
|
||||
```js
|
||||
math.clone(3.5) // returns number 3.5
|
||||
math.clone(math.complex('2-4i') // returns Complex 2 - 4i
|
||||
math.clone(math.complex('2-4i')) // returns Complex 2 - 4i
|
||||
math.clone(math.unit(45, 'deg')) // returns Unit 45 deg
|
||||
math.clone([[1, 2], [3, 4]]) // returns Array [[1, 2], [3, 4]]
|
||||
math.clone("hello world") // returns string "hello world"
|
||||
|
||||
@ -47,9 +47,9 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.derivative('x^2', 'x') // Node {2 * x}
|
||||
math.derivative('x^2', 'x', {simplify: false}) // Node {2 * 1 * x ^ (2 - 1)
|
||||
math.derivative('sin(2x)', 'x')) // Node {2 * cos(2 * x)}
|
||||
math.derivative('x^2', 'x') // Node '2 * x'
|
||||
math.derivative('x^2', 'x', {simplify: false}) // Node '2 * 1 * x ^ (2 - 1)'
|
||||
math.derivative('sin(2x)', 'x')) // Node '2 * cos(2 * x)'
|
||||
math.derivative('2*x', 'x').evaluate() // number 2
|
||||
math.derivative('x^2', 'x').evaluate({x: 4}) // number 8
|
||||
const f = math.parse('x^2')
|
||||
|
||||
@ -47,7 +47,7 @@ Type | Description
|
||||
```js
|
||||
const arr = [1, 2, 4, 7, 0]
|
||||
math.diff(arr) // returns [1, 2, 3, -7] (no dimension passed so 0 is assumed)
|
||||
math.diff(math.matrix(arr)) // returns math.matrix([1, 2, 3, -7])
|
||||
math.diff(math.matrix(arr)) // returns Matrix [1, 2, 3, -7]
|
||||
|
||||
const arr = [[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [9, 8, 7, 6, 4]]
|
||||
math.diff(arr) // returns [[0, 0, 0, 0, 0], [8, 6, 4, 2, -1]]
|
||||
|
||||
@ -58,11 +58,11 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.distance([0,0], [4,4]) // Returns 5.6569
|
||||
math.distance([0,0], [4,4]) // Returns 5.656854249492381
|
||||
math.distance(
|
||||
{pointOneX: 0, pointOneY: 0},
|
||||
{pointTwoX: 10, pointTwoY: 10}) // Returns 14.142135623730951
|
||||
math.distance([1, 0, 1], [4, -2, 2]) // Returns 3.74166
|
||||
math.distance([1, 0, 1], [4, -2, 2]) // Returns 3.7416573867739413
|
||||
math.distance(
|
||||
{pointOneX: 4, pointOneY: 5, pointOneZ: 8},
|
||||
{pointTwoX: 2, pointTwoY: 7, pointTwoZ: 9}) // Returns 3
|
||||
|
||||
@ -52,7 +52,7 @@ math.fix(-4.17, 1) // returns number -4.1
|
||||
|
||||
const c = math.complex(3.22, -2.78)
|
||||
math.fix(c) // returns Complex 3 - 2i
|
||||
math.fix(c, 1) // returns Complex 3.2 - 2.7i
|
||||
math.fix(c, 1) // returns Complex 3.2 -2.7i
|
||||
|
||||
math.fix([3.2, 3.8, -4.7]) // returns Array [3, 3, -4]
|
||||
math.fix([3.2, 3.8, -4.7], 1) // returns Array [3.2, 3.8, -4.7]
|
||||
|
||||
@ -52,7 +52,7 @@ math.floor(-4.782, 2) // returns number -4.79
|
||||
|
||||
const c = math.complex(3.24, -2.71)
|
||||
math.floor(c) // returns Complex 3 - 3i
|
||||
math.floor(c, 1) // returns Complex 3.2 - 2.8i
|
||||
math.floor(c, 1) // returns Complex 3.2 -2.8i
|
||||
|
||||
math.floor([3.2, 3.8, -4.7]) // returns Array [3, 3, -5]
|
||||
math.floor([3.21, 3.82, -4.71], 1) // returns Array [3.2, 3.8, -4.8]
|
||||
|
||||
@ -105,14 +105,14 @@ Type | Description
|
||||
|
||||
```js
|
||||
math.format(6.4) // returns '6.4'
|
||||
math.format(1240000) // returns '1.24e6'
|
||||
math.format(1240000) // returns '1.24e+6'
|
||||
math.format(1/3) // returns '0.3333333333333333'
|
||||
math.format(1/3, 3) // returns '0.333'
|
||||
math.format(21385, 2) // returns '21000'
|
||||
math.format(12e8, {notation: 'fixed'}) // returns '1200000000'
|
||||
math.format(2.3, {notation: 'fixed', precision: 4}) // returns '2.3000'
|
||||
math.format(52.8, {notation: 'exponential'}) // returns '5.28e+1'
|
||||
math.format(12400,{notation: 'engineering'}) // returns '12.400e+3'
|
||||
math.format(12400, {notation: 'engineering'}) // returns '12.4e+3'
|
||||
math.format(2000, {lowerExp: -2, upperExp: 2}) // returns '2e+3'
|
||||
|
||||
function formatCurrency(value) {
|
||||
|
||||
@ -45,7 +45,7 @@ math.isNumeric('2') // returns false
|
||||
math.hasNumericValue(0) // returns true
|
||||
math.hasNumericValue(math.bignumber(500)) // returns true
|
||||
math.hasNumericValue(math.fraction(4)) // returns true
|
||||
math.hasNumericValue(math.complex('2-4i') // returns false
|
||||
math.hasNumericValue(math.complex('2-4i')) // returns false
|
||||
math.hasNumericValue(false) // returns true
|
||||
math.hasNumericValue([2.3, 'foo', false]) // returns [true, false, true]
|
||||
```
|
||||
|
||||
@ -38,8 +38,7 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
//the following outputs "0xF0"
|
||||
math.hex(240)
|
||||
math.hex(240) // returns "0xF0"
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ Type | Description
|
||||
|
||||
```js
|
||||
math.invmod(8, 12) // returns NaN
|
||||
math.invmod(7, 13) // return 2
|
||||
math.invmod(7, 13) // returns 2
|
||||
math.invmod(15151, 15122) // returns 10429
|
||||
```
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ math.isInteger(math.bignumber(500)) // returns true
|
||||
math.isInteger(math.fraction(4)) // returns true
|
||||
math.isInteger('3') // returns true
|
||||
math.isInteger([3, 0.5, -2]) // returns [true, false, true]
|
||||
math.isInteger(math.complex('2-4i') // throws an error
|
||||
math.isInteger(math.complex('2-4i')) // throws an error
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ math.isNaN(math.bignumber(NaN)) // returns true
|
||||
math.isNaN(math.bignumber(0)) // returns false
|
||||
math.isNaN(math.fraction(-2, 5)) // returns false
|
||||
math.isNaN('-2') // returns false
|
||||
math.isNaN([2, 0, -3, NaN]') // returns [false, false, false, true]
|
||||
math.isNaN([2, 0, -3, NaN]) // returns [false, false, false, true]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ math.isNegative(-0) // returns false
|
||||
math.isNegative(math.bignumber(2)) // returns false
|
||||
math.isNegative(math.fraction(-2, 5)) // returns true
|
||||
math.isNegative('-2') // returns true
|
||||
math.isNegative([2, 0, -3]') // returns [false, false, true]
|
||||
math.isNegative([2, 0, -3]) // returns [false, false, true]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ math.hasNumericValue('2') // returns true
|
||||
math.isNumeric(0) // returns true
|
||||
math.isNumeric(math.bignumber(500)) // returns true
|
||||
math.isNumeric(math.fraction(4)) // returns true
|
||||
math.isNumeric(math.complex('2-4i') // returns false
|
||||
math.isNumeric(math.complex('2-4i')) // returns false
|
||||
math.isNumeric([2.3, 'foo', false]) // returns [true, false, true]
|
||||
```
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ math.isPositive(-0) // returns false
|
||||
math.isPositive(0.5) // returns true
|
||||
math.isPositive(math.bignumber(2)) // returns true
|
||||
math.isPositive(math.fraction(-2, 5)) // returns false
|
||||
math.isPositive(math.fraction(1,3)) // returns false
|
||||
math.isPositive(math.fraction(1, 3)) // returns true
|
||||
math.isPositive('2') // returns true
|
||||
math.isPositive([2, 0, -3]) // returns [true, false, false]
|
||||
```
|
||||
|
||||
@ -41,17 +41,17 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.isZero(0) // returns true
|
||||
math.isZero(2) // returns false
|
||||
math.isZero(0.5) // returns false
|
||||
math.isZero(math.bignumber(0)) // returns true
|
||||
math.isZero(math.fraction(0)) // returns true
|
||||
math.isZero(math.fraction(1,3)) // returns false
|
||||
math.isZero(math.complex('2 - 4i') // returns false
|
||||
math.isZero(math.complex('0i') // returns true
|
||||
math.isZero('0') // returns true
|
||||
math.isZero('2') // returns false
|
||||
math.isZero([2, 0, -3]') // returns [false, true, false]
|
||||
math.isZero(0) // returns true
|
||||
math.isZero(2) // returns false
|
||||
math.isZero(0.5) // returns false
|
||||
math.isZero(math.bignumber(0)) // returns true
|
||||
math.isZero(math.fraction(0)) // returns true
|
||||
math.isZero(math.fraction(1,3)) // returns false
|
||||
math.isZero(math.complex('2 - 4i')) // returns false
|
||||
math.isZero(math.complex('0i')) // returns true
|
||||
math.isZero('0') // returns true
|
||||
math.isZero('2') // returns false
|
||||
math.isZero([2, 0, -3]) // returns [false, true, false]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ Type | Description
|
||||
```js
|
||||
math.leftShift(1, 2) // returns number 4
|
||||
|
||||
math.leftShift([1, 2, 3], 4) // returns Array [16, 32, 64]
|
||||
math.leftShift([1, 2, 4], 4) // returns Array [16, 32, 64]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -45,9 +45,9 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.nthRoot(9, 2) // returns 3, as 3^2 == 9
|
||||
math.sqrt(9) // returns 3, as 3^2 == 9
|
||||
math.nthRoot(64, 3) // returns 4, as 4^3 == 64
|
||||
math.nthRoot(9, 2) // returns 3 (since 3^2 == 9)
|
||||
math.sqrt(9) // returns 3 (since 3^2 == 9)
|
||||
math.nthRoot(64, 3) // returns 4 (since 4^3 == 64)
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -46,12 +46,12 @@ math.nthRoots(1)
|
||||
// {re: 1, im: 0},
|
||||
// {re: -1, im: 0}
|
||||
// ]
|
||||
nthRoots(1, 3)
|
||||
math.nthRoots(1, 3)
|
||||
// returns [
|
||||
// { re: 1, im: 0 },
|
||||
// { re: -0.4999999999999998, im: 0.8660254037844387 },
|
||||
// { re: -0.5000000000000004, im: -0.8660254037844385 }
|
||||
]
|
||||
// ]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ Type | Description
|
||||
```js
|
||||
math.rightArithShift(4, 2) // returns number 1
|
||||
|
||||
math.rightArithShift([16, -32, 64], 4) // returns Array [1, -2, 3]
|
||||
math.rightArithShift([16, -32, 64], 4) // returns Array [1, -2, 4]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ Type | Description
|
||||
```js
|
||||
math.rightLogShift(4, 2) // returns number 1
|
||||
|
||||
math.rightLogShift([16, -32, 64], 4) // returns Array [1, 2, 3]
|
||||
math.rightLogShift([16, 32, 64], 4) // returns Array [1, 2, 4]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -41,13 +41,13 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
math.rotate([11, 12], math.pi / 2) // returns matrix([-12, 11])
|
||||
math.rotate(matrix([11, 12]), math.pi / 2) // returns matrix([-12, 11])
|
||||
math.rotate([11, 12], math.pi / 2) // returns [-12, 11]
|
||||
math.rotate(matrix([11, 12]), math.pi / 2) // returns [-12, 11]
|
||||
|
||||
math.rotate([1, 0, 0], unit('90deg'), [0, 0, 1]) // returns matrix([0, 1, 0])
|
||||
math.rotate(matrix([1, 0, 0]), unit('90deg'), [0, 0, 1]) // returns matrix([0, 1, 0])
|
||||
math.rotate([1, 0, 0], unit('90deg'), [0, 0, 1]) // returns [0, 1, 0]
|
||||
math.rotate(matrix([1, 0, 0]), unit('90deg'), [0, 0, 1]) // returns Matrix [0, 1, 0]
|
||||
|
||||
math.rotate([1, 0], math.complex(1 + i)) // returns matrix([cos(1 + i) - sin(1 + i), sin(1 + i) + cos(1 + i)])
|
||||
math.rotate([1, 0], math.complex(1 + i)) // returns [cos(1 + i) - sin(1 + i), sin(1 + i) + cos(1 + i)]
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -100,7 +100,9 @@ simplify(expr, scope, options)
|
||||
Parameter | Type | Description
|
||||
--------- | ---- | -----------
|
||||
`expr` | Node | string | The expression to be simplified
|
||||
`rules` | Array<{l:string, r: string} | string | function> | Optional list with custom rules
|
||||
`rules` | SimplifyRule[] | Optional list with custom rules
|
||||
`scope` | Object | Optional scope with variables
|
||||
`options` | SimplifyOptions | Optional configuration settings
|
||||
|
||||
<h3 id="returns">Returns <a href="#returns" title="Permalink">#</a></h3>
|
||||
|
||||
|
||||
@ -51,12 +51,11 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
symbolicEqual('x*y', 'y*x') // true
|
||||
symbolicEqual('x*y', 'y*x', {context: {multiply: {commutative: false}}})
|
||||
//false
|
||||
symbolicEqual('x/y', '(y*x^(-1))^(-1)') // true
|
||||
symbolicEqual('abs(x)','x') // false
|
||||
symbolicEqual('abs(x)','x', simplify.positiveContext) // true
|
||||
symbolicEqual('x*y', 'y*x') // Returns true
|
||||
symbolicEqual('x*y', 'y*x', {context: {multiply: {commutative: false}}}) // Returns false
|
||||
symbolicEqual('x/y', '(y*x^(-1))^(-1)') // Returns true
|
||||
symbolicEqual('abs(x)','x') // Returns false
|
||||
symbolicEqual('abs(x)','x', simplify.positiveContext) // Returns true
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ Math.js can be downloaded or linked from various content delivery networks:
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>unpkg</td>
|
||||
<td><a href="https://unpkg.com/mathjs@11.0.0/">https://unpkg.com/mathjs@11.0.0/</a></td>
|
||||
<td><a href="https://unpkg.com/mathjs@11.0.1/">https://unpkg.com/mathjs@11.0.1/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cdnjs</td>
|
||||
@ -47,8 +47,8 @@ Math.js can be downloaded or linked from various content delivery networks:
|
||||
Or download the full bundle directly from [unpkg](https://unpkg.com):
|
||||
|
||||
<p>
|
||||
<a href="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js">
|
||||
math.js (version 11.0.0, <span id="size">191 kB</span>, minified and gzipped)
|
||||
<a href="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js">
|
||||
math.js (version 11.0.1, <span id="size">191 kB</span>, minified and gzipped)
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ File: [angle_configuration.html](angle_configuration.html) (click for a live dem
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | basic usage</title>
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ File: [basic_usage.html](basic_usage.html) (click for a live demo)
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | basic usage</title>
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | currency conversion</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -13,7 +13,7 @@ File: [currency_conversion.html](currency_conversion.html) (click for a live dem
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | currency conversion</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ File: [custom_separators.html](custom_separators.html) (click for a live demo)
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | plot</title>
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ File: [plot.html](plot.html) (click for a live demo)
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | plot</title>
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ File: [pretty_printing_with_mathjax.html](pretty_printing_with_mathjax.html) (cl
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | printing HTML</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -13,7 +13,7 @@ File: [printing_html.html](printing_html.html) (click for a live demo)
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | printing HTML</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['https://unpkg.com/mathjs@11.0.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.0.1/lib/browser/math.js'], function (math) {
|
||||
// evaluate some expression
|
||||
const result = math.evaluate('1.2 * (2 + 4.5)')
|
||||
document.write(result)
|
||||
|
||||
@ -18,7 +18,7 @@ File: [requirejs_loading.html](requirejs_loading.html) (click for a live demo)
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['https://unpkg.com/mathjs@11.0.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.0.1/lib/browser/math.js'], function (math) {
|
||||
// evaluate some expression
|
||||
const result = math.evaluate('1.2 * (2 + 4.5)')
|
||||
document.write(result)
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | rocket trajectory optimization</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -14,7 +14,7 @@ File: [rocket_trajectory_optimization.html](rocket_trajectory_optimization.html)
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | rocket trajectory optimization</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.0.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.0.1/lib/browser/math.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -92,7 +92,7 @@ File: [webworkers.html](webworkers.html) (click for a live demo)
|
||||
File: [worker.js](worker.js)
|
||||
|
||||
```js
|
||||
importScripts('https://unpkg.com/mathjs@11.0.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.0.1/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('https://unpkg.com/mathjs@11.0.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.0.1/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -4,6 +4,12 @@ layout: default
|
||||
|
||||
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
|
||||
|
||||
<h1 id="20220725-version-1101">2022-07-25, version 11.0.1 <a href="#20220725-version-1101" title="Permalink">#</a></h1>
|
||||
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2632">#2632</a>: TypeScript issue of `simplifyConstant` and `simplifyCore`
|
||||
not having a return type defined.
|
||||
|
||||
|
||||
<h1 id="20220723-version-1100">2022-07-23, version 11.0.0 <a href="#20220723-version-1100" title="Permalink">#</a></h1>
|
||||
|
||||
!!! BE CAREFUL: BREAKING CHANGES !!!
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -23,8 +23,8 @@
|
||||
* It features real and complex numbers, units, matrices, a large set of
|
||||
* mathematical functions, and a flexible expression parser.
|
||||
*
|
||||
* @version 11.0.0
|
||||
* @date 2022-07-23
|
||||
* @version 11.0.1
|
||||
* @date 2022-07-25
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2022 Jos de Jong <wjosdejong@gmail.com>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
Subproject commit ead6228939fdf8a2d1f301f96e346a942e60adc4
|
||||
Subproject commit 1464c2e15d86851bff930a79764ca9e983d8ed40
|
||||
14
package-lock.json
generated
14
package-lock.json
generated
@ -8,7 +8,7 @@
|
||||
"name": "mathjs-website",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"mathjs": "11.0.0"
|
||||
"mathjs": "11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
@ -3007,9 +3007,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mathjs": {
|
||||
"version": "11.0.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.0.0.tgz",
|
||||
"integrity": "sha512-D024bzgUcfmRfT/YsZXcktWhfy3k++2qeXK6hmO+FM5pKtBpMxi4KkW1wAgHpQTSphNIKr4WNs8ZFwpB4er8RA==",
|
||||
"version": "11.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.0.1.tgz",
|
||||
"integrity": "sha512-Kgm+GcTxwD68zupr7BPK0yrlWpTh2q8sMH6VcBcQe5+JCBqcwOrBxBF11WPah7hVv0NCLDnJnFTiXtik1Phasg==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"complex.js": "^2.1.1",
|
||||
@ -7180,9 +7180,9 @@
|
||||
}
|
||||
},
|
||||
"mathjs": {
|
||||
"version": "11.0.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.0.0.tgz",
|
||||
"integrity": "sha512-D024bzgUcfmRfT/YsZXcktWhfy3k++2qeXK6hmO+FM5pKtBpMxi4KkW1wAgHpQTSphNIKr4WNs8ZFwpB4er8RA==",
|
||||
"version": "11.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.0.1.tgz",
|
||||
"integrity": "sha512-Kgm+GcTxwD68zupr7BPK0yrlWpTh2q8sMH6VcBcQe5+JCBqcwOrBxBF11WPah7hVv0NCLDnJnFTiXtik1Phasg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"complex.js": "^2.1.1",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjs": "11.0.0"
|
||||
"mathjs": "11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user