mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
chore: publish v11.12.0
This commit is contained in:
parent
e3c2ee9fff
commit
7e524970cf
@ -20,14 +20,14 @@ math.subtract(x, y)
|
||||
|
||||
Parameter | Type | Description
|
||||
--------- | ---- | -----------
|
||||
`x` | number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Initial value
|
||||
`y` | number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Value to subtract from `x`
|
||||
`x` | number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Initial value
|
||||
`y` | number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Value to subtract from `x`
|
||||
|
||||
<h3 id="returns">Returns <a href="#returns" title="Permalink">#</a></h3>
|
||||
|
||||
Type | Description
|
||||
---- | -----------
|
||||
number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Subtraction of `x` and `y`
|
||||
number | BigNumber | Fraction | Complex | Unit | Array | Matrix | Subtraction of `x` and `y`
|
||||
|
||||
|
||||
<h3 id="throws">Throws <a href="#throws" title="Permalink">#</a></h3>
|
||||
|
||||
@ -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.11.2/">https://unpkg.com/mathjs@11.11.2/</a></td>
|
||||
<td><a href="https://unpkg.com/mathjs@11.12.0/">https://unpkg.com/mathjs@11.12.0/</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.11.2/lib/browser/math.js"
|
||||
>math.js (version 11.11.2, <span id="size">199 kB</span>, minified and gzipped)</a>
|
||||
and if needed the <a href="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js.map">source map</a>
|
||||
href="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"
|
||||
>math.js (version 11.12.0, <span id="size">199 kB</span>, minified and gzipped)</a>
|
||||
and if needed the <a href="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js.map">source map</a>
|
||||
</p>
|
||||
|
||||
Too large for you? Create your own [custom bundle](docs/custom_bundling.html).
|
||||
|
||||
@ -11,7 +11,7 @@ const divide = (a, b) => a / b
|
||||
|
||||
// create a mathjs instance with hardly any functions
|
||||
// there are some functions created which are used internally by evaluate though,
|
||||
// for example by the Unit class which has dependencies on addScalar, subtract,
|
||||
// for example by the Unit class which has dependencies on addScalar, subtractScalar,
|
||||
// multiplyScalar, etc.
|
||||
const math = create(evaluateDependencies)
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ const divide = (a, b) => a / b
|
||||
|
||||
// create a mathjs instance with hardly any functions
|
||||
// there are some functions created which are used internally by evaluate though,
|
||||
// for example by the Unit class which has dependencies on addScalar, subtract,
|
||||
// for example by the Unit class which has dependencies on addScalar, subtractScalar,
|
||||
// multiplyScalar, etc.
|
||||
const math = create(evaluateDependencies)
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>math.js | Lorenz Attractor</title>
|
||||
<script src="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-2.25.2.min.js" charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
@ -13,7 +13,7 @@ File: [lorenz.html](lorenz.html) (click for a live demo)
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>math.js | Lorenz Attractor</title>
|
||||
<script src="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-2.25.2.min.js" charset="utf-8"></script>
|
||||
</head>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>math.js | plot</title>
|
||||
<script src="https://unpkg.com/mathjs@11.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['https://unpkg.com/mathjs@11.11.2/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@11.12.0/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.11.2/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.12.0/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('https://unpkg.com/mathjs@11.11.2/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@11.12.0/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -60,7 +60,7 @@ console.log()
|
||||
// this will mutate the matrix
|
||||
console.log('set and get a value')
|
||||
const p = math.matrix([[1, 2], [3, 4]])
|
||||
p.set([0, 10], 5)
|
||||
p.set([0, 1], 5)
|
||||
print(p) // [[1, 5], [3, 4]]
|
||||
const p21 = p.get([1, 0])
|
||||
print(p21) // 3
|
||||
|
||||
@ -69,7 +69,7 @@ console.log()
|
||||
// this will mutate the matrix
|
||||
console.log('set and get a value')
|
||||
const p = math.matrix([[1, 2], [3, 4]])
|
||||
p.set([0, 10], 5)
|
||||
p.set([0, 1], 5)
|
||||
print(p) // [[1, 5], [3, 4]]
|
||||
const p21 = p.get([1, 0])
|
||||
print(p21) // 3
|
||||
|
||||
11
history.md
11
history.md
@ -4,6 +4,17 @@ layout: default
|
||||
|
||||
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
|
||||
|
||||
<h1 id="20231025-11120">2023-10-25, 11.12.0 <a href="#20231025-11120" title="Permalink">#</a></h1>
|
||||
|
||||
- Implemented function `subtractScalar` <a href="https://github.com/josdejong/mathjs/issues/3081">#3081</a>, <a href="https://github.com/josdejong/mathjs/issues/2643">#2643</a>), thanks <a href="https://github.com/vrushaket">@vrushaket</a>.
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/3073">#3073</a>: function format not escaping control characters and double
|
||||
quotes <a href="https://github.com/josdejong/mathjs/issues/3082">#3082</a>).
|
||||
- Fix: function `clone` not throwing an error when passing an unsupported
|
||||
type like a function.
|
||||
- Fix: <a href="https://github.com/josdejong/mathjs/issues/2960">#2960</a> add type definition of function `symbolicEqual` <a href="https://github.com/josdejong/mathjs/issues/3035">#3035</a>),
|
||||
thanks <a href="https://github.com/juancodeaudio">@juancodeaudio</a>.
|
||||
|
||||
|
||||
<h1 id="20231011-11112">2023-10-11, 11.11.2 <a href="#20231011-11112" title="Permalink">#</a></h1>
|
||||
|
||||
- Fix <a href="https://github.com/josdejong/mathjs/issues/3025">#3025</a>: improve handling of matrices and error handling
|
||||
|
||||
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.11.2
|
||||
* @date 2023-10-11
|
||||
* @version 11.12.0
|
||||
* @date 2023-10-26
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2023 Jos de Jong <wjosdejong@gmail.com>
|
||||
|
||||
File diff suppressed because one or more lines are too long
30
package-lock.json
generated
30
package-lock.json
generated
@ -8,7 +8,7 @@
|
||||
"name": "mathjs-website",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"mathjs": "11.11.2"
|
||||
"mathjs": "11.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
@ -22,9 +22,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/runtime": {
|
||||
"version": "7.23.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.1.tgz",
|
||||
"integrity": "sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz",
|
||||
"integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.14.0"
|
||||
},
|
||||
@ -3033,11 +3033,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mathjs": {
|
||||
"version": "11.11.2",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.11.2.tgz",
|
||||
"integrity": "sha512-SL4/0Fxm9X4sgovUpJTeyVeZ2Ifnk4tzLPTYWDyR3AIx9SabnXYqtCkyJtmoF3vZrDPKGkLvrhbIL4YN2YbXLQ==",
|
||||
"version": "11.12.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.12.0.tgz",
|
||||
"integrity": "sha512-UGhVw8rS1AyedyI55DGz9q1qZ0p98kyKPyc9vherBkoueLntPfKtPBh14x+V4cdUWK0NZV2TBwqRFlvadscSuw==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.23.1",
|
||||
"@babel/runtime": "^7.23.2",
|
||||
"complex.js": "^2.1.1",
|
||||
"decimal.js": "^10.4.3",
|
||||
"escape-latex": "^1.2.0",
|
||||
@ -4782,9 +4782,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": {
|
||||
"version": "7.23.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.1.tgz",
|
||||
"integrity": "sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==",
|
||||
"version": "7.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz",
|
||||
"integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==",
|
||||
"requires": {
|
||||
"regenerator-runtime": "^0.14.0"
|
||||
}
|
||||
@ -7264,11 +7264,11 @@
|
||||
}
|
||||
},
|
||||
"mathjs": {
|
||||
"version": "11.11.2",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.11.2.tgz",
|
||||
"integrity": "sha512-SL4/0Fxm9X4sgovUpJTeyVeZ2Ifnk4tzLPTYWDyR3AIx9SabnXYqtCkyJtmoF3vZrDPKGkLvrhbIL4YN2YbXLQ==",
|
||||
"version": "11.12.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.12.0.tgz",
|
||||
"integrity": "sha512-UGhVw8rS1AyedyI55DGz9q1qZ0p98kyKPyc9vherBkoueLntPfKtPBh14x+V4cdUWK0NZV2TBwqRFlvadscSuw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.23.1",
|
||||
"@babel/runtime": "^7.23.2",
|
||||
"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.11.2"
|
||||
"mathjs": "11.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "2.0.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user