Released mathjs v4.1.2

This commit is contained in:
jos 2018-04-18 14:27:33 +02:00
parent 77a0ab88e5
commit cc22f23ee7
28 changed files with 50 additions and 39 deletions

View File

@ -43,7 +43,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@4.1.1/">https://unpkg.com/mathjs@4.1.1/</a></td>
<td><a href="https://unpkg.com/mathjs@4.1.2/">https://unpkg.com/mathjs@4.1.2/</a></td>
</tr>
<tr>
<td>cdnjs</td>
@ -61,8 +61,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
<table class="download">
<tr>
<td>
<a href="https://unpkg.com/mathjs@4.1.1/dist/math.js">
Development (version 4.1.1)
<a href="https://unpkg.com/mathjs@4.1.2/dist/math.js">
Development (version 4.1.2)
</a>
</td>
<td>
@ -71,8 +71,8 @@ Here some direct download links from [unpkg](https://unpkg.com):
</tr>
<tr>
<td>
<a href="https://unpkg.com/mathjs@4.1.1/dist/math.min.js">
Production (version 4.1.1)
<a href="https://unpkg.com/mathjs@4.1.2/dist/math.min.js">
Production (version 4.1.2)
</a>
</td>
<td>

View File

@ -14,7 +14,7 @@
}
</style>
<script src="https://unpkg.com/mathjs@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/dist/math.min.js"></script>
<style>
body,

View File

@ -14,7 +14,7 @@
}
</style>
<script src="https://unpkg.com/mathjs@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js'], function (math) {
require(['https://unpkg.com/mathjs@4.1.2/dist/math.min.js'], function (math) {
// evaluate some expression
var 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@4.1.1/dist/math.min.js'], function (math) {
require(['https://unpkg.com/mathjs@4.1.2/dist/math.min.js'], function (math) {
// evaluate some expression
var 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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js"></script>
<script src="https://unpkg.com/mathjs@4.1.2/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@4.1.1/dist/math.min.js');
importScripts('https://unpkg.com/mathjs@4.1.2/dist/math.min.js');
// create a parser
var parser = math.parser();

View File

@ -1,4 +1,4 @@
importScripts('https://unpkg.com/mathjs@4.1.1/dist/math.min.js');
importScripts('https://unpkg.com/mathjs@4.1.2/dist/math.min.js');
// create a parser
var parser = math.parser();

View File

@ -5,6 +5,14 @@ layout: default
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
<h2 id="20180418-version-412">2018-04-18, version 4.1.2 <a href="#20180418-version-412" title="Permalink">#</a></h2>
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1082">#1082</a>: implemented support for unit plurals `decades`, `centuries`,
and `millennia`.
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1083">#1083</a>: units `decade` and `watt` having a wrong name when stringifying.
Thanks <a href="https://github.com/ericman314">@ericman314</a>.
<h2 id="20180411-version-411">2018-04-11, version 4.1.1 <a href="#20180411-version-411" title="Permalink">#</a></h2>
- Fixed <a href="https://github.com/josdejong/mathjs/issues/1063">#1063</a>: derivative not working when resolving a variable with unary

View File

@ -6,8 +6,8 @@
* It features real and complex numbers, units, matrices, a large set of
* mathematical functions, and a flexible expression parser.
*
* @version 4.1.1
* @date 2018-04-11
* @version 4.1.2
* @date 2018-04-18
*
* @license
* Copyright (C) 2013-2018 Jos de Jong <wjosdejong@gmail.com>
@ -39714,7 +39714,7 @@ function factory (type, config, load, typed, math) {
offset: 0
},
decade: {
name: 'year',
name: 'decade',
base: BASE_UNITS.TIME,
prefixes: PREFIXES.NONE,
value: 315576000, //Julian decade
@ -40047,7 +40047,7 @@ function factory (type, config, load, typed, math) {
offset: 0
},
watt: {
name: 'W',
name: 'watt',
base: BASE_UNITS.POWER,
prefixes: PREFIXES.LONG,
value: 1,
@ -40358,6 +40358,9 @@ function factory (type, config, load, typed, math) {
weeks: 'week',
months: 'month',
years: 'year',
decades: 'decade',
centuries: 'century',
millennia: 'millennium',
hertz: 'hertz',
@ -41244,7 +41247,7 @@ exports.math = true; // request access to the math namespace
/* 192 */
/***/ (function(module, exports) {
module.exports = '4.1.1';
module.exports = '4.1.2';
// Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.

6
js/lib/math.min.js vendored

File diff suppressed because one or more lines are too long

6
package-lock.json generated
View File

@ -1531,9 +1531,9 @@
}
},
"mathjs": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-4.1.1.tgz",
"integrity": "sha512-NzS2xZfibakhSE6vTNSyP3go4rB8yHDmilUgsJnr420+fq8tW4zfneanztPCZ2W2YKxoMbE65PDx7ya66NmFvA==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-4.1.2.tgz",
"integrity": "sha512-lZhxnazJNxZOzGyYUm3IdWhUXe8LbVeZEIZadqTR0rh3l58Ip6wWJ/KjL7aTEFCHY3VGgBQ6AVlCcqCQ7po3JA==",
"requires": {
"complex.js": "2.0.4",
"decimal.js": "9.0.1",

View File

@ -6,7 +6,7 @@
"url": "https://github.com/josdejong/mathjs.git"
},
"dependencies": {
"mathjs": "4.1.1"
"mathjs": "4.1.2"
},
"devDependencies": {
"glob": "^4.3.5",