Publish v7.5.0

This commit is contained in:
Jos de Jong 2020-10-07 15:31:57 +02:00
parent 387c8bddd9
commit 75df65c4e7
27 changed files with 42 additions and 42 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@7.4.0/">https://unpkg.com/mathjs@7.4.0/</a></td>
<td><a href="https://unpkg.com/mathjs@7.5.0/">https://unpkg.com/mathjs@7.5.0/</a></td>
</tr>
<tr>
<td>cdnjs</td>
@ -51,8 +51,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
<table class="download">
<tr>
<td>
<a href="https://unpkg.com/mathjs@7.4.0/dist/math.js">
Development (version 7.4.0)
<a href="https://unpkg.com/mathjs@7.5.0/dist/math.js">
Development (version 7.5.0)
</a>
</td>
<td>
@ -61,8 +61,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
</tr>
<tr>
<td>
<a href="https://unpkg.com/mathjs@7.4.0/dist/math.min.js">
Production (version 7.4.0)
<a href="https://unpkg.com/mathjs@7.5.0/dist/math.min.js">
Production (version 7.5.0)
</a>
</td>
<td>

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>math.js | basic usage</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
</head>
<body>

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | currency conversion</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<style>
body,

View File

@ -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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<style>
body,

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>math.js | plot</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

View File

@ -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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | pretty printing with MathJax</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
<style>

View File

@ -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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
<style>

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | printing HTML</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<style>
body {

View File

@ -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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.0/dist/math.min.js"></script>
<style>
body {

View File

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

View File

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

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | rocket trajectory optimization</title>
<script src="https://unpkg.com/mathjs@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.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

@ -13,7 +13,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@7.4.0/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@7.5.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

@ -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@7.4.0/dist/math.min.js')
importScripts('https://unpkg.com/mathjs@7.5.0/dist/math.min.js')
// create a parser
const parser = self.math.parser()

View File

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

View File

@ -4,6 +4,13 @@ layout: default
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
<h1 id="20201007-version-750">2020-10-07, version 7.5.0 <a href="#20201007-version-750" title="Permalink">#</a></h1>
- Function `pickRandom` now allows randomly picking elements from matrices
with 2 or more dimensions instead of only from a vector, see <a href="https://github.com/josdejong/mathjs/issues/1974">#1974</a>.
Thanks <a href="https://github.com/KonradLinkowski">@KonradLinkowski</a>.
<h1 id="20201007-version-740">2020-10-07, version 7.4.0 <a href="#20201007-version-740" title="Permalink">#</a></h1>
- Implemented support for passing a precision in functions `ceil`, `floor`,
@ -11,9 +18,6 @@ layout: default
- Implemented function `rotationMatrix`, see <a href="https://github.com/josdejong/mathjs/issues/1160">#1160</a>, <a href="https://github.com/josdejong/mathjs/issues/1984">#1984</a>. Thanks <a href="https://github.com/rnd-debug">@rnd-debug</a>.
- Implement a clear error message when using `sqrtm` with a matrix having
more than two dimensions. Thanks <a href="https://github.com/KonradLinkowski">@KonradLinkowski</a>.
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1974">#1974</a>: function `pickRandom` now allows randomly picking elements
from matrices with 2 or more dimensions instead of only from a vector.
Thanks <a href="https://github.com/KonradLinkowski">@KonradLinkowski</a>.
- Update dependency `decimal.js` to `10.2.1`.

View File

@ -6,7 +6,7 @@
* It features real and complex numbers, units, matrices, a large set of
* mathematical functions, and a flexible expression parser.
*
* @version 7.4.0
* @version 7.5.0
* @date 2020-10-07
*
* @license
@ -57067,16 +57067,12 @@ var createPickRandom = /* #__PURE__ */Object(factory["a" /* factory */])(pickRan
number = 1;
}
possibles = possibles.valueOf(); // get Array
possibles = Object(utils_array["e" /* flatten */])(possibles.valueOf()).valueOf(); // get Array
if (weights) {
weights = weights.valueOf(); // get Array
}
if (Object(utils_array["a" /* arraySize */])(possibles).length > 1) {
throw new Error('Only one dimensional vectors supported');
}
var totalWeights = 0;
if (typeof weights !== 'undefined') {
@ -60663,7 +60659,7 @@ var createReplacer = /* #__PURE__ */Object(factory["a" /* factory */])(replacer_
};
});
// CONCATENATED MODULE: ./src/version.js
var version = '7.4.0'; // Note: This file is automatically generated when building math.js.
var version = '7.5.0'; // Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.
// CONCATENATED MODULE: ./src/plain/number/constants.js
var constants_pi = Math.PI;

4
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

@ -2319,9 +2319,9 @@
}
},
"mathjs": {
"version": "7.4.0",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-7.4.0.tgz",
"integrity": "sha512-R1o62ixYs2nuZoICy8+JoW78gO9/qiGV5/ZrnIe0QctbH9HRW6AjmEviTsevXxsVUibJvY9KU03aOWQQBnvL/g==",
"version": "7.5.0",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-7.5.0.tgz",
"integrity": "sha512-fSl/f4XmXSkc217jaExXBbl1qG792yH9X9d03jfJTMijPvA/C0slTymCCeOcLkKXOSzd0L5l60iY5kwTMExjMA==",
"requires": {
"complex.js": "^2.0.11",
"decimal.js": "^10.2.1",

View File

@ -6,7 +6,7 @@
"url": "https://github.com/josdejong/mathjs.git"
},
"dependencies": {
"mathjs": "7.4.0"
"mathjs": "7.5.0"
},
"devDependencies": {
"fancy-log": "1.3.3",