50 Commits

Author SHA1 Message Date
josdejong
fdc7c8db03 Fixed some errors after solving merge conflicts 2014-04-11 22:18:40 +02:00
josdejong
f0035e8c41 Merge branch 'master' into develop
Conflicts:
	lib/function/arithmetic/compare.js
	lib/function/arithmetic/equal.js
	lib/function/arithmetic/larger.js
	lib/function/arithmetic/largereq.js
	lib/function/arithmetic/smaller.js
	lib/function/arithmetic/smallereq.js
	lib/function/arithmetic/unequal.js
	lib/math.js
	lib/util/number.js
	test/math.test.js
2014-04-11 22:15:31 +02:00
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
922ce679e6 Moved UnsupportedTypeError to the others, and made it independent of the math namespace 2014-04-11 17:44:55 +02:00
rjbaucells
2778ae935a Floating point numbers equality/inequality 2014-04-10 21:27:44 -04:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
d0fb727c43 Implemented DimensionError and IndexError 2014-04-06 20:53:23 +02:00
josdejong
2730edfd60 Removed errors for stuff deprecated since v0.16.0 2014-04-06 13:03:45 +02:00
josdejong
268c40e480 Simplification of function digits 2014-04-05 22:51:47 +02:00
josdejong
ad554ef1f7 Updates and fixes to work with a different BigNumber instance per math.js instance 2014-04-05 22:42:03 +02:00
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
josdejong
763abb425e Implemented function compare 2014-03-29 21:43:22 +01:00
josdejong
24b1e1c854 More unit tests added 2014-03-23 21:36:36 +01:00
josdejong
5dc010c889 Some more unit tests 2014-03-15 22:11:44 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
josdejong
d8f3b97e9f Fixed support for old browsers (IE6 - IE8), compatible when using es5-shim. 2013-12-12 10:24:07 +01:00
josdejong
91dae90e1e Fixed #108: math.js not working in Java's ScriptEngine 2013-12-10 21:34:37 +01:00
josdejong
1d54a99bce More neat formatting of functions 2013-12-09 21:21:34 +01:00
josdejong
f2f1ae1f72 Renamed and flattened configuration settings 2013-12-07 11:39:45 +01:00
josdejong
f68a195d44 Minor improvement in object.clone 2013-12-07 11:02:36 +01:00
josdejong
356a8cfc5d More tests 2013-12-06 10:31:35 +01:00
josdejong
0210ec0d41 UnsupportedTypeError can now determine the type of values 2013-11-28 17:15:28 +01:00
josdejong
f5ea5938a9 Renamed scientific notation to exponential in function format 2013-11-28 16:28:04 +01:00
josdejong
0ae1879884 Fixed function format for precision > 20 (see #100) 2013-11-28 13:38:08 +01:00
josdejong
8b565b23c4 Fixed auto notation in function format for bignumbers, the function now reckons with specified upper and lower bounds. 2013-11-27 11:07:40 +01:00
josdejong
26c0332883 On mixed Number/BigNumber inputs, all operators now downgrade the inputs if Number is a fraction. 2013-11-23 10:28:42 +01:00
josdejong
80b8b34042 Implemented function config 2013-11-21 13:13:26 +01:00
josdejong
21e4f7f160 Neatly splitted calculations with Numbers and Booleans 2013-11-19 21:34:20 +01:00
josdejong
eaee6a0152 code restructured 2013-11-16 21:07:42 +01:00
josdejong
3f11056330 Implemented BigNumber support for math.format. 2013-11-16 19:27:18 +01:00
josdejong
52337e4b94 Integrating the bignumber.js library in math.js. This is awesome! 2013-11-16 14:34:35 +01:00
josdejong
0a0596bd7e Simplified and reworked the Matrix class. Implemented functions Matrix.get and Matrix.set 2013-11-09 21:36:03 +01:00
josdejong
5f1aee3550 Some fixes and improvements in the resize function 2013-11-07 22:42:21 +01:00
josdejong
9485cb2459 Simplified/improved typeof function 2013-10-31 11:52:03 +01:00
josdejong
e1ead2f7a6 Added function format to Selector 2013-10-26 14:07:47 +02:00
josdejong
04c41fb42e Implemented advanced options in format to customize precision, scientific/fixed/auto notation (see #100). 2013-10-24 15:12:04 +02:00
josdejong
1db989a2d7 Changed scientific notation of number formatting back 2013-10-21 20:51:48 +02:00
josdejong
17f208df18 Some nice improvements to formatting numbers 2013-10-21 12:07:07 +02:00
josdejong
432d3e0574 Fixed a bug in formatting numbers with a limited precision. Added more unit tests. 2013-10-21 11:18:59 +02:00
josdejong
c8a289a08c Removed unnecessary .js suffix in module require statements 2013-10-20 14:01:31 +02:00
josdejong
e61d2f965b Fixes in the new function math.format(precision). Updated docs and tests. 2013-10-19 21:44:54 +02:00
josdejong
524a915beb Updated comments 2013-10-19 18:12:20 +02:00
josdejong
a4bda611df Implemented function print (splitted from function format) 2013-10-19 18:10:50 +02:00
josdejong
3c7174c764 Renamed options to math.options.format.precision and math.options.matrix.defaultType 2013-10-19 15:00:32 +02:00
josdejong
5a829ea3f8 Fixed #100: Formatting numbers as scientific notation in some cases returned a zero digit left from the decimal point 2013-10-11 14:01:42 +02:00
josdejong
2dc6ac6cdf Implemented support for booleans in all relevant functions 2013-09-02 21:36:52 +02:00
josdejong
9746dc37c2 Changed matrix indexes of expression parser to one-based (Fixed #66) 2013-08-29 22:11:30 +02:00
josdejong
9cb354a6da Index functionality getting in place now. 2013-08-18 14:37:03 +02:00
josdejong
24b3b7eb43 First implementation of Index and math.index 2013-08-17 15:35:48 +02:00
Sebastien Piquemal
a595266347 added all files in lib/ 2013-08-14 15:39:21 +04:00