592 Commits

Author SHA1 Message Date
Favian Contreras
98040be7e1 Shortened up some of the more verbose test cases for which simplifications are possible. Used config.number on ConstantNodes that I missed on my original commits. 2015-07-25 07:29:17 -07:00
Favian Contreras
6fbe2238cd Added a test case for nthRoot where the root is variable. Now handles a variable base log, and added a test case. Adjusted the chain rule to be after the switch statement (saves ~1640 bytes and is more modular). 2015-07-21 04:34:06 -07:00
Favian Contreras
3591b7597d Added test cases for trig functions, C^x, FunctionAssignmentNode, and some error cases. 2015-06-13 09:42:40 -07:00
Favian Contreras
d800172062 Test derivitive function. Currently using a mix of written out Nodes, and parse to test against. 2015-05-31 02:50:14 -07:00
jos
0eb9b5b119 Implemented a new configuration option predictable, which can be set to true in order to ensure predictable function output types. 2015-05-23 21:00:08 +02:00
Jos de Jong
3e6445a6d0 Merge pull request #368 from rjbaucells/v2-Index
Extend Index implementation to support set of values
2015-05-22 21:13:21 +02:00
jos
3a1dea00b0 Function typeof no longer returns lower case names, but now returns lower case names for primitives (like number, boolean, string), and upper-camel-case for non-primitives (like Array, Complex, Function). 2015-05-22 21:05:35 +02:00
Rogelio J. Baucells
f2a179aa31 Merge branch 'josdejong/v2' into v2-Index
Conflicts:
	lib/core/typed.js
	lib/type/index/prototype/Index.js
2015-05-21 00:38:58 -04:00
Rogelio J. Baucells
7579412f7d Index dimension with immutable matrix 2015-05-20 17:41:03 -04:00
jos
d81fe279cc String input is now converted to numbers by default for all functions. Adding two strings will no longer concatenate them, but will convert the
strings to numbers and add them.
2015-05-19 22:18:40 +02:00
Max Bruckner
b50ed45c06 Use number configuration for return type of sum with empty array 2015-05-18 14:08:15 +02:00
Max Bruckner
1ef8f2986e sum: Fix #369 return 0 for empty array 2015-05-17 21:18:14 +02:00
jos
e055828205 Minor tweaks 2015-05-17 17:00:20 +02:00
rjbaucells
c24235ec3b tests - final
missing file
2015-05-13 20:30:49 -04:00
jos
ec3ad5461f Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction. 2015-05-12 21:26:51 +02:00
jos
4766546748 Added fraction support for functions ceil, fix, floor, round 2015-05-12 20:26:42 +02:00
jos
a0ad13b9e0 Added support for Fraction in functions compare, equal, larger, largerEq, smaller, smallerEq, unequal. 2015-05-12 13:46:50 +02:00
jos
44b2129740 Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction 2015-05-12 13:25:05 +02:00
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
jos
04f09c52c3 Merge remote-tracking branch 'origin/v2' into v2 2015-05-09 14:53:42 +02:00
jos
868b2702b5 Updated to typed-function v0.8, creating a new instance of typed-function for each instance of math.js. Better error messages and new utility functions typed.convert and typed.find. 2015-05-09 14:53:36 +02:00
rjbaucells
dd6335a6db lsolve() and usolve() 2015-05-07 23:43:28 -04:00
Rogelio J. Baucells
92d270ca31 Test for algorithm04 bug 2015-05-05 17:16:24 -04:00
jos
7e3eda8603 Moved all data types and their construction functions into a folder of their own under ./lib/type 2015-05-05 13:51:24 +02:00
jos
758107428c Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file. 2015-05-05 12:00:07 +02:00
jos
8b06d04d48 Moved expression related functions under ./lib/expression/function 2015-05-05 11:52:18 +02:00
jos
052c6109af Moved related functions to ./lib/core 2015-05-05 11:49:39 +02:00
Jos de Jong
cd6f6df393 Merge pull request #346 from rjbaucells/sparse-arithmetic
Sparse arithmetic updates
2015-05-05 11:04:18 +02:00
rjbaucells
16bb1d189a to updates 2015-05-04 09:41:59 -04:00
rjbaucells
586b93bcf3 atan2 updates 2015-05-03 23:39:06 -04:00
rjbaucells
fa24a92b24 atan2 updates - partial 2015-05-03 23:36:05 -04:00
rjbaucells
ff2ddc51ae unequal updates 2015-05-03 22:43:56 -04:00
rjbaucells
36ffb9444f smallerEq updates 2015-05-03 22:38:08 -04:00
rjbaucells
1d7e9bb374 smaller updates 2015-05-03 22:33:16 -04:00
rjbaucells
5293c22c10 largerEq updates 2015-05-03 22:28:35 -04:00
rjbaucells
5880adfd8c larger updates 2015-05-03 22:23:50 -04:00
rjbaucells
2d8410a5fa equal updates 2015-05-03 19:05:21 -04:00
rjbaucells
71fa09dc66 compare & algorithm05 updates 2015-05-03 17:40:38 -04:00
rjbaucells
769eebadb7 nthRoot 2015-05-02 19:46:38 -04:00
rjbaucells
21450c6fe2 rightLogShift 2015-05-01 23:57:11 -04:00
rjbaucells
22d3314d2a element wise operations 2015-05-01 23:38:18 -04:00
rjbaucells
e5cb318bc2 element wise operations 2015-05-01 23:09:46 -04:00
rjbaucells
8f5742a27e element wise operations 2015-05-01 20:14:00 -04:00
jos
18d9b8942e Dropped support for module names from function import 2015-05-01 23:00:58 +02:00
Rogelio J. Baucells
6a5af8731e element wise operations 2015-05-01 16:53:55 -04:00
rjbaucells
c8221c8954 tests 2015-04-30 20:33:02 -04:00
rjbaucells
b7ea83e0f2 element wise operations 2015-04-30 20:17:24 -04:00
Rogelio J. Baucells
4ab8a7e248 element wise operations 2015-04-30 17:51:04 -04:00
rjbaucells
6884de9803 test updates 2015-04-30 00:52:25 -04:00
rjbaucells
21a5dd34c1 element wise operations 2015-04-30 00:09:30 -04:00