307 Commits

Author SHA1 Message Date
jos
33be634ffa Dropped support for string and undefined from logical operators 2014-12-25 14:49:43 +01:00
jos
2614ca6203 Added docs for xor, removed docs of _divide 2014-12-25 14:11:15 +01:00
Jos de Jong
9a051c84bf Merge pull request #256 from BigFav/develop
Changed array and matrix to element-wise. Added xor.
2014-12-25 13:38:26 +01:00
Jos de Jong
18c99b4810 Merge pull request #255 from BigFav/gamma_factorial
Gamma <-> Factorial
2014-12-25 13:37:16 +01:00
Favian Contreras
75886b35c9 Changed array and matrix to element-wise. Added xor. 2014-12-25 04:43:55 -05:00
Favian Contreras
35ddaf0f9b Migrated for Numbers to . 2014-12-25 02:26:52 -05:00
jos
950c27df3e Removed the circular dependency between divide and inv (introduced _divide) 2014-12-24 14:51:45 +01:00
Favian Contreras
6deccdf837 Enabled factorial for non-integer numbers. Updated test cases to reflect this. 2014-12-24 02:53:00 -05:00
jos
5a3e55f39b Added docs on bitwise and logical functions for expression parser 2014-12-23 21:25:34 +01:00
jos
af08c269f3 Added operators &, |, <<, >>, >>> not, and, or to the expression parser 2014-12-23 16:25:32 +01:00
Favian Contreras
05d8f5b5f6 Failed at adding gamma to the parser (attempted to add 1 to all the values while using gamma, then tried to wierdly overload ! token). I added BigNumber integer support for gamma to allow more flexibility when integrating it into the parser (if that is something that is done). 2014-12-17 16:07:26 -08:00
Favian Contreras
19e6ce057a Removed BigNumber bad implementation. Also, cleaned up the code, switched the coefficients for Lanczos, and added extended Stirling approx. 2014-12-17 06:34:23 -08:00
Favian Contreras
8d8e46e07b Merge branch 'develop' of https://github.com/josdejong/mathjs into gamma_factorial 2014-12-17 00:39:02 -08:00
jos
a70d87f9a6 Merge branch 'boolean_logic' of https://github.com/BigFav/mathjs into BigFav-boolean_logic
Conflicts:
	lib/math.js
2014-12-16 20:08:14 +01:00
Jos de Jong
d1123ab9d4 Merge pull request #248 from BigFav/develop
BigNumber bitwise opts
2014-12-16 19:52:47 +01:00
Favian Contreras
6817f8fefd Strange, phantom file and.js in the relational folder...Deleted it. 2014-12-16 08:26:32 -08:00
Favian Contreras
ece196c53d Implemented , , and . Will attempt to add to parser. 2014-12-16 08:18:49 -08:00
Favian Contreras
6c21826b4b Prohibit usage of integers. 2014-12-16 02:56:15 -08:00
Favian Contreras
b8b7c92ae1 Moved type specific computation outside of the bignumber library, and made more style touchups. 2014-12-15 16:00:28 -08:00
Favian Contreras
f36fbb3968 Added bitwise functions into the bignumber section of mathjs. Made more test cases as well. Shifts are not fully precise, but other bitwise opts are. 2014-12-15 01:02:41 -08:00
Favian Contreras
33d76576d5 Updated use of bigPi, and adjusted the test cases as well. 2014-12-13 10:38:09 -08:00
Favian Contreras
9cc5161f35 Merge branch 'develop' of https://github.com/josdejong/mathjs into gamma_factorial 2014-12-13 06:51:44 -08:00
Favian Contreras
a9ee1980e1 Use the new cosh or sinh for complex numbers. 2014-12-12 23:10:27 -08:00
Favian Contreras
617320709e C/Java/Python style and. Will switch later if needed. 2014-12-12 22:45:55 -08:00
Pavel Panchekha
402d667b8f Fix sinh (and complex sin/cos) for small inputs 2014-12-12 12:14:51 -08:00
Favian Contreras
ea83be53c4 The tests now work, but still have use Math.PI. 2014-12-11 10:51:34 -08:00
Favian Contreras
5bc3e0d8c2 Faster factorial, and gamma implemented with tests. 2014-12-11 07:20:13 -08:00
Favian Contreras
77001b40c0 Adjusted return types in the comments above the method; Integer isn't a JavaScript type. 2014-12-09 22:27:19 -08:00
Favian Contreras
50702826df Slightly lower the code size for the 2-input gates, to much the flow of the shifts. 2014-12-09 22:11:24 -08:00
Favian Contreras
632eba954a Uncommented bignumber portions, and added bignumber test cases. 2014-12-09 12:53:41 -08:00
Favian Contreras
a37bac1d4b Removed parseInt as it is doesn't work for strings with 'e' in them; using unary plus to convert strings to non-bignumber ints. Also uncommented out the BigNumber sections in preparation for their inclusion. 2014-12-08 10:14:58 -08:00
Favian Contreras
57079969e3 Renamed xor, removed string NaN failure (undefined behavior should be handled by js), and prohibited use of Units. 2014-11-27 06:16:37 -08:00
Favian Contreras
a6fa55122d Finished testing, and renamed some of the ops to avoid any future confusion with boolean ops. 2014-11-26 06:37:27 -08:00
Favian Contreras
3f94a673bd First "fully" tested function! (and.js) 2014-11-26 02:48:10 -08:00
Favian Contreras
1a7d5b1c66 Added shifts, but they are entirely untested. Cleaned up the other bitwise ops, and decided to do nand, nor, etc. after testing. 2014-11-25 11:47:03 -08:00
Favian Contreras
b4fdea0341 Basic functionality for most bitwise functions, but only minor testing. Shifts not done yet. 2014-11-25 02:45:11 -08:00
jos
b0740ad66a Released version 1.1.1 2014-11-22 14:21:38 +01:00
jos
e06002f235 Merge branch 'master' into develop 2014-11-22 14:14:59 +01:00
Andy Pan
1ccc20802b Merge branch 'develop' of https://github.com/josdejong/mathjs into upstream-dev 2014-11-22 21:09:59 +08:00
jos
da03cd5be9 Fixed #238: Unit divided by Number returning zero 2014-11-22 13:54:38 +01:00
Andy Pan
21d7740f93 check whether the search is a property in help function 2014-11-22 17:33:19 +08:00
Ryan Seys
a588b60150 Fix matrix docs 2014-11-21 23:41:14 -05: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
jos
8f37893c61 Implemented function cross (cross product for vectors). 2014-11-08 17:57:51 +01:00
jos
50fb91346b Implemented function dot (dot product for vectors). 2014-11-08 16:13:32 +01:00
jos
8513ccca49 More clear explanation of included/excluded boundaries in random and randomInt docs (See #222) 2014-10-14 09:21:21 +02:00
jos
378e99e9e4 Fixed #222: typo in the docs of random and randomInt 2014-10-14 09:09:25 +02:00