mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Publish mathjs@9.5.1
This commit is contained in:
parent
bff31a9794
commit
f75dd98ef7
@ -53,8 +53,11 @@ math.format(value, callback)
|
||||
For example format(-1, {notation: 'hex', wordSize: 8}) === '0xffi8'.
|
||||
Default value is undefined.
|
||||
- `precision: number`
|
||||
A number between 0 and 16 to round the digits of the number. In case
|
||||
of notations 'exponential', 'engineering', and 'auto', `precision`
|
||||
Limit the number of digits of the formatted value.
|
||||
For regular numbers, must be a number between 0 and 16.
|
||||
For bignumbers, the maximum depends on the configured precision,
|
||||
see function `config()`.
|
||||
In case of notations 'exponential', 'engineering', and 'auto', `precision`
|
||||
defines the total number of significant digits returned.
|
||||
In case of notation 'fixed', `precision` defines the number of
|
||||
significant digits after the decimal point.
|
||||
|
||||
@ -29,7 +29,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@9.5.0/">https://unpkg.com/mathjs@9.5.0/</a></td>
|
||||
<td><a href="https://unpkg.com/mathjs@9.5.1/">https://unpkg.com/mathjs@9.5.1/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cdnjs</td>
|
||||
@ -49,8 +49,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@9.5.0/lib/browser/math.js">
|
||||
math.js (version 9.5.0, <span id="size">169 kB</span>, minified and gzipped)
|
||||
<a href="https://unpkg.com/mathjs@9.5.1/lib/browser/math.js">
|
||||
math.js (version 9.5.1, <span id="size">169 kB</span>, minified and gzipped)
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.1/lib/browser/math.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['https://unpkg.com/mathjs@9.5.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@9.5.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@9.5.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@9.5.1/lib/browser/math.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('https://unpkg.com/mathjs@9.5.0/lib/browser/math.js')
|
||||
importScripts('https://unpkg.com/mathjs@9.5.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="20211013-version-951">2021-10-13, version 9.5.1 <a href="#20211013-version-951" title="Permalink">#</a></h1>
|
||||
|
||||
- Various improvements to the Typescript typings.
|
||||
Thanks <a href="https://github.com/joshhansen">@joshhansen</a> and <a href="https://github.com/DianaTdr">@DianaTdr</a>.
|
||||
|
||||
|
||||
<h1 id="20210922-version-950">2021-09-22, version 9.5.0 <a href="#20210922-version-950" title="Permalink">#</a></h1>
|
||||
|
||||
- Implemented support for calculations with percentage, see <a href="https://github.com/josdejong/mathjs/issues/2303">#2303</a>.
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
package-lock.json
generated
14
package-lock.json
generated
@ -8,7 +8,7 @@
|
||||
"name": "mathjs-website",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"mathjs": "9.5.0"
|
||||
"mathjs": "9.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "1.3.3",
|
||||
@ -2936,9 +2936,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mathjs": {
|
||||
"version": "9.5.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-9.5.0.tgz",
|
||||
"integrity": "sha512-a6QFEoLFLEI1cKr0B7lwAM1TTNAfNTxppimyqS5WhxGKXbV59DK4OX606z05PpuKpTiq7gTtPiSV0OAwFfxSvw==",
|
||||
"version": "9.5.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-9.5.1.tgz",
|
||||
"integrity": "sha512-yYu67sdmrLrQeRyN+DPH0aRQphdmI/gz4oNXFx4YR43NKifOiNTfXT30+ACsNIWaqJ1KihhVDD+X1kwfI2/X9g==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"complex.js": "^2.0.15",
|
||||
@ -7008,9 +7008,9 @@
|
||||
}
|
||||
},
|
||||
"mathjs": {
|
||||
"version": "9.5.0",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-9.5.0.tgz",
|
||||
"integrity": "sha512-a6QFEoLFLEI1cKr0B7lwAM1TTNAfNTxppimyqS5WhxGKXbV59DK4OX606z05PpuKpTiq7gTtPiSV0OAwFfxSvw==",
|
||||
"version": "9.5.1",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-9.5.1.tgz",
|
||||
"integrity": "sha512-yYu67sdmrLrQeRyN+DPH0aRQphdmI/gz4oNXFx4YR43NKifOiNTfXT30+ACsNIWaqJ1KihhVDD+X1kwfI2/X9g==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"complex.js": "^2.0.15",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjs": "9.5.0"
|
||||
"mathjs": "9.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fancy-log": "1.3.3",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user