1727 Commits

Author SHA1 Message Date
Eric Mansfield
757e6e0041 More tests passing! 2019-08-26 23:39:06 -06:00
Eric Mansfield
66763c8b99 Added toJSON and fromJSON 2019-08-05 22:24:41 -06:00
Eric Mansfield
ea68ae2564 Default commonPrefixes for custom units 2019-08-05 21:04:09 -06:00
Eric Mansfield
36df6411a4 More fixes 2019-08-04 16:00:52 -06:00
Eric Mansfield
9b9bf57ea8 Working for non-base units 2019-08-04 15:02:29 -06:00
Eric Mansfield
0026480edc Implemented createUnit, not working yet 2019-08-04 14:51:12 -06:00
Eric Mansfield
1c5b18f684 Preparing for inevitable task of doing createUnit 2019-08-03 21:42:54 -06:00
Eric Mansfield
52c2ae8c31 Added tests for createUnit 2019-08-03 20:55:23 -06:00
Eric Mansfield
aa01e0e3a1 Bugfix: make unit(string) use new configs 2019-07-21 14:19:55 -06:00
Eric Mansfield
b27271434d Started working on handling config changes, angles 2019-06-29 14:45:55 -06:00
Eric Mansfield
83d233aa0a Merge branch 'unitmath' of https://github.com/josdejong/mathjs into unitmath 2019-06-28 18:59:50 -06:00
jos
0a9f03378e Merge branch 'develop' into unitmath 2019-06-05 12:44:26 +02:00
jos
bce068e601 Update browser versions tested against with BrowserStack 2019-06-05 11:50:32 +02:00
jos
db4910bed4 Move all test related stuff in folder test 2019-06-05 11:45:02 +02:00
jos
35fc780d2a Refactor import to first flatten the functions and then import them, allowing to import dependency collections 2019-06-05 10:57:48 +02:00
Eric Mansfield
bfc74a147b More tests passing now 2019-06-04 21:37:19 -06:00
Eric Mansfield
940a76a041 Changed Unit to unit in tests 2019-06-04 19:04:26 -06:00
Eric Mansfield
52eaf7daaf Other improvements, some deprovements 2019-06-01 11:53:32 -06:00
Eric Mansfield
4ff41dc274 Wrap custom type ops to promote number to custom type 2019-05-30 12:49:17 -06:00
Eric Mansfield
0c9b220bac Minor tweak to conv function 2019-05-29 17:42:06 -06:00
Eric Mansfield
465c94f7ac More fixes 2019-05-29 07:52:29 -06:00
Eric Mansfield
79c30cecf6 More fixing 2019-05-29 07:24:55 -06:00
Eric Mansfield
5e8dfb2bfc Fixing tests 2019-05-27 16:56:24 -06:00
jos
408a996920 Start with integration of unitmath, see #1486 2019-05-27 21:12:12 +02:00
jos
41efed79d3 Fix #1473: remove 'use strict' in every file 2019-05-26 20:21:18 +02:00
jos
f54599a701 Fix #1530: apply rounding first and lowerExp and upperExp second when formatting a number 2019-05-25 15:51:33 +02:00
jos
45344e8d9e Fix another round-off error in unit tests of in units on IE/Edge 2019-05-25 15:29:52 +02:00
jos
9a6c79afe8 Fix round-off error in constant reducedPlanck on IE and Edge 2019-05-25 15:12:16 +02:00
Eric Mansfield
c08188b8ed Updated physical constants to 2019 recommended values (#1529) 2019-05-25 14:48:37 +02:00
jos
859cac81a1 Merged function core and create into one function create 2019-05-22 21:20:56 +02:00
Vlad Levitskiy
538823386a deleted decibel unit (#1524) 2019-05-22 17:06:19 +02:00
jos
e5048a8001 Allow math.import(all). Dropped support for renaming factory functions 2019-05-22 13:49:56 +02:00
Vlad Levitskiy
3516731ff6 Fixed tonne and candela units, added bel and dB (#1518)
* fixed tonne and candel units, added bel and dB

* fixed code style
2019-05-20 20:41:10 +02:00
jos
28e33bb89b Merge remote-tracking branch 'origin/v5' into develop
# Conflicts:
#	package-lock.json
#	package.json
2019-05-17 19:44:25 +02:00
Eric Mansfield
ce77993689 Added some additional tests for engineering format 2019-05-16 23:01:33 -06:00
jos
0a6aded52a Fix #1512: bug in format notation engineering 2019-05-16 21:51:13 +02:00
jos
3e553e1d11 Remove dependency on matrix of function random 2019-05-15 17:54:39 +02:00
jos
6b6ae1383c Dropped fake BigNumber support from function erf 2019-05-15 10:54:02 +02:00
jos
ab1b83a2f6 Remove generated files from repo, make tests independent from generated files 2019-05-12 15:14:13 +02:00
jos
9950857a87 Fix lint error 2019-05-08 22:25:37 +02:00
Harry Sarson
6fe56d5471 Drop node 6 (#1494)
* Drop node 6

node 6 is no longer support by node. Also add node 12 to CI.

* add test for high precision sin
2019-05-08 22:22:05 +02:00
jos
4135467ef3 Fix broken unit test 2019-05-08 11:36:02 +02:00
jos
c0a11b3d88 Auto generate impureFunctionsAny files 2019-05-08 11:33:51 +02:00
jos
3f63d6e9f5 Remove outdated README in /test (see #1498) 2019-05-05 09:42:53 +02:00
jos
cc740b39be Move snapshot code into /src to have it transpiled 2019-05-04 15:17:15 +02:00
jos
5b7928d284 Fix using endsWith method 2019-05-04 14:52:33 +02:00
jos
47e1adcd0e Dynamically generate the expected snapshot structure based on the factories 2019-05-04 14:39:30 +02:00
jos
b4f2eb005e Merge remote-tracking branch 'origin/fix/1428' into develop
# Conflicts:
#	HISTORY.md
#	src/function/algebra/simplify.js
2019-05-04 10:07:39 +02:00
jos
c7b3ea9c7e Fix chain 2019-04-30 20:49:45 +02:00
jos
20aa9a005a Fix circular dependency in math namespace for evaluate 2019-04-29 21:19:50 +02:00