281 Commits

Author SHA1 Message Date
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
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
jos
7132a6f3c2 Fixed #221 for one-based implementations of map and forEach 2014-10-14 09:03:04 +02:00
jos
02d4d1d819 Fixed #221: Parameter index in the callbacks of map and forEach are now cloned for every callback 2014-10-13 21:53:55 +02:00
jos
41db497289 Removed references in documentation to the "distribution" function 2014-09-08 11:30:48 +02:00
jos
1a360b6995 Merge branch 'develop' 2014-09-04 21:28:01 +02:00
jos
f1313d8be7 Implemented a function filter(x, test) 2014-09-04 20:52:51 +02:00
jos
d1b96cde4d Improved comment 2014-09-03 22:13:55 +02:00
jos
fa4a23c34b math.number can convert units to numbers (requires a second argument) 2014-09-03 21:29:16 +02:00
jos
29cc34f1a8 Removed math.distribution for now, needs some rethinking 2014-08-28 21:46:56 +02:00
jos
454efa15dc Merge branch 'develop'
Conflicts:
	HISTORY.md
2014-08-21 20:41:32 +02:00
jos
8f9995cd37 Changed default value of the option wrap of function math.import to false, and fixed a but in math.import 2014-08-16 17:56:13 +02:00
jos
41663147e6 Implemented function sort 2014-08-14 22:24:15 +02:00
jos
831a82cd22 Merge remote-tracking branch 'origin/develop' into develop 2014-08-12 22:36:16 +02:00
jos
7f6b13a797 Changed the default value of new entries in resized matrices to zero. 2014-08-12 22:35:56 +02:00
jos
0860c70a6e Implemented function flatten 2014-08-12 21:17:27 +02: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
dfd0a51200 Some updates in function docs 2014-08-08 20:31:35 +02:00
jos
f3f5819718 Fixed function subset not being able to return a scalar value null or undefined (see #205) 2014-08-06 09:46:08 +02:00
jos
94262f6f89 Functions map and forEach invoke the callback with one-based indices when used from within the expression parser 2014-08-03 21:05:36 +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
7b08047061 Changed min, max, and mean to one-based dim 2014-07-24 21:35:11 +02:00
jos
8c224d3e71 Moved transformation of error messages (zero-based to one-based) to the expression/transform section 2014-07-20 20:45:10 +02:00
jos
59de16801e Renamed function category "Comparison" with "Relational" 2014-07-20 12:40:34 +02:00
jos
21b34cfa1a Implemented transforms, moved all one-based to zero-based logic for expressions to transforms. 2014-07-19 21:47:15 +02:00