450 Commits

Author SHA1 Message Date
jos
aa78c292b4 Moved function config into a separate file, moved loading datatypes from loader.js to index.js 2015-03-26 21:20:14 +01:00
jos
2afca88b45 Refactored bignumber, boolean, chain, complex, index, matrix, number, parser, string, unit to typed-function. 2015-03-23 20:56:15 +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
f70cad6346 Refactored acot, acsc, asec, atan, atan2, cot, csc, sec, sin, tan to typed-functions 2015-03-22 13:44:43 +01:00
jos
dd9954b995 Refactored acos, acosh, acoth, acsch, asech, asin, asinh, atanh, cos, cosh, coth, csch, sech, sinh, tanh to typed-functions. 2015-03-11 09:51:25 +01:00
Jos de Jong
98fd982068 Refactored max, mean, median, prod, std, var to typed functions 2015-03-09 21:47:23 +00:00
Jos de Jong
81e56601d2 Merge branch 'develop' into v2 2015-03-09 20:19:12 +00:00
jos
920da70f2a Refactored functions gcd, lcm, log10, mod, xgcd to typed-functions 2015-03-09 20:10:06 +01:00
jos
b42b87245b Refactored compile and to to typed-functions. 2015-03-08 21:07:35 +01:00
Jos de Jong
52e3972765 Merge pull request #293 from BigFav/bigSin
Added BigNumber functionality for atan2, with tests.
2015-03-08 20:07:00 +00: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
c3470a2d10 Refactored compare, deepEqual, largerEq, smallerEq, and unequal to typed-functions. 2015-03-08 15:44:39 +01:00
jos
36a1bc3185 Fixed broken unit test 2015-03-06 17:14:26 +01:00
jos
3b8eff0a7a Fixed #291: function format sometimes returning exponential notation when it should return a fixed notation. 2015-03-05 20:12:30 +01:00
Favian Contreras
b761e4e94f Adjusted strange behavior of created pi constructors (i.e. replacing them). 2015-03-01 21:59:44 -08:00
Favian Contreras
1fb2ab8f74 Added BigNumber functionality for atan2, with tests. 2015-03-01 03:35:19 -08: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
1d0ba42381 Refactored larger and equal 2015-02-27 09:21:18 +01:00
Jos de Jong
cd99ca5ae7 Merge pull request #289 from BigFav/bigSin
Now numbers from BigNumber trig calls use the default constructor rather...
2015-02-26 21:02:09 +00:00
Jos de Jong
10db9cb813 Merge pull request #288 from rjbaucells/develop
Fixes the calculation of norm() and abs() of large complex numbers
2015-02-26 20:57:09 +00: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
Favian Contreras
4067586d7d Now numbers from BigNumber trig calls use the default constructor rather than create a new one each time. Now all trig functions can have arguments with higher precisions. 2015-02-26 12:31:38 -08:00
rjbaucells
dd039a1609 Fix abs() and norm() of large complex numbers 2015-02-26 00:54:44 -05:00
jos
adbf9031b2 Merge branch 'develop' into v2 2015-02-24 20:57:55 +01:00
jos
004e80543e Halfway refactoring bitAnd 2015-02-24 20:39:51 +01:00
Jos de Jong
fc645e927e Merge pull request #286 from BigFav/bigSin
acsc, asec, acot, and added Complex returns for expression parser
2015-02-24 19:38:28 +00:00
Favian Contreras
9d4b74241c Updated inverse hyperbolic functions to return complex values when appropriate. Updated the test cases as well. 2015-02-24 03:37:42 -08:00
Favian Contreras
7f9b8e177f Added test cases for new methods. Also, escaped parenthesis in error message, now it works. Updated atan test case to reflect the new behavior (see #173). 2015-02-24 01:58:24 -08:00
jos
77fc274496 Refactored log and pow to typed-functions 2015-02-20 21:30:56 +01:00
jos
db4a004e58 Merge branch 'develop' into v2
Conflicts:
	HISTORY.md
2015-02-20 19:56:12 +01:00
jos
9193965922 Some more unit tests 2015-02-17 21:18:25 +01:00
Jos de Jong
7c5b457c19 Merge pull request #278 from BigFav/bigSin
Inverse hyperbolic trigonometric functions, and reciprocal BigNumber trigonometric functions.
2015-02-17 14:08:36 +00:00
Favian Contreras
ac460ec1a5 Added test cases, and updated the functions (recirpocal BigNumber calcs were previously done improperly as were the complex number computation). 2015-02-16 02:24:30 -08:00
jos
150add879a Better error message on conversion of number to BigNumber when having more than 15 digits 2015-02-16 09:31:41 +01:00
Favian Contreras
ed2137a66e Added hyperbolic inverse functions although they are untested. Implemented and tested the reciprocal trigonometric BigNumber functions (hyperbolic has been done as well, but not normal inverse). 2015-02-15 15:25:00 -08:00
Jos de Jong
618ec2c84b Merge pull request #274 from BigFav/bigSin
BigNumber Trigonometry
2015-02-09 21:00:18 +01:00
Favian Contreras
aa4717a82d Replaced BigNumber comparisons with string comparison for the high precision acos and asin test cases, in an attempt to fix those test cases. 2015-02-09 01:56:13 -08:00
Favian Contreras
38650ba475 Slight tweeks and refactoring of the functions. Updated test cases to ensure args were not tampered with (even for functions whose precision is inherited via the number which will be changed in the future). 2015-02-09 01:33:29 -08:00
Favian Contreras
2de088cb0d Tested the functions. Made changes to the functions accordingly. Now puts more digits of pi into cosine to get the 'correct' values. 2015-02-08 18:42:18 -08: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 de Jong
122459b8f6 Merge pull request #272 from BigFav/bigSin
Big sine and cosine
2015-02-04 14:29:58 +01:00
Favian Contreras
1b51822677 Updated tests, and slight update to the way I reduced the arguments. 2015-02-04 04:57:29 -08:00
Favian Contreras
27dc595557 Organized bignumber.js by function type. Improved speed of sin, and tried to complete cosine but that is slightly broken (gets last digit wrong sometimes). 2015-02-03 05:54:04 -08:00
Kenan Yildirim
02c63a24f5
Remove a duplicate csch test 2015-02-01 13:20:34 -05:00
jos
04ba7ec8e8 Minor performance improvements in larger, largerEq, smaller, smallerEq 2015-01-29 20:29:50 +01:00
Pete Corey
457c8d288a Renamed tr to trace 2015-01-29 11:20:49 -08:00
Pete Corey
5e3bb7e8dd Added trace matrix operation 2015-01-27 12:28:04 -08:00