107 Commits

Author SHA1 Message Date
jos
5cab0641e9 Simplified the factory structure a little bit. Reworked reviver and BigNumber to factories 2015-03-26 21:03:55 +01:00
jos
b028c7e7cf Refactored clone, filter, forEach, format, map, print, sort, typeof to typed-function. 2015-03-22 21:07:57 +01:00
jos
d4a457f5c9 Refactored norm, nthRoot, round, diag, transpose to typed-functions. 2015-03-22 15:34:59 +01:00
jos
de0f937950 Created a loader and reworked the functions to a new type of factory function 2015-03-18 22:42:54 +01:00
jos
920da70f2a Refactored functions gcd, lcm, log10, mod, xgcd to typed-functions 2015-03-09 20:10:06 +01:00
jos
132f322598 Refactored fix, floor, sign, square, unaryPlus, arg, conj, im, re to typed-functions. 2015-03-08 20:38:23 +01:00
jos
62e9845008 Refactored ceil, cube, dotDivide, dotMultiply, and dotPow to typed-functions. 2015-03-08 16:01:05 +01:00
jos
675c1b35aa Merge branch 'develop' into v2
Conflicts:
	HISTORY.md
	lib/function/arithmetic/abs.js
2015-02-28 23:01:20 +01:00
jos
cdd7bb8a83 Updated to typed-function 0.6.2, fixing a couple of bugs. Conversion from BigNumber to Complex added. 2015-02-26 21:51:25 +01:00
rjbaucells
dd039a1609 Fix abs() and norm() of large complex numbers 2015-02-26 00:54:44 -05:00
jos
77fc274496 Refactored log and pow to typed-functions 2015-02-20 21:30:56 +01:00
jos
f532155c7d Refactored multiply to a typed-function 2015-02-07 21:03:26 +01:00
jos
8edf472478 Upgraded to typed-function v0.6.1, more functions refactored. 2015-02-07 20:29:32 +01:00
jos
19c2024524 Halfway reworking more functions (lot of stuff is broken at this point) 2015-01-17 21:09:39 +01:00
jos
e11f08ae73 Fixed indentation, improved an error message 2015-01-12 21:39:27 +01:00
jos
6cefd52557 Refactored the first few functions into typed-functions 2015-01-11 15:29:40 +01:00
jos
2614ca6203 Added docs for xor, removed docs of _divide 2014-12-25 14:11:15 +01:00
jos
950c27df3e Removed the circular dependency between divide and inv (introduced _divide) 2014-12-24 14:51:45 +01:00
jos
da03cd5be9 Fixed #238: Unit divided by Number returning zero 2014-11-22 13:54:38 +01:00
jos
a61397cfc6 Fixed #236: BigNumber downgrading to Number for a negative base in pow 2014-11-21 11:16:09 +01:00
Andy Pan
fd70cb90e5 fix missing separator in multiply error message 2014-11-16 19:05:57 +08:00
jos
601212c0e9 Fixed a typo in the docs of round 2014-11-11 10:45:24 +01:00
jos
bc15efbc68 Fixed #219: implemented function nthRoot 2014-11-09 14:18:30 +01:00
Pavel Panchekha
2ef53ce069 Changed calculation of math.sqrt to avoid numerical problems when re < 0 2014-08-11 17:34:06 -07:00
jos
da306e26ed Implemented support for null in all functions (see #205) 2014-08-09 16:27:11 +02:00
jos
e5ce909524 Reworked the way matrices are resized when dimensions are added/removed 2014-08-03 15:56:39 +02:00
jos
2edb462615 Fixed function gxcd returning an Array when math.js was configured as {matrix: 'matrix'}. 2014-07-24 22:15:22 +02:00
jos
1eb4b33d93 Implemented BigNumber support for functions gcd, xgcd, and lcm 2014-07-24 22:08:46 +02:00
jos
40986a1325 Using strict mode now in all files (added 'use strict'; on top of every file) 2014-07-18 23:19:14 +02:00
jos
5e1cfbf545 Implemented implicit multiplication. Fixed a bug with multiplying non-valued temperatures with a number 2014-06-30 13:43:50 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
40d66224e8 Moved the comparison functions from section "arithmetic" to a new section "comparison" 2014-06-09 14:21:54 +02:00
jos
ced18ecfca Implemented functions dotEqual and dotUnequal, renamed functions smallereq to smallerEq and largereq to largerEq (all functions are now camelcase) 2014-06-09 14:07:21 +02:00
jos
0ae566db8d Renamed functions edivide, emultiply, and epow to dotdivide, dotmultiply, and dotpow respectively. 2014-06-09 11:09:06 +02:00
jos
3399909318 Implemented unary plus 2014-06-08 20:49:52 +02:00
jos
abf1b02ee9 Renamed function unary to unaryminus. Documented and tested constant phi. 2014-06-08 20:12:07 +02:00
jos
7dbba81eca Output of matrix multiplication is now consistently squeezed 2014-05-18 15:14:09 +02:00
jos
37f97625c8 Fixed #185: a bug in multiplying two matrices containing vectors (worked fine for arrays) 2014-05-18 14:58:35 +02:00
jos
2f200d7c60 Fixed a bug in multiplying units without value with a number (like 5 * cm). 2014-05-16 20:10:54 +02:00
jos
504fef7231 Merge branch 'develop' into reference 2014-05-14 09:12:53 +02:00
jos
5ddc735983 Fixed #177: function add not adding strings and matrices element wise 2014-05-05 09:38:52 +02:00
jos
f6fe12d452 Added more reference docs (not all docs are complete yet) 2014-04-28 22:08:11 +02:00
jos
47ff033538 Merge branch 'develop' into reference 2014-04-25 17:22:40 +02:00
jos
dd7b2e6a74 Minor simplification of function mod 2014-04-24 20:57:11 +02:00
jos
9e0a63386a Fixed #169: Fixed functions log, log10, pow, and sqrt not supporting BigNumbers arguments resulting in complex numbers. 2014-04-24 20:05:52 +02:00
Jos de Jong
b3f898cd25 Merge pull request #165 from rjbaucells/develop
Fixed norm of vector bug when p is equal to zero
2014-04-17 10:48:51 +02:00
Rogelio J. Baucells
4b375d35a3 Fixed norm of vector bug when p is equal to zero 2014-04-16 17:56:01 -04:00
jos
6d4a997ef4 Fixed comparison functions not applying option epsilon 2014-04-16 10:13:11 +02:00
jos
d369733d09 Documented complex polar coordinates 2014-04-16 09:55:55 +02:00
jos
e5cddb66ed Merge remote-tracking branch 'origin/develop' into develop 2014-04-16 09:29:02 +02:00