Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync #6

Merged
merged 77 commits into from
Jan 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
cec646d
Update expr-eval to the latest version 🚀 (#1613)
greenkeeper[bot] Sep 11, 2019
9a56f70
Update standard to the latest version 🚀 (#1616)
greenkeeper[bot] Sep 11, 2019
d5dffc9
Update webpack to the latest version 🚀 (#1617)
greenkeeper[bot] Sep 14, 2019
d8f81fb
Update standard to the latest version 🚀 (#1618)
greenkeeper[bot] Sep 15, 2019
e93ac30
Greenkeeper/expr eval 2.0.1 (#1619)
harrysarson Sep 16, 2019
c267809
Update standard to the latest version 🚀 (#1621)
greenkeeper[bot] Sep 18, 2019
e17d77e
Update codecov to the latest version 🚀 (#1624)
greenkeeper[bot] Sep 20, 2019
a8d94cb
Copy IndexNode dotNotation property in map and clone methods (#1623)
rianmcguire Sep 20, 2019
b39532a
Update history
josdejong Sep 20, 2019
80dd993
Update handlebars to the latest version 🚀 (#1626)
greenkeeper[bot] Sep 20, 2019
0209d3f
Update codecov to the latest version 🚀 (#1625)
greenkeeper[bot] Sep 20, 2019
4c5aa0d
`toHTML()` method example corrected. (#1627)
maytanthegeek Sep 21, 2019
7ba6a7f
Update history and contributor list
josdejong Sep 21, 2019
7b1cd77
Fixed #1628: Cannot call methods on empty strings or numbers with val…
josdejong Sep 23, 2019
c08132f
Publish v6.2.2
josdejong Sep 23, 2019
a15c9df
Update webpack to the latest version 🚀 (#1632)
greenkeeper[bot] Sep 29, 2019
88141c7
Update dev-dependencies
josdejong Sep 29, 2019
2713431
Fixed #1639: function `min` listed twice in the "See also" section of…
josdejong Oct 1, 2019
69dd165
Allow taking means of quantities with units. (#1644)
clintonc Oct 3, 2019
8500aa9
Update history
josdejong Oct 3, 2019
1e0689c
Update handlebars to the latest version 🚀 (#1642)
greenkeeper[bot] Oct 5, 2019
34b676a
Improved performances for isPrime (#1641)
arguiot Oct 6, 2019
3526f65
Add small benchmark for primes (see #1641)
josdejong Oct 6, 2019
48449ae
Update history and contributor list
josdejong Oct 6, 2019
d62b30e
Publish v6.2.3
josdejong Oct 6, 2019
15d279f
Update uglify-js to the latest version 🚀 (#1646)
greenkeeper[bot] Oct 10, 2019
4342742
Update devDependencies
josdejong Oct 12, 2019
9d281d1
Update devDependencies
josdejong Oct 15, 2019
a6bddc0
Update karma to the latest version 🚀 (#1652)
greenkeeper[bot] Oct 17, 2019
be9b878
Updated devDependencies
josdejong Oct 22, 2019
1a45a14
Update uglify-js to the latest version 🚀 (#1658)
greenkeeper[bot] Oct 26, 2019
8499faa
Update handlebars to the latest version 🚀 (#1660)
greenkeeper[bot] Oct 28, 2019
8921ff6
Add github sponsors configuration
josdejong Oct 30, 2019
3758ca0
Update devDependencies
josdejong Nov 2, 2019
edf03cd
Update devDependencies
josdejong Nov 6, 2019
0e44e1d
Update devDependencies
josdejong Nov 10, 2019
cb62a23
Update uglify-js to the latest version 🚀 (#1671)
greenkeeper[bot] Nov 13, 2019
3971504
Update handlebars to the latest version 🚀 (#1674)
greenkeeper[bot] Nov 14, 2019
462f469
fix qr and sign edge cases (#1670)
harrysarson Nov 18, 2019
31e38fa
Update handlebars to the latest version 🚀 (#1677)
greenkeeper[bot] Nov 19, 2019
ebe38b2
Publish v6.2.4
josdejong Nov 20, 2019
b9175a1
Fixed `IndexNode` using a hardcoded, one-based implementation of `ind…
josdejong Nov 20, 2019
2c24d72
Publish v6.2.5
josdejong Nov 20, 2019
7cfebe0
Update babel7 to the latest version 🚀 (#1680)
greenkeeper[bot] Nov 24, 2019
70c27bd
Update uglify-js to the latest version 🚀 (#1682)
greenkeeper[bot] Nov 25, 2019
f7bab77
Update uglify-js to the latest version 🚀 (#1684)
greenkeeper[bot] Nov 30, 2019
fc843a6
Update babel7 to the latest version 🚀 (#1686)
greenkeeper[bot] Dec 8, 2019
6978751
Update uglify-js to the latest version 🚀 (#1688)
greenkeeper[bot] Dec 9, 2019
b52541d
feat: factorial benchmark
Dec 11, 2019
08de878
Fix linting issues (see PR #1690)
josdejong Dec 15, 2019
aa26815
Fix mismatch in console label and actual calculation
josdejong Dec 15, 2019
8f577d4
Update devDependencies
josdejong Dec 15, 2019
e798a72
Update versions of BrowserStack browsers
josdejong Dec 15, 2019
fd6d627
Revert updating browser versions for BrowserStack
josdejong Dec 15, 2019
d20be9b
Update firefox and chrome versions in BrowserStack testing
josdejong Dec 15, 2019
af74db9
Update android version in BrowserStack testing
josdejong Dec 15, 2019
e447c0d
Update Safari version in BrowserStack testing
josdejong Dec 15, 2019
f5dcb74
Update webpack to the latest version 🚀 (#1692)
greenkeeper[bot] Dec 16, 2019
e7e5142
Update devDependencies
josdejong Dec 21, 2019
03c0f65
Update nyc to the latest version 🚀 (#1696)
greenkeeper[bot] Dec 23, 2019
5ceba2e
Update uglify-js to the latest version 🚀 (#1698)
greenkeeper[bot] Dec 27, 2019
64972a0
Update webpack to the latest version 🚀 (#1700)
greenkeeper[bot] Dec 28, 2019
1f10538
Improve performance of factorial for BigNumbers (#1691)
Dec 31, 2019
10147d0
Update history and contributor list
josdejong Dec 31, 2019
dd414a6
Publish v6.3.0
josdejong Dec 31, 2019
e0dd904
Update maintenance badge for 2020
josdejong Jan 4, 2020
10449b2
Extend distance with support for n-dimensions
Veeloxfire Jan 4, 2020
c1263bc
Update history
josdejong Jan 4, 2020
b3236b6
Publish v6.4.0
josdejong Jan 6, 2020
ec19f01
Commit updated version in version.js
josdejong Jan 6, 2020
0f36dd2
Update underscore to the latest version 🚀 (#1706)
greenkeeper[bot] Jan 7, 2020
97ff95b
Added baseName option to createUnit (#1708)
ericman314 Jan 8, 2020
b063d35
Publish v6.5.0
josdejong Jan 8, 2020
173620b
Update handlebars to the latest version 🚀 (#1710)
greenkeeper[bot] Jan 9, 2020
62178a9
Update handlebars to the latest version 🚀 (#1711)
greenkeeper[bot] Jan 11, 2020
f7402d7
Update devDependencies
josdejong Jan 13, 2020
af42bb5
update devDependencies
josdejong Jan 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: josdejong
48 changes: 47 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,55 @@
# History


# not yet published, version 6.2.2
# 2020-01-08, version 6.5.0

- Implemented `baseName` option for `createUnit`, see #1707.
Thanks @ericman314.


# 2020-01-06, version 6.4.0

- Extended function `dimension` with support for n-dimensional points.
Thanks @Veeloxfire.


# 2019-12-31, version 6.3.0

- Improved performance of `factorial` for `BigNumber` up to a factor two,
see #1687. Thanks @kmdrGroch.


# 2019-11-20, version 6.2.5

- Fixed `IndexNode` using a hardcoded, one-based implementation of `index`,
making it impossible to instantiate a zero-based version of the expression
parser. See #782.


# 2019-11-20, version 6.2.4

- Fixed #1669: function 'qr' threw an error if the pivot was zero,
thanks @kevinkelleher12 and @harrysarson.
- Resolves #942: remove misleading assert in 'qr'. Thanks @harrysarson.
- Work around a bug in complex.js where `sign(0)` returns complex NaN.
Thanks @harrysarson.


# 2019-10-06, version 6.2.3

- Fixed #1640: function `mean` not working for units. Thanks @clintonc.
- Fixed #1639: function `min` listed twice in the "See also" section of the
embedded docs of function `std`.
- Improved performance of `isPrime`, see #1641. Thanks @arguiot.


# 2019-09-23, version 6.2.2

- Fixed methods `map` and `clone` not copying the `dotNotation` property of
`IndexNode`. Thanks @rianmcguire.
- Fixed a typo in the documentation of `toHTML`. Thanks @maytanthegeek.
- Fixed #1615: error in the docs of `isNumeric`.
- Fixed #1628: Cannot call methods on empty strings or numbers with value `0`.


# 2019-08-31, version 6.2.1
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
math.js
https://github.com/josdejong/mathjs

Copyright (C) 2013-2019 Jos de Jong <[email protected]>
Copyright (C) 2013-2020 Jos de Jong <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Math.js is an extensive math library for JavaScript and Node.js. It features a f
[![Downloads](https://img.shields.io/npm/dm/mathjs.svg)](https://www.npmjs.com/package/mathjs)
[![Build Status](https://img.shields.io/travis/josdejong/mathjs/master.svg)](https://travis-ci.org/josdejong/mathjs)
[![Greenkeeper badge](https://badges.greenkeeper.io/josdejong/mathjs.svg)](https://greenkeeper.io/)
[![Maintenance](https://img.shields.io/maintenance/yes/2019.svg)](https://github.com/josdejong/mathjs/graphs/commit-activity)
[![Maintenance](https://img.shields.io/maintenance/yes/2020.svg)](https://github.com/josdejong/mathjs/graphs/commit-activity)
[![License](https://img.shields.io/github/license/josdejong/mathjs.svg)](https://github.com/josdejong/mathjs/blob/master/LICENSE)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs?ref=badge_shield)
[![Slack](https://slack.bri.im/badge.svg)](https://slack.bri.im)
Expand Down Expand Up @@ -146,7 +146,7 @@ Thanks Travis CI and BrowserStack for the generous free hosting of this open sou

## License

Copyright (C) 2013-2019 Jos de Jong <[email protected]>
Copyright (C) 2013-2020 Jos de Jong <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* cat script.txt | mathjs > results.txt Run input stream, output to file
*
* @license
* Copyright (C) 2013-2019 Jos de Jong <[email protected]>
* Copyright (C) 2013-2020 Jos de Jong <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
Expand Down
6 changes: 4 additions & 2 deletions docs/datatypes/units.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ math.createUnit('furlong', '220 yards')
math.evaluate('1 mile to furlong') // 8 furlong
```

If you cannot express the new unit in terms of any existing unit, then the second argument can be omitted. In this case, a new base unit is created:
If you cannot express the new unit in terms of any existing unit, then the second argument can be omitted. In this case, a new *base unit* is created:

```js
// A 'foo' cannot be expressed in terms of any other unit.
Expand All @@ -129,6 +129,7 @@ The second argument to `createUnit` can also be a configuration object consistin
* **prefixes** A `string` indicating which prefixes math.js should use with the new unit. Possible values are `'none'`, `'short'`, `'long'`, `'binary_short'`, or `'binary_long'`. Default is `'none'`.
* **offset** A value applied when converting to the unit. This is very helpful for temperature scales that do not share a zero with the absolute temperature scale. For example, if we were defining fahrenheit for the first time, we would use: `math.createUnit('fahrenheit', {definition: '0.555556 kelvin', offset: 459.67})`
* **aliases** An array of strings to alias the new unit. Example: `math.createUnit('knot', {definition: '0.514444 m/s', aliases: ['knots', 'kt', 'kts']})`
* **baseName** A `string` that specifies the name of the new dimension in case one needs to be created. Every unit in math.js has a dimension: length, time, velocity, etc. If the unit's `definition` doesn't match any existing dimension, or it is a new base unit, then `createUnit` will create a new dimension with the name `baseName` and assign it to the new unit. The default is to append `'_STUFF'` to the unit's name. If the unit already matches an existing dimension, this option has no effect.

An optional `options` object can also be supplied as the last argument to `createUnits`. Currently only the `override` option is supported:

Expand All @@ -145,7 +146,8 @@ For example:
```js
math.createUnit( {
foo: {
prefixes: 'long'
prefixes: 'long',
baseName: 'essence-of-foo'
},
bar: '40 foo',
baz: {
Expand Down
2 changes: 1 addition & 1 deletion docs/expressions/expression_trees.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ All nodes have the following methods:

```js
const node = math.parse('sqrt(2/3)')
node.toString()
node.toHTML()
// returns
// <span class="math-function">sqrt</span>
// <span class="math-paranthesis math-round-parenthesis">(</span>
Expand Down
Loading