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
|
40986a1325
|
Using strict mode now in all files (added 'use strict'; on top of every file)
|
2014-07-18 23:19:14 +02:00 |
|
jos
|
7836bcb06a
|
Fixed a typo in the comments of format
|
2014-07-01 14:53:20 +02:00 |
|
jos
|
4645529f40
|
Removed function ifElse
|
2014-06-30 14:52:54 +02:00 |
|
jos
|
7d84e4daf0
|
Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library.
|
2014-06-20 23:11:14 +02:00 |
|
jos
|
a7151aab1a
|
Whoops removed accidentally pasted code
|
2014-06-17 21:20:47 +02:00 |
|
jos
|
2a5483dda6
|
Extended the documentation of function typeof
|
2014-06-17 21:10:50 +02:00 |
|
jos
|
aa80ae8fc8
|
Fixed #190: imported, wrapped functions not accepting null and undefined as function arguments.
|
2014-06-11 20:21:41 +02:00 |
|
jos
|
45982fbba0
|
Removed array/matrix support from function ifElse
|
2014-06-08 21:22:57 +02:00 |
|
jos
|
31aa5655b1
|
Added a section "Where:" to some of the reference docs
|
2014-05-22 22:15:40 +02:00 |
|
jos
|
6c8104f938
|
More docs added
|
2014-05-15 21:43:08 +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 |
|
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
|
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
|
f568ae75c1
|
More unit tests added
|
2014-04-03 20:58:43 +02:00 |
|
josdejong
|
b3ab923a69
|
Implemented conditional operator a ? b : c in expression parser
|
2014-04-01 20:49:55 +02:00 |
|
josdejong
|
c74afb7dcb
|
Improved function ifElse
|
2014-03-31 21:24:46 +02:00 |
|
josdejong
|
baa2fb43c6
|
Ignoring an else case for coverage of unit tests
|
2014-03-15 23:11:06 +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 |
|
Jos de Jong
|
99f5de862d
|
Merge pull request #144 from mtraynham/if_else_function
Adds the ifElse function.
|
2014-03-13 09:27:25 +01:00 |
|
Matt Traynham
|
7d26235842
|
Adds support for IfElse ternary operation functions. These can be used in the compiler as well. Much easier than adding basic parse support for ternary operands '?' & ':'.
|
2014-03-11 20:07:02 -04:00 |
|
josdejong
|
f48beee1f9
|
Added some more unit tests
|
2014-02-25 22:37:53 +01:00 |
|
josdejong
|
d22168ea88
|
Added script for coverage report
|
2013-12-14 13:20:27 +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
|
80b8b34042
|
Implemented function config
|
2013-11-21 13:13:26 +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
|
9485cb2459
|
Simplified/improved typeof function
|
2013-10-31 11:52:03 +01: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
|
c8a289a08c
|
Removed unnecessary .js suffix in module require statements
|
2013-10-20 14:01:31 +02:00 |
|
josdejong
|
f42f5698cb
|
Removed global option options.format.precision. When formatted, numbers are no longer rounded to 5 digits by default.
|
2013-10-20 13:40:28 +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
|
2dc6ac6cdf
|
Implemented support for booleans in all relevant functions
|
2013-09-02 21:36:52 +02:00 |
|
josdejong
|
eadb884af9
|
Moved around code and namespaces in order to separate expression parser related code.
|
2013-08-31 09:37:14 +02:00 |
|
josdejong
|
1618714657
|
Fixed some errors in throwing errors in map and forEach
|
2013-08-30 19:53:01 +02:00 |
|
Sebastien Piquemal
|
1d4a540a6e
|
Merge pull request #69 from sebpiq/develop
added math.map and math.forEach function see #68
|
2013-08-30 02:33:19 -07:00 |
|
Sebastien Piquemal
|
53da1468dc
|
added math.forEach + tests
|
2013-08-30 13:16:59 +04:00 |
|
josdejong
|
9746dc37c2
|
Changed matrix indexes of expression parser to one-based (Fixed #66)
|
2013-08-29 22:11:30 +02:00 |
|
Sebastien Piquemal
|
fe2c2b59d2
|
added math.map function see #68
|
2013-08-28 18:34:15 +04:00 |
|
josdejong
|
2158a28e33
|
Changed matrix index notation of expression parser from round brackets (...) to square brackets [...]
|
2013-08-21 13:41:15 +02:00 |
|
josdejong
|
99b14dd32e
|
Implemented Index and Range in parser
|
2013-08-19 22:04:41 +02:00 |
|
josdejong
|
7935546630
|
Removed type Range. function math.range now returns an expanded series
|
2013-08-17 13:42:57 +02:00 |
|
Sebastien Piquemal
|
a595266347
|
added all files in lib/
|
2013-08-14 15:39:21 +04:00 |
|