mirror of
https://github.com/josdejong/mathjs.git
synced 2026-02-01 16:07:46 +00:00
Released v3.5.3
This commit is contained in:
parent
d4df6ef802
commit
b06ca4b45b
@ -40,8 +40,8 @@ Math.js can be downloaded or linked from [cdnjs](http://cdnjs.com/):
|
||||
<table class="download">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.js">
|
||||
Development (version 3.5.2)
|
||||
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.js">
|
||||
Development (version 3.5.3)
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@ -50,8 +50,8 @@ Math.js can be downloaded or linked from [cdnjs](http://cdnjs.com/):
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js">
|
||||
Production (version 3.5.2)
|
||||
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js">
|
||||
Production (version 3.5.3)
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ File: [angle_configuration.html](angle_configuration.html)
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | basic usage</title>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ File: [basic_usage.html](basic_usage.html)
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | basic usage</title>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ File: [custom_separators.html](custom_separators.html)
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/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="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ File: [old_browsers.html](old_browsers.html)
|
||||
<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="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | plot</title>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
|
||||
<!-- load http://maurizzzio.github.io/function-plot/ -->
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
|
||||
|
||||
@ -11,7 +11,7 @@ File: [plot.html](plot.html)
|
||||
<html>
|
||||
<head>
|
||||
<title>math.js | plot</title>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js"></script>
|
||||
|
||||
<!-- load http://maurizzzio.github.io/function-plot/ -->
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/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)
|
||||
<head>
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/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>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js'], function (math) {
|
||||
require(['http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js'], function (math) {
|
||||
// evaluate some expression
|
||||
var result = math.eval('1.2 * (2 + 4.5)');
|
||||
document.write(result);
|
||||
|
||||
@ -17,7 +17,7 @@ File: [requirejs_loading.html](requirejs_loading.html)
|
||||
|
||||
<script>
|
||||
// load math.js using require.js
|
||||
require(['http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js'], function (math) {
|
||||
require(['http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js'], function (math) {
|
||||
// evaluate some expression
|
||||
var result = math.eval('1.2 * (2 + 4.5)');
|
||||
document.write(result);
|
||||
|
||||
@ -91,7 +91,7 @@ File: [webworkers.html](webworkers.html)
|
||||
File: [worker.js](worker.js)
|
||||
|
||||
```js
|
||||
importScripts('http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js');
|
||||
importScripts('http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js');
|
||||
|
||||
// create a parser
|
||||
var parser = math.parser();
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.2/math.min.js');
|
||||
importScripts('http://cdnjs.cloudflare.com/ajax/libs/mathjs/3.5.3/math.min.js');
|
||||
|
||||
// create a parser
|
||||
var parser = math.parser();
|
||||
|
||||
@ -5,6 +5,11 @@ layout: default
|
||||
<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>
|
||||
|
||||
|
||||
<h2 id="20160921-version-353">2016-09-21, version 3.5.3 <a href="#20160921-version-353" title="Permalink">#</a></h2>
|
||||
|
||||
- Some more fixes regarding numbers ending with a decimal mark (like `2.`).
|
||||
|
||||
|
||||
<h2 id="20160920-version-352">2016-09-20, version 3.5.2 <a href="#20160920-version-352" title="Permalink">#</a></h2>
|
||||
|
||||
- Fixed numbers ending with a decimal mark (like `2.`) not being supported by
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
* It features real and complex numbers, units, matrices, a large set of
|
||||
* mathematical functions, and a flexible expression parser.
|
||||
*
|
||||
* @version 3.5.2
|
||||
* @date 2016-09-20
|
||||
* @version 3.5.3
|
||||
* @date 2016-09-21
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2016 Jos de Jong <wjosdejong@gmail.com>
|
||||
@ -25086,7 +25086,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/* 101 */
|
||||
/***/ function(module, exports) {
|
||||
|
||||
module.exports = '3.5.2';
|
||||
module.exports = '3.5.3';
|
||||
// Note: This file is automatically generated when building math.js.
|
||||
// Changes made in this file will be overwritten.
|
||||
|
||||
@ -29709,7 +29709,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
// skip over whitespaces
|
||||
// space, tab, and newline when inside parameters
|
||||
while (isWhitespace(c)) {
|
||||
// TODO: also take '\r' carriage return as newline? Or does that give problems on mac?
|
||||
next();
|
||||
}
|
||||
|
||||
@ -29925,18 +29924,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
* @private
|
||||
*/
|
||||
function isWhitespace (c) {
|
||||
return c == ' ' || c == '\t' || (c == '\n' && nesting_level > 0)
|
||||
// TODO: also take '\r' carriage return as newline? Or does that give problems on mac?
|
||||
return c == ' ' || c == '\t' || (c == '\n' && nesting_level > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test whether the character c is a decimal mark (dot).
|
||||
* This depends on whether it's followed by a digit or whitespace
|
||||
* This is the case when it's not the start of a delimiter like '.*' or './'
|
||||
* @param {string} c
|
||||
* @param {string} cNext
|
||||
* @return {boolean}
|
||||
*/
|
||||
function isDecimalMark (c, cNext) {
|
||||
return c == '.' && (isDigit(cNext) || isWhitespace(cNext) || cNext == '')
|
||||
return c == '.' && !DELIMITERS[c + cNext];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because one or more lines are too long
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
@ -6,7 +6,7 @@
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjs": "3.5.2"
|
||||
"mathjs": "3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"glob": "^4.3.5",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user