mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
chore: publish mathjs v11.8.1
This commit is contained in:
parent
04334da3f0
commit
6f2c459e69
@ -33,16 +33,16 @@ const c = math.unit('2 inch') // Unit 2 inch
|
||||
const d = math.unit('90 km/h') // Unit 90 km/h
|
||||
const e = math.unit('101325 kg/(m s^2)') // Unit 101325 kg / (m s^2)
|
||||
|
||||
const d = c.to('cm') // Unit 5.08 cm
|
||||
const f = c.to('cm') // Unit 5.08 cm
|
||||
b.toNumber('gram') // Number 100
|
||||
math.number(b, 'gram') // Number 100
|
||||
|
||||
c.equals(a) // false
|
||||
c.equals(d) // true
|
||||
c.equals(f) // true
|
||||
c.equalBase(a) // true
|
||||
c.equalBase(b) // false
|
||||
|
||||
d.toString() // String "5.08 cm"
|
||||
f.toString() // String "5.08 cm"
|
||||
|
||||
const kph = math.unit('km/h') // valueless Unit km/h
|
||||
const mps = math.unit('m/s') // valueless Unit m/s
|
||||
|
||||
@ -196,7 +196,7 @@ parser.evaluate('f(x, y) = x^y') // f(x, y)
|
||||
parser.evaluate('f(2, 3)') // 8
|
||||
|
||||
// get and set variables and functions
|
||||
const x = parser.get('x') // x = 7
|
||||
const x = parser.get('x') // x = 3.5
|
||||
const f = parser.get('f') // function
|
||||
const g = f(3, 3) // g = 27
|
||||
parser.set('h', 500)
|
||||
|
||||
@ -17,24 +17,24 @@ Function | Description
|
||||
|
||||
Function | Description
|
||||
---- | -----------
|
||||
[derivative(expr, variable)](functions/derivative.html) | Takes the derivative of an expression expressed in parser Nodes.
|
||||
[leafCount(expr)](functions/leafCount.html) | Gives the number of "leaf nodes" in the parse tree of the given expression A leaf node is one that has no subexpressions, essentially either a symbol or a constant.
|
||||
[math.derivative(expr, variable)](functions/derivative.html) | Takes the derivative of an expression expressed in parser Nodes.
|
||||
[math.leafCount(expr)](functions/leafCount.html) | Gives the number of "leaf nodes" in the parse tree of the given expression A leaf node is one that has no subexpressions, essentially either a symbol or a constant.
|
||||
[math.lsolve(L, b)](functions/lsolve.html) | Finds one solution of a linear equation system by forwards substitution.
|
||||
[math.lsolveAll(L, b)](functions/lsolveAll.html) | Finds all solutions of a linear equation system by forwards substitution.
|
||||
[math.lup(A)](functions/lup.html) | Calculate the Matrix LU decomposition with partial pivoting.
|
||||
[math.lusolve(A, b)](functions/lusolve.html) | Solves the linear system `A * x = b` where `A` is an [n x n] matrix and `b` is a [n] column vector.
|
||||
[math.lyap(A, Q)](functions/lyap.html) | Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P, where Q is an input matrix.
|
||||
[polynomialRoot(constant, linearCoeff, quadraticCoeff, cubicCoeff)](functions/polynomialRoot.html) | Finds the numerical values of the distinct roots of a polynomial with real or complex coefficients.
|
||||
[math.polynomialRoot(constant, linearCoeff, quadraticCoeff, cubicCoeff)](functions/polynomialRoot.html) | Finds the numerical values of the distinct roots of a polynomial with real or complex coefficients.
|
||||
[math.qr(A)](functions/qr.html) | Calculate the Matrix QR decomposition.
|
||||
[rationalize(expr)](functions/rationalize.html) | Transform a rationalizable expression in a rational fraction.
|
||||
[resolve(expr, scope)](functions/resolve.html) | resolve(expr, scope) replaces variable nodes with their scoped values.
|
||||
[math.rationalize(expr)](functions/rationalize.html) | Transform a rationalizable expression in a rational fraction.
|
||||
[math.resolve(expr, scope)](functions/resolve.html) | resolve(expr, scope) replaces variable nodes with their scoped values.
|
||||
[math.schur(A)](functions/schur.html) | Performs a real Schur decomposition of the real matrix A = UTU' where U is orthogonal and T is upper quasi-triangular.
|
||||
[simplify(expr)](functions/simplify.html) | Simplify an expression tree.
|
||||
[simplifyConstant(expr)](functions/simplifyConstant.html) | simplifyConstant() takes a mathjs expression (either a Node representing a parse tree or a string which it parses to produce a node), and replaces any subexpression of it consisting entirely of constants with the computed value of that subexpression.
|
||||
[simplifyCore(expr)](functions/simplifyCore.html) | simplifyCore() performs single pass simplification suitable for applications requiring ultimate performance.
|
||||
[math.simplify(expr)](functions/simplify.html) | Simplify an expression tree.
|
||||
[math.simplifyConstant(expr)](functions/simplifyConstant.html) | simplifyConstant() takes a mathjs expression (either a Node representing a parse tree or a string which it parses to produce a node), and replaces any subexpression of it consisting entirely of constants with the computed value of that subexpression.
|
||||
[math.simplifyCore(expr)](functions/simplifyCore.html) | simplifyCore() performs single pass simplification suitable for applications requiring ultimate performance.
|
||||
[math.slu(A, order, threshold)](functions/slu.html) | Calculate the Sparse Matrix LU decomposition with full pivoting.
|
||||
[math.sylvester(A, B, C)](functions/sylvester.html) | Solves the real-valued Sylvester equation AX+XB=C for X, where A, B and C are matrices of appropriate dimensions, being A and B squared.
|
||||
[symbolicEqual(expr1, expr2)](functions/symbolicEqual.html) | Attempts to determine if two expressions are symbolically equal, i.
|
||||
[math.symbolicEqual(expr1, expr2)](functions/symbolicEqual.html) | Attempts to determine if two expressions are symbolically equal, i.
|
||||
[math.usolve(U, b)](functions/usolve.html) | Finds one solution of a linear equation system by backward substitution.
|
||||
[math.usolveAll(U, b)](functions/usolveAll.html) | Finds all solutions of a linear equation system by backward substitution.
|
||||
|
||||
@ -164,7 +164,7 @@ Function | Description
|
||||
[math.row(value, index)](functions/row.html) | Return a row from a Matrix.
|
||||
[math.size(x)](functions/size.html) | Calculate the size of a matrix or scalar.
|
||||
[math.sort(x)](functions/sort.html) | Sort the items in a matrix.
|
||||
[X = math.sqrtm(A)](functions/sqrtm.html) | Calculate the principal square root of a square matrix.
|
||||
[math.sqrtm(A)](functions/sqrtm.html) | Calculate the principal square root of a square matrix.
|
||||
[math.squeeze(x)](functions/squeeze.html) | Squeeze a matrix, remove inner and outer singleton dimensions from a matrix.
|
||||
[math.subset(x, index [, replacement])](functions/subset.html) | Get or set a subset of a matrix or string.
|
||||
[math.trace(x)](functions/trace.html) | Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.
|
||||
|
||||
@ -19,8 +19,8 @@ This uses rules of differentiation which can be found here:
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
derivative(expr, variable)
|
||||
derivative(expr, variable, options)
|
||||
math.derivative(expr, variable)
|
||||
math.derivative(expr, variable, options)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -25,10 +25,10 @@ math.distance({pointOneX, pointOneY, pointOneZ}, {pointTwoX, pointTwoY, pointTwo
|
||||
math.distance([x1,y1,z1,a1], [x2,y2,z2,a2])
|
||||
math.distance([[x1,y1], [x2,y2], [x3,y3]])
|
||||
math.distance([[x1,y1,z1], [x2,y2,z2], [x3,y3,z3]])
|
||||
math.distance([x1,y1], [x2,y2,z2])
|
||||
math.distance([x1,y1], [x2,y2], [x3,y3])
|
||||
math.distance([pointX,pointY], [a,b,c])
|
||||
math.distance([pointX,pointY], [lineOnePtX,lineOnePtY], [lineTwoPtX,lineTwoPtY])
|
||||
math.distance({pointX, pointY}, {lineOnePtX, lineOnePtY}, {lineTwoPtX, lineTwoPtY})
|
||||
math.distance([x1,y1,z1], [x0, y0, z0, a, b, c])
|
||||
math.distance([pointX,pointY,pointZ], [x0, y0, z0, a, b, c])
|
||||
math.distance({pointX, pointY, pointZ}, {x0, y0, z0, a, b, c})
|
||||
```
|
||||
|
||||
@ -67,11 +67,11 @@ math.distance([1, 0, 1, 0], [0, -1, 0, -1]) // Returns 2
|
||||
math.distance([[1, 2], [1, 2], [1, 3]]) // Returns [0, 1, 1]
|
||||
math.distance([[1,2,4], [1,2,6], [8,1,3]]) // Returns [2, 7.14142842854285, 7.681145747868608]
|
||||
math.distance([10, 10], [8, 1, 3]) // Returns 11.535230316796387
|
||||
math.distance([10, 10], [2, 3], [-8, 0]) // Returns 8.759953130362847
|
||||
math.distance([0, 0], [3, 0], [0, 4]) // Returns 2.4
|
||||
math.distance(
|
||||
{pointX: 1, pointY: 4},
|
||||
{lineOnePtX: 6, lineOnePtY: 3},
|
||||
{lineTwoPtX: 2, lineTwoPtY: 8}) // Returns 2.720549372624744
|
||||
{pointX: 0, pointY: 0},
|
||||
{lineOnePtX: 3, lineOnePtY: 0},
|
||||
{lineTwoPtX: 0, lineTwoPtY: 4}) // Returns 2.4
|
||||
math.distance([2, 3, 1], [1, 1, 2, 5, 0, 1]) // Returns 2.3204774044612857
|
||||
math.distance(
|
||||
{pointX: 2, pointY: 3, pointZ: 1},
|
||||
|
||||
@ -20,7 +20,7 @@ does so. In many cases, `simplify()` reduces the leaf count.
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
leafCount(expr)
|
||||
math.leafCount(expr)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -50,14 +50,9 @@ math.map([1, 2, 3], function(value) {
|
||||
return value * value
|
||||
}) // returns [1, 4, 9]
|
||||
|
||||
// The calling convention for the callback can cause subtleties:
|
||||
math.map([1, 2, 3], math.format)
|
||||
// throws TypeError: map attempted to call 'format(1,[0])' but argument 2 of type Array does not match expected type number or function or Object or string or boolean
|
||||
// [This happens because `format` _can_ take a second argument,
|
||||
// but its semantics don't match that of the 2nd argument `map` provides]
|
||||
|
||||
// To avoid this error, use a function that takes exactly the
|
||||
// desired arguments:
|
||||
// The callback is normally called with three arguments:
|
||||
// callback(value, index, Array)
|
||||
// If you want to call with only one argument, use:
|
||||
math.map([1, 2, 3], x => math.format(x)) // returns ['1', '2', '3']
|
||||
```
|
||||
|
||||
|
||||
@ -52,7 +52,7 @@ parser.evaluate('f(x, y) = x^y') // f(x, y)
|
||||
parser.evaluate('f(2, 3)') // 8
|
||||
|
||||
// get and set variables and functions
|
||||
const x = parser.get('x') // 7
|
||||
const x = parser.get('x') // 3.5
|
||||
const f = parser.get('f') // function
|
||||
const g = f(3, 2) // 9
|
||||
parser.set('h', 500)
|
||||
|
||||
@ -14,7 +14,7 @@ formulas for the roots.
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
polynomialRoot(constant, linearCoeff, quadraticCoeff, cubicCoeff)
|
||||
math.polynomialRoot(constant, linearCoeff, quadraticCoeff, cubicCoeff)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -15,10 +15,10 @@ exponents, returning the coefficients of numerator.
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
rationalize(expr)
|
||||
rationalize(expr, detailed)
|
||||
rationalize(expr, scope)
|
||||
rationalize(expr, scope, detailed)
|
||||
math.rationalize(expr)
|
||||
math.rationalize(expr, detailed)
|
||||
math.rationalize(expr, scope)
|
||||
math.rationalize(expr, scope, detailed)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -12,7 +12,7 @@ resolve(expr, scope) replaces variable nodes with their scoped values
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
resolve(expr, scope)
|
||||
math.resolve(expr, scope)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -92,13 +92,13 @@ For more details on the theory, see:
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
simplify(expr)
|
||||
simplify(expr, rules)
|
||||
simplify(expr, rules)
|
||||
simplify(expr, rules, scope)
|
||||
simplify(expr, rules, scope, options)
|
||||
simplify(expr, scope)
|
||||
simplify(expr, scope, options)
|
||||
math.simplify(expr)
|
||||
math.simplify(expr, rules)
|
||||
math.simplify(expr, rules)
|
||||
math.simplify(expr, rules, scope)
|
||||
math.simplify(expr, rules, scope, options)
|
||||
math.simplify(expr, scope)
|
||||
math.simplify(expr, scope, options)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -15,8 +15,8 @@ value of that subexpression.
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
simplifyConstant(expr)
|
||||
simplifyConstant(expr, options)
|
||||
math.simplifyConstant(expr)
|
||||
math.simplifyConstant(expr, options)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -32,8 +32,8 @@ Specifically, simplifyCore:
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
simplifyCore(expr)
|
||||
simplifyCore(expr, options)
|
||||
math.simplifyCore(expr)
|
||||
math.simplifyCore(expr, options)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -15,7 +15,7 @@ https://en.wikipedia.org/wiki/Square_root_of_a_matrix
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
X = math.sqrtm(A)
|
||||
math.sqrtm(A)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
|
||||
@ -23,8 +23,8 @@ simplifies down to 0. So there are two important caveats:
|
||||
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
symbolicEqual(expr1, expr2)
|
||||
symbolicEqual(expr1, expr2, options)
|
||||
math.symbolicEqual(expr1, expr2)
|
||||
math.symbolicEqual(expr1, expr2, options)
|
||||
```
|
||||
|
||||
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
|
||||
@ -51,11 +51,11 @@ Type | Description
|
||||
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
|
||||
|
||||
```js
|
||||
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
|
||||
math.symbolicEqual('x*y', 'y*x') // Returns true
|
||||
math.symbolicEqual('x*y', 'y*x', {context: {multiply: {commutative: false}}}) // Returns false
|
||||
math.symbolicEqual('x/y', '(y*x^(-1))^(-1)') // Returns true
|
||||
math.symbolicEqual('abs(x)','x') // Returns false
|
||||
math.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.8.0/">https://unpkg.com/mathjs@11.8.0/</a></td>
|
||||
<td><a href="https://unpkg.com/mathjs@11.8.1/">https://unpkg.com/mathjs@11.8.1/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cdnjs</td>
|
||||
@ -48,9 +48,9 @@ Or download the full bundle directly from [unpkg](https://unpkg.com):
|
||||
|
||||
<p>
|
||||
<a
|
||||
href="https://unpkg.com/mathjs@11.8.0/lib/browser/math.js"
|
||||
>math.js (version 11.8.0, <span id="size">195 kB</span>, minified and gzipped)</a>
|
||||
and if needed the <a href="https://unpkg.com/mathjs@11.8.0/lib/browser/math.js.map">source map</a>
|
||||
href="https://unpkg.com/mathjs@11.8.1/lib/browser/math.js"
|
||||
>math.js (version 11.8.1, <span id="size">195 kB</span>, minified and gzipped)</a>
|
||||
and if needed the <a href="https://unpkg.com/mathjs@11.8.1/lib/browser/math.js.map">source map</a>
|
||||
</p>
|
||||
|
||||
Too large for you? Create your own [custom bundle](docs/custom_bundling.html).
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.8.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.8.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.8.1/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('https://unpkg.com/mathjs@11.8.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.8.1/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
18
history.md
18
history.md
@ -4,7 +4,23 @@ layout: default
|
||||
|
||||
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
|
||||
|
||||
<h1 id="20230403-1180">2023-04-03 11.8.0 <a href="#20230403-1180" title="Permalink">#</a></h1>
|
||||
<h1 id="20230613-1181">2023-06-13, 11.8.1 <a href="#20230613-1181" title="Permalink">#</a></h1>
|
||||
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2964">#2964</a>: issue in function ` distance` when calculate the distance from
|
||||
a point to a line <a href="https://github.com/josdejong/mathjs/issues/2965">#2965</a>). Thanks <a href="https://github.com/Kiku-CN">@Kiku-CN</a>.
|
||||
- Fix `math.format` not working correctly for `engineering` notation when using
|
||||
BigNumbers and for `fixed` notation with `precision: 0` configured <a href="https://github.com/josdejong/mathjs/issues/2956">#2956</a>).
|
||||
Thanks <a href="https://github.com/mgreminger">@mgreminger</a>.
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2880">#2880</a>: not possible to map cube root `cbrt`.
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2938">#2938</a>: make the syntax description of all functions consistent in the
|
||||
docs <a href="https://github.com/josdejong/mathjs/issues/2941">#2941</a>). Thanks <a href="https://github.com/dvd101x">@dvd101x</a>.
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2954">#2954</a>: improve the TypeScript definitions the return type of functions
|
||||
`min` and `max` <a href="https://github.com/josdejong/mathjs/issues/2955">#2955</a>). Thanks <a href="https://github.com/Maxim-Mazurok">@Maxim-Mazurok</a>.
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/2959">#2959</a>: typo in an example in the docs. Thanks <a href="https://github.com/kunalagrwl">@kunalagrwl</a>.
|
||||
- Drop official support for Node.js 14, has reached end of life.
|
||||
|
||||
|
||||
<h1 id="20230403-1180">2023-04-03, 11.8.0 <a href="#20230403-1180" title="Permalink">#</a></h1>
|
||||
|
||||
- Extended functions `fraction`, `bignumber`, and `number` with support for
|
||||
units, see <a href="https://github.com/josdejong/mathjs/issues/2918">#2918</a> <a href="https://github.com/josdejong/mathjs/issues/2926">#2926</a>).
|
||||
|
||||
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.8.0
|
||||
* @date 2023-04-03
|
||||
* @version 11.8.1
|
||||
* @date 2023-06-13
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2023 Jos de Jong <wjosdejong@gmail.com>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
Subproject commit d9cf344e5acf44890c5f84c19e214cc04847cc41
|
||||
Subproject commit 6d944e7dfb8f5c37cee39f421a2e29399a9d0383
|
||||
30
package-lock.json
generated
30
package-lock.json
generated
@ -8,7 +8,7 @@
|
||||
"name": "mathjs-website",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"mathjs": "11.8.0"
|
||||
"mathjs": "11.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
@ -22,9 +22,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/runtime": {
|
||||
"version": "7.21.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
|
||||
"integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz",
|
||||
"integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.13.11"
|
||||
},
|
||||
@ -3033,11 +3033,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mathjs": {
|
||||
"version": "11.8.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.8.0.tgz",
|
||||
"integrity": "sha512-I7r8HCoqUGyEiHQdeOCF2m2k9N+tcOHO3cZQ3tyJkMMBQMFqMR7dMQEboBMJAiFW2Um3PEItGPwcOc4P6KRqwg==",
|
||||
"version": "11.8.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.8.1.tgz",
|
||||
"integrity": "sha512-SHW5fqQXTHd4VqkKEtjQV16d/3fLUfna0VeW8Zd//dNWWLxHarEvXIqSs3vWCSPYc86l1r6yPcKvez8ZVLsoTg==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.21.0",
|
||||
"@babel/runtime": "^7.22.5",
|
||||
"complex.js": "^2.1.1",
|
||||
"decimal.js": "^10.4.3",
|
||||
"escape-latex": "^1.2.0",
|
||||
@ -4773,9 +4773,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": {
|
||||
"version": "7.21.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
|
||||
"integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz",
|
||||
"integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==",
|
||||
"requires": {
|
||||
"regenerator-runtime": "^0.13.11"
|
||||
}
|
||||
@ -7255,11 +7255,11 @@
|
||||
}
|
||||
},
|
||||
"mathjs": {
|
||||
"version": "11.8.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.8.0.tgz",
|
||||
"integrity": "sha512-I7r8HCoqUGyEiHQdeOCF2m2k9N+tcOHO3cZQ3tyJkMMBQMFqMR7dMQEboBMJAiFW2Um3PEItGPwcOc4P6KRqwg==",
|
||||
"version": "11.8.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.8.1.tgz",
|
||||
"integrity": "sha512-SHW5fqQXTHd4VqkKEtjQV16d/3fLUfna0VeW8Zd//dNWWLxHarEvXIqSs3vWCSPYc86l1r6yPcKvez8ZVLsoTg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.21.0",
|
||||
"@babel/runtime": "^7.22.5",
|
||||
"complex.js": "^2.1.1",
|
||||
"decimal.js": "^10.4.3",
|
||||
"escape-latex": "^1.2.0",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjs": "11.8.0"
|
||||
"mathjs": "11.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user