487 Commits

Author SHA1 Message Date
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
jos
79f4d7fbe3 Some minor fixes in the docs 2014-12-30 19:57:34 +01:00
jos
c8509778e6 Fixed a broken example 2014-12-25 21:32:59 +01:00
jos
12bc095d2a Bumped version number to v1.2.1-SNAPSHOT 2014-12-25 20:26:35 +01:00
jos
8e16cef441 Released version 1.2.0 2014-12-25 20:07:36 +01:00
jos
e3b74d4ff8 Some reorganisation in the docs 2014-12-25 20:04:26 +01:00
jos
3c7c3a2193 Upgraded to decimal.js v4.0.1 2014-12-25 17:47:45 +01:00
jos
8b253f050b Renamed function select to chain 2014-12-25 17:05:29 +01:00
jos
97163135b2 Implemented xor operator ^| in the expression parser 2014-12-25 15:45:54 +01:00
jos
fe694bfd12 Dropped string support for bitwise operators 2014-12-25 15:07:30 +01:00
jos
33be634ffa Dropped support for string and undefined from logical operators 2014-12-25 14:49:43 +01:00
jos
73b67bfc09 Removed logical not operator ! (so now we just have logical operators and, not, or, xor). 2014-12-25 14:21:16 +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
2ce01fb8f8 Fixed Help.toString not outputting example results returning false 2014-12-23 21:29:57 +01: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
jos
5f4603bfcb Added docs for gamma function 2014-12-23 14:21:44 +01:00
Jos de Jong
8381e3bffc Merge pull request #245 from BigFav/gamma_factorial
Gamma function (no BigNumber, arbitrary-precision), and updated factorial.
2014-12-18 09:19:16 +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
2a5b242091 Added boolean not to parser, and added corresponding test cases. 2014-12-17 01:14:33 -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
6c1197f646 Added '~' to the parser. 2014-12-15 03:43:10 -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
jos
fa23462969 Merge remote-tracking branch 'origin/develop' into develop 2014-12-14 14:02:25 +01:00
Jos de Jong
77e32bbdd8 Merge pull request #247 from pavpanchekha/complex-trig-accuracy
Accuracy of sinh and complex cos/sin
2014-12-14 14:02:07 +01:00
jos
05cb69f6da Converting a unit without value will now result in a unit *with* value 2014-12-14 13:35:17 +01:00
Favian Contreras
9a25f8c467 Merge branch 'develop' of https://github.com/josdejong/mathjs into develop 2014-12-13 23:50:47 -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
jos
fd586fcbf1 Moved bignumber functions e, pi, tau, phi to util/bignumber.js (see #226) 2014-12-13 14:14:33 +01: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