214 Commits

Author SHA1 Message Date
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
Ganga Christopher
12514a7bc4 calculating root of complex numbers using De Moviers, returns array of n complex roots in polar form 2015-07-21 17:10:49 -07:00
jos
f70dcd5d48 Added one more test 2015-06-17 20:11:03 +02:00
jos
b3c7169493 Fixed #397: Inaccuracies in nthRoot for very large values, and wrong results for very small values. 2015-06-17 20:06:13 +02:00
jos
a92b978036 Merged develop into v2 2015-06-07 15:57:41 +02:00
jos
7347591535 Upgraded to fraction.js v2.0.0, added fraction support for pow (integer exponents only) 2015-05-31 12:21:24 +02:00
jos
5762132822 Removed premature stuff on Permutation (see#362), and removed dependency on underscore. 2015-05-27 13:52:14 +02:00
jos
0eb9b5b119 Implemented a new configuration option predictable, which can be set to true in order to ensure predictable function output types. 2015-05-23 21:00:08 +02:00
Devan Patel
39acbdd558 Remove skipped test 2015-05-21 14:44:10 -04:00
jos
d81fe279cc String input is now converted to numbers by default for all functions. Adding two strings will no longer concatenate them, but will convert the
strings to numbers and add them.
2015-05-19 22:18:40 +02:00
jos
e055828205 Minor tweaks 2015-05-17 17:00:20 +02:00
jos
ec3ad5461f Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction. 2015-05-12 21:26:51 +02:00
jos
4766546748 Added fraction support for functions ceil, fix, floor, round 2015-05-12 20:26:42 +02:00
jos
44b2129740 Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction 2015-05-12 13:25:05 +02:00
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
jos
868b2702b5 Updated to typed-function v0.8, creating a new instance of typed-function for each instance of math.js. Better error messages and new utility functions typed.convert and typed.find. 2015-05-09 14:53:36 +02:00
Rogelio J. Baucells
92d270ca31 Test for algorithm04 bug 2015-05-05 17:16:24 -04:00