[go: up one dir, main page]

Skip to content

Commit

Permalink
Released version 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jul 12, 2015
1 parent 6e3a2aa commit 8f686da
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# History


## not yet released, version 1.7.1-SNAPSHOT
## 2015-07-12, version 1.7.1

- Fixed #397: Inaccuracies in `nthRoot` for very large values, and wrong results
for very small values. (backported from v2)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mathjs",
"version": "1.7.1-SNAPSHOT",
"version": "1.7.1",
"main": "./dist/math.min.js",
"license": "Apache-2.0",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mathjs",
"repo": "josdejong/mathjs",
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.",
"version": "1.7.1-SNAPSHOT",
"version": "1.7.1",
"main": "dist/math.min.js",
"license": "Apache-2.0",
"keywords": [
Expand Down
25 changes: 17 additions & 8 deletions dist/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* It features real and complex numbers, units, matrices, a large set of
* mathematical functions, and a flexible expression parser.
*
* @version 1.7.1-SNAPSHOT
* @date 2015-05-31
* @version 1.7.1
* @date 2015-07-12
*
* @license
* Copyright (C) 2013-2015 Jos de Jong <wjosdejong@gmail.com>
Expand Down Expand Up @@ -8938,7 +8938,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 20 */
/***/ function(module, exports, __webpack_require__) {

module.exports = '1.7.1-SNAPSHOT';
module.exports = '1.7.1';
// Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.

Expand Down Expand Up @@ -16196,7 +16196,7 @@ return /******/ (function(modules) { // webpackBootstrap
' };' +
' fn.syntax = "' + this.name + '(' + this.params.join(', ') + ')";' +
' return fn;' +
' })();';
' })()';
};

/**
Expand Down Expand Up @@ -25441,16 +25441,21 @@ return /******/ (function(modules) { // webpackBootstrap
return inv ? 0 : a;
}

var epsilon = 1e-16;
var x = 1; // Initial guess
var xPrev = 1;
var i = 0;
var iMax = 100;
var iMax = 10000;
do {
var delta = (a / Math.pow(x, _root - 1) - x) / _root;
xPrev = x;
x = x + delta;
i++;
}
while (Math.abs(delta) > epsilon && i < iMax);
while (xPrev !== x && i < iMax);

if (xPrev !== x) {
throw new Error('Function nthRoot failed to converge');
}

return inv ? 1 / x : x;
}
Expand Down Expand Up @@ -25481,7 +25486,7 @@ return /******/ (function(modules) { // webpackBootstrap

var x = one; // Initial guess
var i = 0;
var iMax = 100;
var iMax = 10000;
do {
var xPrev = x;
var delta = a.div(x.pow(_root.minus(1))).minus(x).div(_root);
Expand All @@ -25490,6 +25495,10 @@ return /******/ (function(modules) { // webpackBootstrap
}
while (!x.equals(xPrev) && i < iMax);

if (!x.equals(xPrev)) {
throw new Error('Function nthRoot failed to converge');
}

return inv ? one.div(x) : x;
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/math.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/math.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = '1.7.1-SNAPSHOT';
module.exports = '1.7.1';
// Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mathjs",
"version": "1.7.1-SNAPSHOT",
"version": "1.7.1",
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.",
"author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
"contributors": [
Expand Down

0 comments on commit 8f686da

Please sign in to comment.