Skip to content

Commit

Permalink
Publish v5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 20, 2019
1 parent 7d00987 commit 6c700d1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 15 deletions.
10 changes: 5 additions & 5 deletions HISTORY.md
@@ -1,18 +1,18 @@
# History

# not yet published, version 5.5.0
# 2019-02-20, version 5.5.0

- Fix #1401: methods `map` and `forEach` of `SparseMatrix` not working
- Fixed #1401: methods `map` and `forEach` of `SparseMatrix` not working
correctly when indexes are unordered.
- Fix #1404: inconsistent rounding of negative numbers.
- Fixed #1404: inconsistent rounding of negative numbers.
- Upgrade tiny-emitter to v2.1.0 (#1397).


# 2019-01-25, version 5.4.2

- Fix `math.format` not working for BigNumbers with a precision above
- Fixed `math.format` not working for BigNumbers with a precision above
1025 digits (see #1385). Thanks @ericman314.
- Fix incorrect LaTeX output of `RelationalNode`. Thanks @rianmcguire.
- Fixed incorrect LaTeX output of `RelationalNode`. Thanks @rianmcguire.
- Fixed a bug the methods `map`, `forEach`, `traverse`, and `transform`
of `FunctionNode`.

Expand Down
8 changes: 6 additions & 2 deletions docs/reference/functions/hasNumericValue.md
Expand Up @@ -4,6 +4,8 @@

Test whether a value is an numeric value.

In case of a string, true is returned if the string contains a numeric value.


## Syntax

Expand All @@ -28,11 +30,12 @@ boolean | Returns true when `x` is a `number`, `BigNumber`, `Fraction`, `Boolean

```js
math.hasNumericValue(2) // returns true
math.hasNumericValue('2') // returns true
math.isNumeric('2') // returns false
math.hasNumericValue(0) // returns true
math.hasNumericValue(math.bignumber(500)) // returns true
math.hasNumericValue(math.fraction(4)) // returns true
math.hasNumericValue(math.complex('2-4i') // returns false
math.hasNumericValue('3') // returns true
math.hasNumericValue([2.3, 'foo', false]) // returns [true, false, true]
```
Expand All @@ -42,4 +45,5 @@ math.hasNumericValue([2.3, 'foo', false]) // returns [true, false, true]
[isZero](isZero.md),
[isPositive](isPositive.md),
[isNegative](isNegative.md),
[isInteger](isInteger.md)
[isInteger](isInteger.md),
[isNumeric](isNumeric.md)
6 changes: 4 additions & 2 deletions docs/reference/functions/isNumeric.md
Expand Up @@ -30,11 +30,12 @@ boolean | Returns true when `x` is a `number`, `BigNumber`, `Fraction`, or `bool

```js
math.isNumeric(2) // returns true
math.isNumeric('2') // returns true
math.hasNumericValue('2') // returns true
math.isNumeric(0) // returns true
math.isNumeric(math.bignumber(500)) // returns true
math.isNumeric(math.fraction(4)) // returns true
math.isNumeric(math.complex('2-4i') // returns false
math.isNumeric('3') // returns false
math.isNumeric([2.3, 'foo', false]) // returns [true, false, true]
```
Expand All @@ -44,4 +45,5 @@ math.isNumeric([2.3, 'foo', false]) // returns [true, false, true]
[isZero](isZero.md),
[isPositive](isPositive.md),
[isNegative](isNegative.md),
[isInteger](isInteger.md)
[isInteger](isInteger.md),
[hasNumericValue](hasNumericValue.md)
2 changes: 2 additions & 0 deletions gulpfile.js
Expand Up @@ -55,6 +55,8 @@ const bannerPlugin = new webpack.BannerPlugin({

const webpackConfig = {
entry: ENTRY,
mode: 'production',
performance: { hints: false }, // to hide the "asset size limit" warning
output: {
library: 'math',
libraryTarget: 'umd',
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "mathjs",
"version": "5.4.2",
"version": "5.5.0",
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
"author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
@@ -1,3 +1,3 @@
module.exports = '5.4.2'
module.exports = '5.5.0'
// Note: This file is automatically generated when building math.js.
// Changes made in this file will be overwritten.

0 comments on commit 6c700d1

Please sign in to comment.