1246 Commits

Author SHA1 Message Date
rjbaucells
5d49bebed2 CRS and CCS fixes 2015-03-04 22:35:57 -05:00
rjbaucells
5a389126aa Matrix format implementations 2015-03-04 20:45:29 -05:00
rjbaucells
da19cef9b4 Storage format interface 2015-03-04 20:07:50 -05:00
Rogelio J. Baucells
c5b19a5e98 Initial multiply implementation for CRS 2015-03-04 16:24:24 -05:00
Rogelio J. Baucells
5ee1ff2615 Dense format 2015-03-04 15:32:16 -05:00
Rogelio J. Baucells
21db7d8de9 Parser fixes 2015-03-04 15:29:12 -05:00
Rogelio J. Baucells
91bf23e057 Initial DenseFormat implementation 2015-03-04 15:14:29 -05:00
Rogelio J. Baucells
6f06aa69c7 CCS and CRS sparse matrix formats 2015-03-04 15:11:20 -05:00
Rogelio J. Baucells
da377b9fb7 Parser fixes 2015-03-04 14:39:53 -05:00
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05:00
Rogelio J. Baucells
a50b8cf9a4 Merge pull request #12 from josdejong/develop
sync develop branch
2015-03-03 16:45:26 -05:00
jos
97e452e544 Fixed #296: Added unit stone (6.35 kg) 2015-03-02 21:18:09 +01:00
jos
f99cee7ab9 Updated history 2015-03-01 20:12:15 +01:00
Jos de Jong
ed47c7fa35 Merge pull request #294 from FSMaxB/totex
Update toTex to better handle parenthesis
2015-03-01 19:08:52 +00:00
Max Bruckner
6a9c2df38c Update FunctionAssignmentNode to better handle parenthesis 2015-03-01 17:10:09 +01:00
Max Bruckner
bb2bfc939c Update AssignmentNode to better handle parenthesis 2015-03-01 17:02:42 +01:00
Max Bruckner
b2d868c2ed Update OperatorNode's toTex to better handle parens
Use the new infrastructure in OperatorNode's toTex
2015-03-01 16:34:09 +01:00
jos
9b8da79f5f Added Max Bruckner to the contributor list 2015-03-01 15:02:04 +01:00
Jos de Jong
bcaf4362e1 Merge pull request #292 from FSMaxB/tostring
New generic implementation of toString
2015-03-01 13:43:31 +00:00
jos
eff21823e8 Changed node versions on travis to 0.10 and 0.12 2015-03-01 14:22:40 +01:00
jos
cf00b28ed2 Force retesting on travis to check whether the tests fail 2015-03-01 14:20:43 +01:00
Max Bruckner
b5ce799e9d New generic toString for AssignmentNode 2015-03-01 10:35:04 +01:00
Max Bruckner
1f2f42012c New generic toString for FunctionAssignmentNode 2015-03-01 10:35:04 +01:00
Max Bruckner
b1a438fd7f New generic toString for RangeNode 2015-03-01 10:35:03 +01:00
Max Bruckner
9489fbf9dc New generic toString for ConditionalNode 2015-03-01 10:35:03 +01:00
Max Bruckner
1ac3319656 OperatorNode: validate input 2015-03-01 10:35:03 +01:00
Max Bruckner
0e5a6e5a38 New generic toString for OperatorNode 2015-03-01 10:35:03 +01:00
Max Bruckner
946df4d4b2 Function to calculate all necessary parentheses
calculateNecessaryParentheses takes an OperatorNode and it's arguments
and calculates which of those arguments need to be put in parentheses
based on precedence and associativity.
2015-03-01 10:35:03 +01:00
Max Bruckner
2e51086fda Function to check associativity between operators
'isAssociativeWith(a,b)' to check if a is associative with b.

Example:
'+' is associative with '-' because (a+b)-c=a+(b-c)
2015-03-01 10:35:03 +01:00
Max Bruckner
91c0dd6b6d Function getAssociativity
Function to get the left/right associativity of an operator
2015-03-01 10:35:03 +01:00
Max Bruckner
9a3c3f9f95 Function getPrecedence to get operator precedence. 2015-03-01 10:35:03 +01:00
Max Bruckner
6aa8b764f4 List of operator precedence and their properties. 2015-03-01 10:35:03 +01:00
Max Bruckner
d593e749e9 New function getIdentifier() for Nodes
getIdentifier() returns a String that contains the name of the node and
the function associated with it ( in case of FunctionNode and
OperatorNode ).
2015-03-01 10:35:03 +01:00
jos
8ca1751319 Bumped version number to 1.4.1-SNAPSHOT 2015-02-28 22:59:39 +01:00
jos
27b436d108 Released version 1.4.0 v1.4.0 2015-02-28 22:02:12 +01:00
jos
bda176359b Documented fromJSON and toJSON 2015-02-26 22:20:48 +01:00
jos
37c5a5690e Merge remote-tracking branch 'origin/develop' into develop 2015-02-26 22:02:25 +01:00
Jos de Jong
cd99ca5ae7 Merge pull request #289 from BigFav/bigSin
Now numbers from BigNumber trig calls use the default constructor rather...
2015-02-26 21:02:09 +00:00
jos
6f9f473657 Updated history 2015-02-26 21:59:59 +01:00
Jos de Jong
10db9cb813 Merge pull request #288 from rjbaucells/develop
Fixes the calculation of norm() and abs() of large complex numbers
2015-02-26 20:57:09 +00:00
Favian Contreras
4067586d7d Now numbers from BigNumber trig calls use the default constructor rather than create a new one each time. Now all trig functions can have arguments with higher precisions. 2015-02-26 12:31:38 -08:00
rjbaucells
dd039a1609 Fix abs() and norm() of large complex numbers 2015-02-26 00:54:44 -05:00
jos
2f137f5885 Added header "Precedence" 2015-02-24 20:57:45 +01:00
jos
62443b387d Updated history 2015-02-24 20:41:02 +01:00
jos
ec01154182 Merge remote-tracking branch 'origin/develop' into develop 2015-02-24 20:40:10 +01:00
Jos de Jong
fc645e927e Merge pull request #286 from BigFav/bigSin
acsc, asec, acot, and added Complex returns for expression parser
2015-02-24 19:38:28 +00:00
Favian Contreras
3bd6a56f08 Copy-paste error. Changed precision back properly for BigNumber acsc. 2015-02-24 03:45:30 -08:00
Favian Contreras
9d4b74241c Updated inverse hyperbolic functions to return complex values when appropriate. Updated the test cases as well. 2015-02-24 03:37:42 -08:00
Favian Contreras
7f9b8e177f Added test cases for new methods. Also, escaped parenthesis in error message, now it works. Updated atan test case to reflect the new behavior (see #173). 2015-02-24 01:58:24 -08:00
Favian Contreras
c970ac026a Added acsc, asec, and acot. Also fixed some Complex errors of modifying the original input. 2015-02-24 01:52:30 -08:00