230 Commits

Author SHA1 Message Date
Dakota Blair
c2917dca52 Fixed offset bug. 2018-03-21 19:46:31 +00:00
Dakota Blair
cbcf27282e Updated behavior of nthRoots 2018-03-21 19:05:09 +00:00
Dakota Blair
c591c07347 Fixed #851: More consistent behavior of sqrt, nthRoot, and pow 2018-03-21 19:05:08 +00:00
jos
bf3f62b564 Upgraded to typed-function@1.0.0 2018-02-20 20:59:05 +01:00
jos
4469f6bd0c Remove support for implicit conversion of null to 0. See #830. 2018-01-23 20:26:38 +01:00
jos
02b1478e6d Fixed #954: Functions add and multiply not working when passing three or more arrays or matrices 2017-10-18 19:58:31 +02:00
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
jos
26e70a4acd Refactored x.isComplex === true into type.isComplex(x) 2017-08-12 11:32:40 +02:00
Timothy Lee
6f2b5efaac Disallow implicitly converting a number to a fraction that is not an exact representation 2017-05-08 15:58:06 +09:30
Harry Sarson
a5692e1d0a Extension of pow function to support Infinite exponents. 2017-04-23 13:13:23 +01:00
Dzmitry Litskalau
a531715442 Fix xgcd for negative values 2017-03-06 18:28:13 +03:00
jos
41f4cd6078 Fixed #789: Math.js not supporting conversion of string to BigNumber, Fraction, or Complex number 2017-02-03 17:52:38 +01:00
jos
a168041374 Functions add and multiply now accept more than two arguments. See #739. 2016-11-18 15:06:37 +01:00
Eric
feb834b040 Units no longer search for the best prefix if the current prefix results in a value approximately between 0.1 and 1000.
Adjusted unit tests.
2016-11-06 06:59:12 -07:00
jos
c9591339b1 Throw an error for implicit conversion between BigNumber and Fraction (see #710) 2016-11-05 19:44:04 +01:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
ab454c0750 Fixed #623: nthRoot of zero with a negative root returned 0 instead of Infinity 2016-03-24 20:25:14 +01:00
jos
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
f4b794100e Replaced tabs with spaces 2016-03-03 20:29:08 +01:00
jos
4ea2542941 Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction 2016-03-03 19:24:24 +01:00
jos
fb141fb885 Merge branch 'decimal_v5' into develop
Conflicts:
	HISTORY.md
	test/function/trigonometry/cot.test.js
2016-02-27 11:39:56 +01:00
jos
94986762fb Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-02-24 08:58:01 +01:00
jos
c558cf496e Fixed all broken unit tests 2016-02-14 21:51:37 +01:00
jos
e0bba8ff88 Merge branch 'develop' into complex
Conflicts:
	lib/core/import.js
2016-02-13 13:52:48 +01:00
Jos de Jong
90c0d7c274 Merge pull request #525 from ericman314/realmode-exponentiation
Realmode exponentiation
2016-02-13 13:35:52 +01:00
Eric
d6769b8cd5 Removed 'realmode' config option and replaced with 'predictable' 2016-02-13 04:21:11 +00:00
Robert Eisele
e6d4e40d7c Changed some tests to match new requirements 2016-02-07 14:57:02 +01:00
jos
86a3af26f3 Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-02-03 21:17:51 +01:00
jos
ddf212eda3 Added support for doing operations with mixed Fractions and BigNumbers 2016-01-25 21:09:41 +01:00
jos
3aa38eef62 Fixed #529: Matrix multiplication no longer squeezes scalar outputs (breaking change) 2016-01-08 21:20:33 +01:00
Eric
a5109b7327 Realmode exponentiation with unit tests 2015-12-25 19:58:48 +00:00
Eric
34f991949d Added support for complex units 2015-11-28 20:09:22 +00:00
jos
2e1d943595 Extended arithmetic functions with support for Units with BigNumber/Fraction value. (One failing unit test!) 2015-11-28 11:04:36 +01:00
jos
4b08522d44 Fixed nthRoot(-2, 3) for bignumbers (see #496) 2015-10-29 19:04:37 +01:00
Eric
f3a98f50af Replaced nthRoot algorithm with direct calculation 2015-10-29 03:49:29 +00:00
jos
54e922d736 Implemented function hypot. 2015-09-17 20:39:29 +02:00
jos
d818e48321 Added support for units to cbrt 2015-09-17 19:48:25 +02:00
jos
a21b4da999 Updated docs an added unit test for returning all cubic roots of a real number. 2015-09-17 09:22:57 +02:00
jos
4d18dcb3e4 Implemented function cbrt for numbers, BigNumbers, and complex numbers 2015-09-16 22:37:06 +02:00
Robert Eisele
2f1e123e5e Fixed lcm(0,0) for fractions 2015-09-09 10:47:17 +02:00
Robert Eisele
93c4dd91d1 Added more test cases for fraction.lcm 2015-09-08 09:54:34 +02:00
Robert Eisele
0a8dbd352e Added lcm fraction tests 2015-09-07 12:36:43 +02:00
Eric
2968f2b4ff Almost done with unit prefix powers 2015-08-23 21:00:52 +00:00
Eric
03ec30216e Added support for units to abs, cube, sign, sqrt, square
Updated examples, docs, and unit tests
2015-08-21 05:27:54 +00:00
jos
a94f0c6c5e Merge branch 'feature-derived-units' of https://github.com/ericman314/mathjs into ericman314-feature-derived-units
Conflicts:
	examples/units.js
2015-08-05 21:04:53 +02:00
Eric
f5d166a809 Made an attempt at derived units with simplification
Updated unit tests
Updated examples
Updated docs
2015-08-04 05:26:00 +00:00
Eric
7ce39f1084 Finished upgrades to unit type. Adjusted several unit tests. 2015-08-01 18:35:46 +00:00
jos
d15751b041 Fixed operations with mixed fractions and numbers be converted to numbers instead of fractions. 2015-07-28 20:48:55 +02:00
Ubuntu
f583855261 First attempt at derived units. Updated unit tests and examples. 2015-07-25 18:48:04 +00:00
jos
34348d8483 Merge remote-tracking branch 'origin/v2' into develop 2015-07-21 20:51:39 +02:00