1601 Commits

Author SHA1 Message Date
jos
9199ae58ae Fixed #711: parser accepts numbers ending with a decimal mark again like 2.. 2016-09-20 21:02:28 +02:00
jos
d7d25e83c8 Released v3.5.1 2016-09-12 20:25:53 +02:00
jos
c2d39cc0f6 Remove some commented console logs (see #709) 2016-09-12 20:11:48 +02:00
Ekin Koc
7dc744f24f Remove unnecessary logging 2016-09-11 02:32:43 +03:00
jos
1c12fb2912 Released v3.5.0 2016-09-07 21:17:40 +02:00
jos
92918ed9b2 Fixed #707: The expression parser no longer accepts numbers ending with a dot like 2. 2016-09-07 21:10:20 +02:00
jos
23d1786cb2 Comments of expressions are are now stored in the parsed nodes, see #690 2016-08-23 21:12:39 +02:00
Thomas Brierley
0d1b3f0f6d Fix print options argument type
Add missing 'Object' type definition to third paramater. Fixes #700
2016-08-12 16:40:00 +01:00
jos
cd9214727d Released version 3.4.1 2016-08-08 20:22:15 +02:00
jos
9c6069b3cf Fixed broken bundle files (dist/math.js, dist/math.min.js) 2016-08-08 20:16:16 +02:00
jos
4ca3c3997e Released v3.4.0 2016-08-07 14:12:34 +02:00
Eric
0044105bd7 Unit tests 2016-08-06 13:04:51 -06:00
Eric
58e3247c27 Added splitUnit function 2016-08-06 12:31:49 -06:00
Mathias Polligkeit
ed0df31293 refactor distribution.js 2016-08-02 02:43:51 +02:00
Mathias Polligkeit
c464010234 add randomHelper function for duplicate logic of random/randomInt; fails 2016-08-02 01:16:04 +02:00
Mathias Polligkeit
fc2b730e04 add an intermediary typed function that will fail a test 2016-08-01 23:54:53 +02:00
Jos de Jong
ff53b04dca Merge pull request #697 from MathBunny/master
Fix bignumber isPrime implementation to use bignumber methods
2016-08-01 21:10:41 +02:00
Mathias Polligkeit
2a98231966 add default max value if undefined in randomInt 2016-07-30 20:13:06 +02:00
Mathias Polligkeit
21570cda0b turn randomInt into a typed function 2016-07-30 18:53:06 +02:00
MathBunny
5a8b53f8eb Remove useless import 2016-07-29 12:13:13 -04:00
MathBunny
a1484394e1 Fix BigNumber isPrime implementation to use BigNumber methods 2016-07-29 08:07:08 -04:00
Jos de Jong
17887c7e9a Merge pull request #683 from ericman314/create-units
Create user-defined units
2016-07-28 21:05:44 +02:00
Eric
b0b607d967 Finished docs 2016-07-27 23:50:49 -06:00
Eric
49378e1891 Finished bug fixes and added tests 2016-07-27 00:15:46 -06:00
Eric
8334e4a6c8 More bug fixing 2016-07-26 23:04:52 -06:00
Eric
37538119aa Working out more bugs 2016-07-26 22:51:43 -06:00
Eric
7c5ff021ed Fixed bug with dimensions array having unknown number of items 2016-07-25 18:03:31 -06:00
jos
ba2f3e5cb4 Updated history, added docs for expression parser 2016-07-25 22:49:24 +02:00
MathBunny
160b8b7d1f Add tests for isPrime 2016-07-21 20:24:59 -04:00
MathBunny
625ef5b9dc Add isPrime function 2016-07-21 19:48:41 -04:00
Eric
ec8ab2d86d Added base property to createUnit to help user-defined units to be simplified easier 2016-07-19 00:58:46 -06:00
Eric
efaa989cad Update API to accept objects and create multiple units 2016-07-19 00:30:57 -06:00
Mathias Polligkeit
832f280196 rewrite pickRandom as typed function 2016-07-18 02:17:27 +02:00
Mathias Polligkeit
fe972bacf6 extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom 2016-07-16 17:55:38 +02:00
Eric
6182eb4f35 Fixed small bug when create units with aliases 2016-07-13 19:51:34 -06:00
Eric
b7978dee23 Added Unit.createUnits and createUnits function, and tests. 2016-07-13 00:29:14 -06:00
jos
1588b0ebe0 Released version 3.3.0 2016-07-05 21:06:04 +02:00
jos
4162108fb4 Added expression parser docs for isNaN 2016-07-05 20:22:56 +02:00
Mathias Polligkeit
c5e40b40ef add pickMultipleRandom function 2016-06-30 02:19:09 +02:00
Max Bruckner
c1760298fb New function 'isNaN' 2016-06-20 20:24:26 +02:00
jos
730a10749e FunctionAssignmentNode creates a TypedFunction 2016-05-22 14:25:48 +02:00
jos
b016385fe0 Fixed #665: functions map, forEach, and filter now invoke callbacks which are a typed-function with the correct number of arguments 2016-05-18 22:10:34 +02:00
jos
5edecb56c8 Removed the check on the number of arguments from functions defined in the expression parser (see #665) 2016-05-18 21:08:40 +02:00
jos
7511d4288d Released v3.2.1 2016-04-26 20:08:05 +02:00
jos
e9eda030ee Fixed matrix.subset mutating the replacement matrix when unsqueezing it 2016-04-26 09:11:59 +02:00
Eric
a218ea419e Moved duplicate code to separate function 2016-04-23 13:34:15 -06:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
b4d3c89574 Released v3.2.0 2016-04-16 10:22:55 +02:00
jos
66716819a7 Fixed #644: implemented method Parser.getAll() to retrieve all defined variables 2016-04-16 09:55:48 +02:00
jos
cb4a1a98cb Fixed #641: Bug in expression parser parsing implicit multiplication with wrong precedence in specific cases 2016-04-16 09:43:24 +02:00