mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Publish mathjs@5.2.3
This commit is contained in:
parent
aed8001d75
commit
03e80b5cc9
@ -26,7 +26,7 @@ math.pow(x, y)
|
||||
|
||||
Parameter | Type | Description
|
||||
--------- | ---- | -----------
|
||||
`x` | number | BigNumber | Complex | Array | Matrix | The base
|
||||
`x` | number | BigNumber | Complex | Unit | Array | Matrix | The base
|
||||
`y` | number | BigNumber | Complex | The exponent
|
||||
|
||||
<h3 id="returns">Returns <a href="#returns" title="Permalink">#</a></h3>
|
||||
|
||||
10
download.md
10
download.md
@ -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.2.2/">https://unpkg.com/mathjs@5.2.2/</a></td>
|
||||
<td><a href="https://unpkg.com/mathjs@5.2.3/">https://unpkg.com/mathjs@5.2.3/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cdnjs</td>
|
||||
@ -47,8 +47,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
|
||||
<table class="download">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://unpkg.com/mathjs@5.2.2/dist/math.js">
|
||||
Development (version 5.2.2)
|
||||
<a href="https://unpkg.com/mathjs@5.2.3/dist/math.js">
|
||||
Development (version 5.2.3)
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@ -57,8 +57,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://unpkg.com/mathjs@5.2.2/dist/math.min.js">
|
||||
Production (version 5.2.2)
|
||||
<a href="https://unpkg.com/mathjs@5.2.3/dist/math.min.js">
|
||||
Production (version 5.2.3)
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ File: [angle_configuration.html](angle_configuration.html) (click for a live dem
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | basic usage</title>
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>math.js | currency conversion</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ File: [custom_separators.html](custom_separators.html) (click for a live demo)
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | plot</title>
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>
|
||||
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/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>
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/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>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>math.js | printing HTML</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['https://unpkg.com/mathjs@5.2.2/dist/math.min.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@5.2.3/dist/math.min.js'], function (math) {
|
||||
// evaluate some expression
|
||||
const result = math.eval('1.2 * (2 + 4.5)')
|
||||
document.write(result)
|
||||
|
||||
@ -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.2.2/dist/math.min.js'], function (math) {
|
||||
require(['https://unpkg.com/mathjs@5.2.3/dist/math.min.js'], function (math) {
|
||||
// evaluate some expression
|
||||
const result = math.eval('1.2 * (2 + 4.5)')
|
||||
document.write(result)
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>math.js | rocket trajectory optimization</title>
|
||||
|
||||
<script src="https://unpkg.com/mathjs@5.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -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.2.2/dist/math.min.js"></script>
|
||||
<script src="https://unpkg.com/mathjs@5.2.3/dist/math.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -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.2.2/dist/math.min.js')
|
||||
importScripts('https://unpkg.com/mathjs@5.2.3/dist/math.min.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('https://unpkg.com/mathjs@5.2.2/dist/math.min.js')
|
||||
importScripts('https://unpkg.com/mathjs@5.2.3/dist/math.min.js')
|
||||
|
||||
// create a parser
|
||||
const parser = self.math.parser()
|
||||
|
||||
@ -4,6 +4,14 @@ layout: default
|
||||
|
||||
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
|
||||
|
||||
<h1 id="20181030-version-523">2018-10-30, version 5.2.3 <a href="#20181030-version-523" title="Permalink">#</a></h1>
|
||||
|
||||
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1293">#1293</a>: non-unicode characters in `escape-latex` giving issues in some
|
||||
specific cases. Thanks <a href="https://github.com/dangmai">@dangmai</a>.
|
||||
- Fixed incorrect LaTeX output of function `bitNot`, see <a href="https://github.com/josdejong/mathjs/issues/1299">#1299</a>. Thanks <a href="https://github.com/FSMaxB">@FSMaxB</a>.
|
||||
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1304">#1304</a>: function `pow` not supporting inputs `pow(Unit, BigNumber)`.
|
||||
- Upgraded dependencies (`escape-latex@1.2.0`)
|
||||
|
||||
<h1 id="20181023-version-522">2018-10-23, version 5.2.2 <a href="#20181023-version-522" title="Permalink">#</a></h1>
|
||||
|
||||
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1286">#1286</a>: Fixed unit base recognition and formatting for
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
* It features real and complex numbers, units, matrices, a large set of
|
||||
* mathematical functions, and a flexible expression parser.
|
||||
*
|
||||
* @version 5.2.2
|
||||
* @date 2018-10-23
|
||||
* @version 5.2.3
|
||||
* @date 2018-10-30
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2018 Jos de Jong <wjosdejong@gmail.com>
|
||||
@ -1419,7 +1419,7 @@ exports.operators = {
|
||||
// TODO find ideal solution
|
||||
'unaryPlus': '+',
|
||||
'unaryMinus': '-',
|
||||
'bitNot': '~',
|
||||
'bitNot': '\\~',
|
||||
// TODO find ideal solution
|
||||
'not': '\\neg',
|
||||
'multiply': '\\cdot',
|
||||
@ -6764,8 +6764,8 @@ function factory(type, config, load, typed) {
|
||||
*
|
||||
* multiply, sqrt, cbrt, nthRoot
|
||||
*
|
||||
* @param {number | BigNumber | Complex | Array | Matrix} x The base
|
||||
* @param {number | BigNumber | Complex} y The exponent
|
||||
* @param {number | BigNumber | Complex | Unit | Array | Matrix} x The base
|
||||
* @param {number | BigNumber | Complex} y The exponent
|
||||
* @return {number | BigNumber | Complex | Array | Matrix} The value of `x` to the power `y`
|
||||
*/
|
||||
|
||||
@ -6800,7 +6800,7 @@ function factory(type, config, load, typed) {
|
||||
'Matrix, BigNumber': function MatrixBigNumber(x, y) {
|
||||
return _powMatrix(x, y.toNumber());
|
||||
},
|
||||
'Unit, number': function UnitNumber(x, y) {
|
||||
'Unit, number | BigNumber': function UnitNumberBigNumber(x, y) {
|
||||
return x.pow(y);
|
||||
}
|
||||
});
|
||||
@ -34976,8 +34976,8 @@ var defaultEscapes = {
|
||||
"~": "\\textasciitilde{}"
|
||||
};
|
||||
var formatEscapes = {
|
||||
"–": "\\--",
|
||||
"—": "\\---",
|
||||
"\u2013": "\\--",
|
||||
"\u2014": "\\---",
|
||||
" ": "~",
|
||||
"\t": "\\qquad{}",
|
||||
"\r\n": "\\newline{}",
|
||||
@ -42952,7 +42952,7 @@ exports.math = true; // request access to the math namespace
|
||||
/* 194 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = '5.2.2'; // Note: This file is automatically generated when building math.js.
|
||||
module.exports = '5.2.3'; // Note: This file is automatically generated when building math.js.
|
||||
// Changes made in this file will be overwritten.
|
||||
|
||||
/***/ }),
|
||||
|
||||
8
js/lib/math.min.js
vendored
8
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
14
package-lock.json
generated
14
package-lock.json
generated
@ -540,9 +540,9 @@
|
||||
}
|
||||
},
|
||||
"escape-latex": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.1.1.tgz",
|
||||
"integrity": "sha512-N2D6Z2kXh8x/pQNQH+natXDCwrzghhXMRII5dZ518mlTLeuba80NL0LCQyaahqOrAidoLivmmG6GKPnGhHse+A=="
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.2.0.tgz",
|
||||
"integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw=="
|
||||
},
|
||||
"escape-string-regexp": {
|
||||
"version": "1.0.5",
|
||||
@ -1621,13 +1621,13 @@
|
||||
}
|
||||
},
|
||||
"mathjs": {
|
||||
"version": "5.2.2",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-5.2.2.tgz",
|
||||
"integrity": "sha512-TG0ynGCMXuYE04Z5ODQRl1V7WVneRwzDLUh0k5qihyErpr6k5YbTc/JVkLHFvMe9fuJDvJM5nC1+pAyyE5pbxA==",
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-5.2.3.tgz",
|
||||
"integrity": "sha512-XGwLHIHANLK2pU/C6HNsr0f/SSjixce5vesHV6F6R8uGaIPfkorr3MNhEsqlDDwkNXiyfkzc5qX7SMIfZ3NXiw==",
|
||||
"requires": {
|
||||
"complex.js": "2.0.11",
|
||||
"decimal.js": "10.0.1",
|
||||
"escape-latex": "1.1.1",
|
||||
"escape-latex": "1.2.0",
|
||||
"fraction.js": "4.0.10",
|
||||
"javascript-natural-sort": "0.7.1",
|
||||
"seed-random": "2.2.0",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjs": "5.2.2"
|
||||
"mathjs": "5.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"glob": "^7.1.2",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user