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
|
eca2326802
|
More unit tests
|
2014-03-01 21:35:55 +01:00 |
|
josdejong
|
b046c7ee98
|
Completed unit tests for all expression nodes
|
2014-03-01 15:55:20 +01:00 |
|
josdejong
|
42548e1cf0
|
More unit tests
|
2014-02-28 22:50:46 +01:00 |
|
josdejong
|
32b0d33351
|
Cleaned up some dead code
|
2014-02-26 21:23:11 +01:00 |
|
josdejong
|
30d9d4653c
|
Some more unit tests added
|
2014-02-26 21:07:22 +01:00 |
|
josdejong
|
b7826bf65a
|
Implemented function compile
|
2014-02-15 17:59:19 +01:00 |
|
josdejong
|
97be029d6e
|
Removed need to use the function keyword for function assignments in the expression parser
|
2014-01-18 11:18:29 +01:00 |
|
josdejong
|
36a65785fb
|
Merge branch 'develop' into expression_compilation
Conflicts:
HISTORY.md
|
2014-01-07 21:45:51 +01:00 |
|
josdejong
|
bc157eb400
|
Updated docs and examples
|
2014-01-07 21:44:00 +01:00 |
|
josdejong
|
5d96ce4c16
|
Removed old code for expression evaluation
|
2014-01-07 21:07:43 +01:00 |
|
josdejong
|
00e55b917e
|
Replaced eval with compile
|
2014-01-07 16:12:57 +01:00 |
|
josdejong
|
8ce1a122bb
|
Some minor code rearrangement
|
2014-01-07 14:25:32 +01:00 |
|
Daniel Levin
|
c13da00dce
|
Updated combinations/permutations documentation
|
2014-01-07 13:40:54 +02:00 |
|
josdejong
|
28205b04e2
|
IndexNode works now for getting a subset too
|
2014-01-06 22:29:25 +01:00 |
|
josdejong
|
965f4232ad
|
Added docs on combinations / permutations
|
2014-01-06 10:43:31 +01:00 |
|
josdejong
|
9d1b9d6a81
|
Renamed parameters in IndexNode
|
2014-01-05 22:20:08 +01:00 |
|
josdejong
|
c2c8bb61cf
|
Compilation of UpdateNode working again
|
2014-01-05 22:18:32 +01:00 |
|
josdejong
|
c0d312adbf
|
Better error in case of wrong object type in ParamsNode
|
2014-01-05 22:01:08 +01:00 |
|
josdejong
|
9e7c641302
|
Cleaned up ParamsNode
|
2014-01-05 21:58:13 +01:00 |
|
josdejong
|
bc05d8b9e8
|
Changed matrix index notation of expression parser from round brackets to square brackets
|
2014-01-05 21:52:13 +01:00 |
|
josdejong
|
37e12b23d1
|
Fixed ConstantNode pointing to undefined math
|
2014-01-05 21:17:34 +01:00 |
|
josdejong
|
a0f1053697
|
Simplified compilation factory code
|
2014-01-05 20:26:05 +01:00 |
|
josdejong
|
5f81246136
|
Implemented global definitions internally in expression compilation
|
2014-01-05 15:01:07 +01:00 |
|
josdejong
|
d7349296c0
|
Implemented IndexNode
|
2014-01-04 17:53:02 +01:00 |
|
josdejong
|
5c84e72bc7
|
Implemented compilation for UpdateNode
|
2014-01-04 15:26:13 +01:00 |
|
josdejong
|
f6acb12e4d
|
Implemented expression compilation for 80%
|
2014-01-01 20:46:30 +01:00 |
|
Elijah Insua
|
be67514557
|
move the 'in' unit conversion keyword to 'to'
This also enables 'in' as an alias of 'inch'. refs #120
|
2013-12-20 15:31:18 -07:00 |
|
josdejong
|
2b98831d84
|
Fixed #119: bug with negative temperatures
|
2013-12-14 14:26:30 +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
|
0210ec0d41
|
UnsupportedTypeError can now determine the type of values
|
2013-11-28 17:15:28 +01:00 |
|
josdejong
|
279809fd79
|
Ranges and indexes can now handle big numbers by downgrading to numbers
|
2013-11-27 14:16:46 +01:00 |
|
josdejong
|
21735cf1c8
|
RangeNode can handle BigNumbers now (downgrades to numbers)
|
2013-11-27 13:18:01 +01:00 |
|
josdejong
|
3a4c1c5ef0
|
Internally renamed variable options to settings
|
2013-11-21 13:39:24 +01:00 |
|
josdejong
|
ea51c6c86c
|
math.options is no longer exposed as property
|
2013-11-21 10:37:04 +01:00 |
|
josdejong
|
52337e4b94
|
Integrating the bignumber.js library in math.js. This is awesome!
|
2013-11-16 14:34:35 +01:00 |
|
josdejong
|
dd662ba948
|
Functions don't allow arguments of unknown type anymore
|
2013-11-15 21:33:38 +01:00 |
|
josdejong
|
d9090588b0
|
Implemented function math.resize
|
2013-11-15 21:23:22 +01:00 |
|
josdejong
|
a3fb579e5c
|
Documented the expression parser
|
2013-11-14 10:19:01 +01:00 |
|
josdejong
|
98cb6dcd31
|
Bug fix for nested matrix indexes using context variable end
|
2013-11-12 22:14:12 +01:00 |
|
josdejong
|
a19b1a1285
|
Functions ones and zeros now return an empty matrix instead of a number 1 or 0 when no arguments are provided
|
2013-11-07 17:16:34 +01:00 |
|
josdejong
|
ced03dd1fb
|
Fixed missing math namespace in ArrayNode
|
2013-10-26 13:50:54 +02:00 |
|
josdejong
|
af286e482a
|
Updated docs on min, max, mean
|
2013-10-24 15:18:21 +02:00 |
|
josdejong
|
c8a289a08c
|
Removed unnecessary .js suffix in module require statements
|
2013-10-20 14:01:31 +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
|
c3d5edf4bb
|
Implemented support for multiplying vectors with matrices
|
2013-10-14 13:14:16 +02:00 |
|