4345 Commits

Author SHA1 Message Date
Jos de Jong
5011ed1f04 Publish v9.1.0 v9.1.0 2021-01-27 11:21:06 +01:00
Jos de Jong
a50bc292e6 Update history and authors 2021-01-27 11:16:14 +01:00
Quentin Truong
02d36c1177
Check for equal number of arguments in simplify (#2090)
* Check for equal number of arguments when simplifying non-associative nodes

* Use === instead of ==

* Run linter and remove trailing space
2021-01-27 11:10:14 +01:00
Jos de Jong
a5e8a4fa7b Update history 2021-01-24 11:06:22 +01:00
Jos de Jong
97ad1e4362 Update history 2021-01-24 11:05:53 +01:00
Jos de Jong
6fc5d0e39b Fix merge conflicts 2021-01-24 11:03:55 +01:00
Josef Wittmann
ddf2432b55
Refactor array reshape 2021-01-18 22:15:21 +01:00
Jos de Jong
c56000228f Upgrade to webpack@4.46.0. Some fixes in integration tests, and better logging. 2021-01-16 15:51:12 +01:00
Jos de Jong
4b24240f81 Publish v9.0.0 v9.0.0 2021-01-16 12:11:05 +01:00
Jos de Jong
1595e2aaff
Merge branch 'develop' into reshape-wildcard 2021-01-16 11:47:18 +01:00
Josef Wittmann
b602e21852
Extract reshape wildcard processing 2021-01-06 17:12:51 +01:00
Jos de Jong
bb67bd830e Update history 2021-01-06 10:09:56 +01:00
Colin Holzman
d12f3a5fac
Word size suffix and BigNumber support for bin oct hex literals (#1996)
* added support for word size suffix in getToken

* start modifying number(string) to support word size suffix for signed integers

* word size suffixes for Number

* initial support for BigNumber

* fix linter issues

* remove unused variable

* start extending bitwise operators for Number for values greater than 32 bits

* Revert "start extending bitwise operators for Number for values greater than 32 bits"

This reverts commit 6fac1a7b10665a221ab5de521c08fa9fcf959eb1.

* add a test for 53 bit literal

* added an optional second argument to bin, oct, and hex to allow formatting signed numbers with custom word size

* removed size checks

* Attempted to extend bin, oct, hex format functions to work with BigNumber, but not working fully.

Apparently Decimal.js toString method doesn't take a base parameter like js number does. I guess I have to do the formatting myself.

* Added n2base function to do formatting for BigNumber.

* Added check for zero in n2base.

* Removed old failing tests.

* Added some tests (failing).

* Extended 'format' function with 'base' and 'wordSize' options and changed 'bin', 'oct', and 'hex' to use 'format' function.

* Fixed lint issues.

* Fixed issues related to the merge.

* Corrected a test.

* Fixed bignumber formatter.

* Added tests for math.format with 'base' and 'wordSize' options.

* Fixed lint issue.

* Changed 'base' option to 'bin', 'oct', and 'hex' values for 'notation' option of 'format' function.

* Added word size suffix to the output of format, bin, oct, and hex.

* Updated documentation.
2021-01-06 09:46:58 +01:00
Jos de Jong
7cd4b79ebf Update history and authors 2021-01-06 09:43:13 +01:00
Josef Wittmann
eabaaf0048
Update rocket example (#2072)
* Update rocket example

- use values for moon ascent (was earth)
- refactor to use easier syntax
- extract functions for readability
- add comments explaining equations
- label chart axes

* Simulate Falcon 9 launch (with atmosphere)

* Add more charts to rocket example

* Track time in rocket example

* Update comments and extract chart options
2021-01-06 09:22:36 +01:00
Jos de Jong
6621159e8d Update years in copyright from 2020 to 2021 2021-01-01 15:43:11 +01:00
Jos de Jong
b01a97fc26 Update maintenance tag for 2021 2021-01-01 15:02:19 +01:00
Josef Wittmann
dcab05272a
Add numpy-like reshape wildcard 2020-12-31 09:49:25 +01:00
Josef Wittmann
e62bff8506
Add Julia-like reshape wildcard (wip)
Problem: The parser tries to find `end` for the wildcard.
2020-12-31 09:19:42 +01:00
Jos de Jong
89be399444 Replace description of Travis CI with Github Actions 2020-12-30 21:04:13 +01:00
Jos de Jong
b141984f47 Publish v8.1.1 v8.1.1 2020-12-30 21:00:14 +01:00
Jos de Jong
5fe21defa7 Merge remote-tracking branch 'origin/develop' into develop 2020-12-30 15:51:37 +01:00
Jos de Jong
74c88a6add Add bundle (./lib/browser/math.js) to exports list 2020-12-30 15:51:25 +01:00
dependabot-preview[bot]
ed4fac3f0c
Bump math-expression-evaluator from 1.3.6 to 1.3.7 (#2067)
Bumps [math-expression-evaluator](https://github.com/redhivesoftware/math-expression-evaluator) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/redhivesoftware/math-expression-evaluator/releases)
- [Commits](https://github.com/redhivesoftware/math-expression-evaluator/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-27 21:55:33 +01:00
Jos de Jong
ad1dad83c5 Update history and authors list 2020-12-24 09:12:47 +01:00
Flaviu Tamas
a3360d316b
Improve performance of _findUnit (#2065)
* Add unit parser benchmark

* Add LRU to memoize function

* Memoize _findUnit

This fixes some performance issues in my heavily-unit-parsing app.
Another idea might be to do an index of reversed unit names, and search
in that, but this is much easier to implement and still should provide
an improvement in the majority of cases (since I'd imagine that most
users tend to prefer a few units at a time, depending on their
application).

* Optimize memoize function

This should be just a little bit faster than before by using Maps, which
have less overhead than javascript objects.
2020-12-24 09:10:53 +01:00
Jos de Jong
91f24d12ac Fix #2063: replace travis badge with github workflow badge 2020-12-18 15:04:05 +01:00
Jos de Jong
494b17ee8d Fixes after npm audit 2020-12-18 14:48:44 +01:00
Jos de Jong
3439e7676a Update devDependencies and history 2020-12-18 14:43:27 +01:00
Harry Sarson
788c0b96e9
Refactor/GitHub workflow (#2041)
* Try out running unit tests with github actions instead of Travis

* try running browser tests in github actions

* fix workflow names

* run build on pr too

* trying running CI only once on PR

* Revert "trying running CI only once on PR"

This reverts commit 9a3db6e167642e9bd35ed6f20a459c5450dd882e.

* run CI only once on PR from branch

* try running transpiled build on node 10

* correct node version syntax + tidy

* fix syntax

* final (?) fix up

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2020-12-18 14:36:56 +01:00
Jos de Jong
af6e93ba04 Fix documentation of serialization 2020-12-16 10:25:16 +01:00
Jos de Jong
59aacb4c04 Update devDependencies 2020-12-04 10:57:35 +01:00
Jos de Jong
3e51c0bcb3 Publish v8.1.0 v8.1.0 2020-12-04 10:31:54 +01:00
Jos de Jong
a3b0399014 Update HISTORY and AUTHORS 2020-12-03 17:47:13 +01:00
redbar0n
10decb0fed
Update clone.js with doc about deep copying arrays (#2040)
* Update clone.js with doc about deep copying arrays

Since it was missing, and it is important documentation for anyone using math.clone for arrays of arrays (matrices). The deep copying was inferred from the test case, but it shouldn't have been necessary. Now it will hopefully be shown in the doc on the webpage, too.

* Update description to be more general.

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2020-12-03 17:45:20 +01:00
Jos de Jong
4d035f6e66 Fix typo in examples of function round 2020-11-30 09:54:25 +01:00
Jos de Jong
e1dce7bf4f Update history 2020-11-15 14:19:33 +01:00
rnd-debug
ad0d6293fd
adding kilogramforce aka kgf unit (#2028) 2020-11-15 14:18:17 +01:00
Jos de Jong
9250f44e88 Fix #2026: introduce new option fractionsLimit in function simplify 2020-11-13 15:14:04 +01:00
Jos de Jong
488943d299 Fix #2026: have function simplify not output decimal values into fractions with very large numerator/denominator 2020-11-13 14:47:30 +01:00
Jos de Jong
fc042d0b78 Publish v8.0.1 v8.0.1 2020-11-09 16:16:00 +01:00
Jos de Jong
a171eb3da5 Fix #1979: missing "subset" dependency when using "mathjs/number" entry point 2020-11-09 16:10:59 +01:00
Jos de Jong
2dcba3c561 Show issue number in HISTORY.md 2020-11-09 13:27:03 +01:00
Jos de Jong
56f49f2e14 Update HISTORY.md and AUTHORS 2020-11-09 13:26:08 +01:00
Peter Krautzberger
02137e01c9
docs: update pretty print with MathJax (#2023)
Upgrades to MathJax v3 and adjusts to new APIs.
2020-11-09 13:23:18 +01:00
Jos de Jong
bc902335c1 Publish v8.0.0 v8.0.0 2020-11-06 10:41:11 +01:00
Jos de Jong
9d876fac77 Extend develop section 2020-11-06 10:36:13 +01:00
Jos de Jong
1540a18756 Write section "Develop" in readme 2020-11-06 10:11:15 +01:00
Jos de Jong
d0e61a42a5 Publish v8.0.0-beta.1 2020-11-06 09:50:34 +01:00
Jos de Jong
46b5102f92 Add missing file extensions on import 2020-11-02 12:53:16 +01:00