441 Commits

Author SHA1 Message Date
jos
f773df0fc6 Fixed #317 (formatting negative values), fixed #316 (round-off errors in formatting values) 2015-04-06 21:08:21 +02:00
jos
1990edc90f Added docs and and example on sparse matrices 2015-03-28 15:55:59 +01:00
Rogelio J. Baucells
6e0d9bbd59 norm() tests 2015-03-23 10:13:03 -04:00
Rogelio J. Baucells
b81187147e Merge pull request #24 from rjbaucells/CCS
Sparse Matrix implementation
2015-03-23 00:30:42 -04:00
Rogelio J. Baucells
849386ff24 DenseMatrix multiply(), partial 2015-03-20 17:57:43 -04:00
Rogelio J. Baucells
0d34992080 Merge pull request #23 from josdejong/develop
Sync
2015-03-19 00:06:26 -04:00
rjbaucells
f144b73c14 math.diag() 2015-03-16 20:40:45 -04:00
Rogelio J. Baucells
c847ed4658 CRS tests 2015-03-16 15:39:42 -04:00
rjbaucells
246c1e235e partial math.diag() 2015-03-15 22:23:55 -04:00
rjbaucells
00ce77d540 CCS tests 2015-03-15 13:01:39 -04:00
rjbaucells
5713b988ed matrix functions & tests 2015-03-14 19:56:16 -04:00
rjbaucells
b1166871ac math.ones() 2015-03-12 19:57:31 -04:00
Rogelio J. Baucells
188edd8180 math.trace() 2015-03-12 14:56:54 -04:00
Rogelio J. Baucells
5e1f557f54 math.zeros() 2015-03-12 12:13:14 -04:00
rjbaucells
23391f4dea Test updates 2015-03-12 00:21:01 -04:00
rjbaucells
fb70dc8272 Matrix transpose implementation 2015-03-10 22:38:41 -04:00
Rogelio J. Baucells
2077c39885 Matrix inheritance implementation 2015-03-10 15:28:19 -04: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
rjbaucells
5479a0ad56 Matrix tests using DenseFormat 2015-03-05 22:06:31 -05: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
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05: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 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
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 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
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
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 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
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
Favian Contreras
05c6dcaae5 Guard digits now a function of n. Updated Infinity! to be accurate (Infinity! == sqrt(tau)). Updated and cleaned up test cases. 2015-01-14 18:15:03 -08:00
Favian Contreras
a85df3fcea Fixed precision variable problem (config.precision instead of math.precision), and round-off errors. Updated test cases. 2015-01-13 04:41:53 -08:00
Favian Contreras
188c3afdfd Fixed carry-over precision bug in factorial. Updated test cases to account for this potential error. 2015-01-12 13:06:22 -08:00
Favian Contreras
35d92bde1d Cleaned up test cases by removing string comparisons on NaN and 0 equality for bignumbers. Also, now ensuring that sin returns with correct precision. 2015-01-12 13:04:03 -08:00
Favian Contreras
676e69409b Fixed bug of not reducing into pi range when negative, and using less guard digits. Now more thorough tests. 2015-01-04 10:25:03 -08:00
Favian Contreras
e8d8e79976 Initial BigNumber sin support. Tests added as well. 2015-01-01 23:32:15 -08:00