Commit Graph

17 Commits

Author SHA1 Message Date
Émilie Feral
0ce0995e0c [poincare] add a method createEvaluation in all expressions
Change-Id: I72e78afcae2a931376108859a5615c227d364d74
2016-12-08 15:21:52 +01:00
Émilie Feral
f4b73de940 [poincare] define the float create layout method
Change-Id: I9d01272e450cf300ae3a0c8dd2541507cfbcb7a2
2016-12-08 15:21:52 +01:00
Émilie Feral
4967681a80 [poincare] delete useless destructor in float
Change-Id: I019e3ad31e49fabcacdcd77518dbf905328ec0a0
2016-11-23 14:29:52 +01:00
Émilie Feral
2eae7c43ff [poincare] Handle inf and nan when convert float in string
Change-Id: I2121a8030d044984235e48ad50a3c6ec9e06c31e
2016-10-26 16:26:47 +02:00
Émilie Feral
0dffa59352 [poincare] Use roundf to turn float in string
Change-Id: I4414cc66c004c5abab12c36d945c63d2df8f70ea
2016-10-26 16:26:47 +02:00
Émilie Feral
816a9587d6 [poincare] Round the float instead of truncate it when turned into a
string

Change-Id: Ia7c36cbf51b6fee17e25eb186548aa55ab115ea8
2016-10-24 10:31:15 +02:00
Émilie Feral
bac174ebfc [poincare] In float, add method to convert float to text
Change-Id: I9a85c02e0b2843ee999847b821b9d24f1452eb5d
2016-10-14 12:06:00 +02:00
Felix Raimundo
77f057de82 Add the const qualifier to Expression methods
Change-Id: Ic05828a91c89cb391e6d7c1d4a5220fad4aea5e7
2016-04-18 18:48:56 +02:00
Felix Raimundo
2f7b1f4860 Add the cloneWithNewOperands method.
This allows to replace the operands of an expression with new ones.

Change-Id: I3c2d183bbdbcc43b776f7ce2a302216c52e494bd
2016-04-11 12:21:14 +02:00
Romain Goyet
de2f83e8bd Poincare: Put the AST printing in its own file
Change-Id: I1793fa2057098f31a549faf6bf39e64c333b5b06
2016-04-01 15:02:31 +02:00
Felix Raimundo
ed2c4cfb59 First version of the simplifications.
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
2016-04-01 11:32:11 +02:00
Felix Raimundo
3710103f40 Change the layout creation.
The father now sets itself as teh father of its children.
ExpressionLayout do not know anything about expressions now.

Change-Id: I28954c78f3102eec056ebbc3c52ccd862a5ab8fd
2016-03-25 14:35:00 +01:00
Romain Goyet
b79e7483f4 Poincare: Adding SimplifyAdditionMerge
Change-Id: I6f922cce8178d5313a46d611e7ab166c52282127
2016-03-24 17:47:04 +01:00
Romain Goyet
0d7813dc7b Poincare: Expressions can now be cloned
Change-Id: I5a291c56dd031ec5e7aa6fbfe09823807f1b0e3c
2016-03-24 13:35:16 +01:00
Romain Goyet
dfdaa54928 Poincare: Clean the Expression::Type
Change-Id: I3809a8b1b040314466554866555fb634c35156a5
2016-03-24 10:19:04 +01:00
Romain Goyet
d3b0841af6 Poincare: Add a simplifier
Change-Id: Iac53c9b7dda5cb284fe750bb84c92ce5d1fba497
2016-03-23 17:24:11 +01:00
Romain Goyet
15d91052f2 [Poincare] Handle symbol/context 2015-11-18 22:31:21 +01:00