Publish mathjs@5.4.0

This commit is contained in:
jos 2018-12-09 13:25:42 +01:00
parent 6290ba5378
commit 80b49c2159
29 changed files with 773 additions and 703 deletions

View File

@ -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@5.3.1/">https://unpkg.com/mathjs@5.3.1/</a></td>
<td><a href="https://unpkg.com/mathjs@5.4.0/">https://unpkg.com/mathjs@5.4.0/</a></td>
</tr>
<tr>
<td>cdnjs</td>
@ -47,18 +47,18 @@ Here some direct download links from [unpkg](https://unpkg.com):
<table class="download">
<tr>
<td>
<a href="https://unpkg.com/mathjs@5.3.1/dist/math.js">
Development (version 5.3.1)
<a href="https://unpkg.com/mathjs@5.4.0/dist/math.js">
Development (version 5.4.0)
</a>
</td>
<td>
<span id="development-size">1700 kB</span>, uncompressed with comments
<span id="development-size">1702 kB</span>, uncompressed with comments
</td>
</tr>
<tr>
<td>
<a href="https://unpkg.com/mathjs@5.3.1/dist/math.min.js">
Production (version 5.3.1)
<a href="https://unpkg.com/mathjs@5.4.0/dist/math.min.js">
Production (version 5.4.0)
</a>
</td>
<td>

View File

@ -14,7 +14,7 @@
}
</style>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -23,7 +23,7 @@ File: [angle_configuration.html](angle_configuration.html) (click for a live dem
}
</style>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>math.js | basic usage</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -11,7 +11,7 @@ File: [basic_usage.html](basic_usage.html) (click for a live demo)
<html>
<head>
<title>math.js | basic usage</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -3,7 +3,7 @@
<head>
<title>math.js | currency conversion</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<style>
body,

View File

@ -12,7 +12,7 @@ File: [currency_conversion.html](currency_conversion.html) (click for a live dem
<head>
<title>math.js | currency conversion</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<style>
body,

View File

@ -14,7 +14,7 @@
}
</style>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -23,7 +23,7 @@ File: [custom_separators.html](custom_separators.html) (click for a live demo)
}
</style>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -7,7 +7,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-sham.min.js"></script>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -16,7 +16,7 @@ File: [old_browsers.html](old_browsers.html) (click for a live demo)
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-sham.min.js"></script>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>math.js | plot</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

View File

@ -11,7 +11,7 @@ File: [plot.html](plot.html) (click for a live demo)
<html>
<head>
<title>math.js | plot</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

View File

@ -3,7 +3,7 @@
<head>
<title>math.js | pretty printing with MathJax</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
<style>

View File

@ -12,7 +12,7 @@ File: [pretty_printing_with_mathjax.html](pretty_printing_with_mathjax.html) (cl
<head>
<title>math.js | pretty printing with MathJax</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
<style>

View File

@ -3,7 +3,7 @@
<head>
<title>math.js | printing HTML</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<style>
body {

View File

@ -12,7 +12,7 @@ File: [printing_html.html](printing_html.html) (click for a live demo)
<head>
<title>math.js | printing HTML</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<style>
body {

View File

@ -8,7 +8,7 @@
<script>
// load math.js using require.js
require(['https://unpkg.com/mathjs@5.3.1/dist/math.min.js'], function (math) {
require(['https://unpkg.com/mathjs@5.4.0/dist/math.min.js'], function (math) {
// evaluate some expression
const result = math.eval('1.2 * (2 + 4.5)')
document.write(result)

View File

@ -17,7 +17,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@5.3.1/dist/math.min.js'], function (math) {
require(['https://unpkg.com/mathjs@5.4.0/dist/math.min.js'], function (math) {
// evaluate some expression
const result = math.eval('1.2 * (2 + 4.5)')
document.write(result)

View File

@ -3,7 +3,7 @@
<head>
<title>math.js | rocket trajectory optimization</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
<style>

View File

@ -12,7 +12,7 @@ File: [rocket_trajectory_optimization.html](rocket_trajectory_optimization.html)
<head>
<title>math.js | rocket trajectory optimization</title>
<script src="https://unpkg.com/mathjs@5.3.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@5.4.0/dist/math.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
<style>

View File

@ -91,7 +91,7 @@ File: [webworkers.html](webworkers.html) (click for a live demo)
File: [worker.js](worker.js) (click for a live demo)
```js
importScripts('https://unpkg.com/mathjs@5.3.1/dist/math.min.js')
importScripts('https://unpkg.com/mathjs@5.4.0/dist/math.min.js')
// create a parser
const parser = self.math.parser()

View File

@ -1,4 +1,4 @@
importScripts('https://unpkg.com/mathjs@5.3.1/dist/math.min.js')
importScripts('https://unpkg.com/mathjs@5.4.0/dist/math.min.js')
// create a parser
const parser = self.math.parser()

View File

@ -4,6 +4,15 @@ layout: default
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
<h1 id="20181209-version-540">2018-12-09, version 5.4.0 <a href="#20181209-version-540" title="Permalink">#</a></h1>
- Extended sum.js to accept a dimension input to calculate the sum over a
specific axis. Thanks <a href="https://github.com/bnlcas">@bnlcas</a>.
- Fix <a href="https://github.com/josdejong/mathjs/issues/1328">#1328</a>: objects can't be written multi-line. Thanks <a href="https://github.com/GHolk">@GHolk</a>.
- Remove side effects caused by `Unit.format` and `Unit.toString`,
making changes to the unit on execution. Thanks <a href="https://github.com/ericman314">@ericman314</a>.
<h1 id="20181203-version-531">2018-12-03, version 5.3.1 <a href="#20181203-version-531" title="Permalink">#</a></h1>
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1336">#1336</a>: Unit.toSI() returning units with prefix like `mm` instead

File diff suppressed because it is too large Load Diff

10
js/lib/math.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6
package-lock.json generated
View File

@ -1621,9 +1621,9 @@
}
},
"mathjs": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-5.3.1.tgz",
"integrity": "sha512-6Z1Yev5Bl0XrKiaV9Rbj9wTf4Ba0pUHrM/cRc69MqgtfTw37QGUSavypbicUlbPLC0BK8mqJ5+WA6/Rk9Rx2kg==",
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-5.4.0.tgz",
"integrity": "sha512-dhoFsi9SUR5IwUlDRq1KyP/2MhYo5yL8nROx7w0wlHF/yc7h5gAR4P7GRVt5mBBPliRYTLc63wsFVOigJ3YSEg==",
"requires": {
"complex.js": "2.0.11",
"decimal.js": "10.0.1",

View File

@ -6,7 +6,7 @@
"url": "https://github.com/josdejong/mathjs.git"
},
"dependencies": {
"mathjs": "5.3.1"
"mathjs": "5.4.0"
},
"devDependencies": {
"glob": "^7.1.2",