Commit Graph

84 Commits

Author SHA1 Message Date
Émilie Feral
5beafd2bf3 [poincare] Change Expression::getVariables to get symbols with variable
sizes
2018-11-23 12:03:58 +01:00
Émilie Feral
bc2ce86825 [poincare] Change signature: polynomialDegree,
getPolynomialCoefficients, getPolynomialReducedCoefficients
2018-11-23 12:03:58 +01:00
Émilie Feral
b6465ecba5 [poincare] Change replaceSymbolWithExpression signature
replaceSymbolWithExpression(char
symbol..)->replaceSymbolWithExpression(const char *..
2018-11-23 12:03:58 +01:00
Léa Saviot
3bbb8b39d1 [poincare] Add context argument to some ExpressionNode methods 2018-11-23 12:03:58 +01:00
Léa Saviot
0e5fb79212 [poincare] Use children() iterator instead of for(int i=0;i++) loop 2018-09-20 10:26:30 +02:00
Léa Saviot
ea948117a4 [poincare] Remove ExceptionNodes and UninitializedNodes 2018-09-05 17:54:08 +02:00
Émilie Feral
c6c71e2ed6 [poincare] Revert design of shallowReduce:
shallowReduce is supposed to be applied on Expression already attached
to their parent
2018-08-31 13:59:29 +02:00
Émilie Feral
ccda5c3831 [poincare] Redesign Expression and ExpressionNode to work with Reference 2018-08-30 16:08:09 +02:00
Émilie Feral
9fd3276563 [poincare] API Expression node v2 2018-08-30 15:06:38 +02:00
Émilie Feral
96c6c825e4 [poincare] New API Expression node (Reference instead of copy) 2018-08-30 14:46:25 +02:00
Émilie Feral
ac596c9a71 [poincare] Use reference in replaceSymbolWithExpression 2018-08-29 15:37:49 +02:00
Léa Saviot
4dd89ac53e [poincare] Add default implementation to simplificationOrderSameType
It is the previous StaticHierarchy::simplificationOrderSameType
2018-08-24 16:22:12 +02:00
Léa Saviot
8d31969108 [poincare] Add Roots parsing 2018-08-21 17:59:07 +02:00
Émilie Feral
cd32e15cd9 [poincare] ExpressionNode::denominator() has to return an
UninitializedExpression
2018-08-17 17:14:32 +02:00
Émilie Feral
b85ad1b276 [poincare] Fix ExceptionExpressionNode, AllocationFailure and
UninitializedExpressionNode
2018-08-17 14:28:55 +02:00
Léa Saviot
942e1a8f25 [poincare] TreeNode::parent() should never return nullptr 2018-08-14 17:53:32 +02:00
Léa Saviot
5d9e69dedc [poincare] Remove Tree constructors that use nullptr as parameter 2018-08-14 14:58:47 +02:00
Émilie Feral
67f4c3de77 [poincare] Expression: methods that should return an Expression HAVE to
be implemented on Expression and not on ExpressionNode in order to copy
the returned Expression.
2018-08-14 13:41:45 +02:00
Léa Saviot
db4a91716f [poincare] Fix some missing copy 2018-08-13 17:28:06 +02:00
Léa Saviot
80c7cf0f82 [poincare] Expression::simpleShallowReduce 2018-08-13 17:27:01 +02:00
Émilie Feral
a78a362ba6 [poincare] Fix expression 2018-08-09 16:15:24 +02:00
Émilie Feral
0b2b6c11cc [poincare] Fix Expression and ExpressionNode 2018-08-09 16:10:59 +02:00
Émilie Feral
fef796f82f [poincare] Make methods returning an expression copy const 2018-08-09 10:52:04 +02:00
Émilie Feral
86abaac44f [poincare] Change name: cloneDenominator->denominator 2018-08-08 17:45:36 +02:00
Léa Saviot
a562c41f28 [poincare] TreeByValue's add, remove, etc. methods are InPlace 2018-08-08 15:52:43 +02:00
Émilie Feral
cb4bb4f8f0 [poincare] Engine-->Helper and break LayoutHelper into LayoutHelper and
SerializationHelper
2018-08-08 14:00:52 +02:00
Romain Goyet
c29afba2bd [poincare] Move UndefinedReference to Undefined 2018-08-07 17:20:57 +02:00
Émilie Feral
cbbcd957a1 [poincare] Correct various headers 2018-08-07 16:09:32 +02:00
Émilie Feral
e769af8979 [poincare] One only ghost node for all tree types 2018-08-07 11:53:57 +02:00
Léa Saviot
7931d9ebfa Revert "[poincare] Rename addChildTreeAtIndex -> addChildAtIndex"
This reverts commit afd01f34e1.
2018-08-03 16:02:56 +02:00
Léa Saviot
afd01f34e1 [poincare] Rename addChildTreeAtIndex -> addChildAtIndex 2018-08-03 15:01:10 +02:00
Léa Saviot
caa12ec49e [poincare] Ghost nodes 2018-08-03 11:20:30 +02:00
Émilie Feral
05ba66cd21 [poincare] Correct Expression manipulation 2018-08-02 18:15:46 +02:00
Émilie Feral
54f9ea2d46 [poincare] Redesign of Expression: first attempt 2018-08-02 15:46:31 +02:00