Émilie Feral
a07a59efe9
[poincare] Factorise the method evaluate
...
Change-Id: Ief252568e8d232fc4606e8c86b5e3f9b4c076955
2016-12-09 11:01:39 +01:00
Émilie Feral
4df7f4aaa1
[poincare] Correct memory leaking issue
...
Change-Id: Ide22a702f7a23b140cad7cd61f4543355b2de8f6
2016-12-08 17:10:36 +01:00
Émilie Feral
357f971120
[poincare] Change name: createEvaluation -> evaluate
...
Change-Id: I8f241541af0435c6ab4f7ba1f561f880c4e95ac0
2016-12-08 17:10:36 +01:00
Émilie Feral
0ce0995e0c
[poincare] add a method createEvaluation in all expressions
...
Change-Id: I72e78afcae2a931376108859a5615c227d364d74
2016-12-08 15:21:52 +01: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
202d110488
Add a BinaryOperation class
...
Parent of Fraction, Power, Subtraction
Change-Id: Ibb03e96062acd4870c5f10fe21eeea896a5927ec
2016-03-24 15:49:58 +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
cddb2ab887
Don't depend on the PLATFORM variable being defined
...
Change-Id: Ia1d0e5f320dfc0c6ab1cf8a588c297cbbc3c0df3
2016-03-18 16:53:01 +01:00
Felix Raimundo
a4e3f1e2d1
Compute power for real on the simulator.
...
Change-Id: I790f0b1216584835cd551893f16c052d21de7e31
2016-03-18 14:33:48 +01:00
Felix Raimundo
d42bbaf25a
Add exponent layout.
...
Change-Id: Iffce8dcdd4ecf10a8ed4170494b59fa6c524b9cb
2016-03-18 14:31:58 +01:00
Felix Raimundo
b33eb99067
Adds the power and parentheses to the parser.
...
Also removes some dead code and adds buttons in order to have parentehses.
Change-Id: Iaf6d678f765bb6a1c3405818738c51661aa43e12
2016-03-18 13:00:17 +01:00
Romain Goyet
46e3e614bf
[poincare] approximate
2015-09-17 20:15:20 +02:00
Romain Goyet
ac26f20ffb
Proper drawing of expressions
2015-05-19 18:06:25 +02:00