Commit Graph

1406 Commits

Author SHA1 Message Date
Léa Saviot
be62c3c433 [poincare] Add methods to layouts 2018-07-06 11:36:58 +02:00
Léa Saviot
fa8da9b238 [poincare] Clean LayoutNode 2018-07-05 18:02:47 +02:00
Léa Saviot
40c8271af8 [poincare] TreeNode::addChild->addChildTree 2018-07-05 18:02:20 +02:00
Léa Saviot
a82d72fff8 [poincare] LayoutNode::replaceChild 2018-07-05 17:43:49 +02:00
Léa Saviot
6518fd3f47 [poincare] LayoutReference::replaceWithJuxtapositionOf 2018-07-05 15:18:15 +02:00
Léa Saviot
279e04bdd9 [poincare] LayoutNode::equivalentCursor 2018-07-05 14:56:01 +02:00
Léa Saviot
8a3be2bac3 [poincare] LayoutReference::deleteBeforeCursor 2018-07-05 14:26:44 +02:00
Léa Saviot
48aac1c908 [poincare] LayoutCursor::insertText 2018-07-05 11:34:49 +02:00
Léa Saviot
401aa39e26 [poincare] Fix LayoutCursor 2018-07-05 11:34:07 +02:00
Léa Saviot
9e1b7792f7 [poincare] LayoutNode::hasText 2018-07-05 11:08:34 +02:00
Léa Saviot
d1bdc7e2d5 [poincare] Fix tree retain count 2018-07-05 10:26:10 +02:00
Léa Saviot
07e7c3279d [poincare] Put back integer layout creation 2018-07-05 10:25:53 +02:00
Léa Saviot
2eba0825d2 [poincare] Translate methods to new tree structure 2018-07-04 11:53:46 +02:00
Léa Saviot
6a77da86f7 Better handling of TreeRef to nullptr 2018-07-04 09:54:34 +02:00
Léa Saviot
e7b2589ec8 [poincare] Add LayoutCursor::baseline() 2018-07-03 18:44:07 +02:00
Léa Saviot
f4ffa06add [poincare] Add LayoutCursor::cursorHeight() 2018-07-03 18:39:06 +02:00
Léa Saviot
880c3e59de [poincare] Continue removing layouts 2018-07-03 18:29:08 +02:00
Léa Saviot
f579e95815 [poincare] Start removing ExpressionLayout 2018-07-03 17:33:06 +02:00
Léa Saviot
a5ebab4bc1 [poincare] Continue adapting LayoutField 2018-07-03 14:56:15 +02:00
Léa Saviot
d0304d4a83 LayoutField 2018-07-03 13:52:33 +02:00
Léa Saviot
049cf772e2 [poincare] Adapt CharLayoutNode and HorizontalLayoutNode 2018-07-03 10:02:29 +02:00
Léa Saviot
d53abf5bf1 [poincare] Remove warning on unused variable 2018-07-02 17:37:15 +02:00
Léa Saviot
f3baee9dd0 [tree] Move tree files to Poincare 2018-07-02 17:20:30 +02:00
Émilie Feral
bb3a1a4ff1 [poincare] Expression: fix comment 2018-06-12 15:05:30 +02:00
Émilie Feral
67cddf554d Merge branch 'lea-statistics' into upgrade-1.6.0 2018-06-12 10:25:54 +02:00
Émilie Feral
b75bd957fb [solver] Fix memory leak: the static hierarchy and dynamic hierarchy
used to clone the operands given as parameters.
2018-06-11 18:08:01 +02:00
Léa Saviot
b8c74835de [poincare] Parse regression symbols: X1, Y1, X2, ... 2018-06-11 13:58:25 +02:00
Léa Saviot
79435ff3fb [apps/stats] Compute the number of values to fill in with the formula 2018-06-11 13:58:25 +02:00
Léa Saviot
a49c1b6154 [apps/stats] Series context 2018-06-11 13:58:25 +02:00
Léa Saviot
7491277713 [apps/poincare] Add V1, N1, V2, N2, ... symbols to lexer 2018-06-11 13:58:25 +02:00
Émilie Feral
797cf0fe72 [poincare] Extrema/Root solver: fix sqrt(x)= 0 2018-06-07 14:46:02 +02:00
Émilie Feral
4b007ef32c [poincare] Add a method on expression to know if the expression is equal
to its approximation
2018-06-07 13:46:19 +02:00
Émilie Feral
bc33b10368 [poincare] Move maximum/roots solver from CartesianFunction to
Poincare::Expression
2018-06-07 13:46:19 +02:00
Émilie Feral
fccebdcc06 [poincare] Move maximum/roots solver from CartesianFunction to Poincare::Expression (part I) 2018-06-07 13:46:19 +02:00
Émilie Feral
24766c8ede [poincare] getPolynomialCoefficients return reduced polynomial coefficients 2018-06-07 13:46:18 +02:00
Émilie Feral
80cac694b0 [poincare] Matrix: create method rank 2018-06-07 13:46:18 +02:00
Émilie Feral
7ebc0cc7a3 [poincare] Re-implement determinant and inverse on Matrix to use
rowCanonize
2018-06-07 13:46:18 +02:00
Émilie Feral
6dafa009f4 [poincare] Add method Matrix::rowCanonize which row canonize in-place 2018-06-07 13:46:18 +02:00
Émilie Feral
ace75e6ead [solver] Move Poincare::Equal::solve() to Solver app to consider system
instead of single expression
2018-06-07 13:46:18 +02:00
Émilie Feral
0562540ce8 [poincare] First version of a method 'solve' on Equal 2018-06-07 13:46:18 +02:00
Émilie Feral
85fcc9c705 [poincare] Create the method getPolynomialCoefficients on Expression 2018-06-07 13:46:18 +02:00
Émilie Feral
1cac2693c3 [poincare] Implement getVariables on Expression 2018-06-07 13:46:18 +02:00
Émilie Feral
60cb3bbc68 [poincare] Add Equal class 2018-06-07 13:46:17 +02:00
Émilie Feral
d11967f41a [poincare] Fix CharLayout: avoid adding multiplication sign between Sto
and another expression
2018-05-24 14:49:00 +02:00
Léa Saviot
8240d3d0df [poincare] Fix layout engine buffer access
Change-Id: I8db088bc036456a0524f1115517da1c6459a829d
2018-05-17 14:30:08 +02:00
Léa Saviot
c2d273bba5 [escher/poincare] ExprLayoutField cannot have more than 152 descendants
If the number of layouts could be infinite, we would have memory
problems. A Layout uses at least one char when being serialized, so we
use the same limit as the char limit in TextField.

Change-Id: Ib8f9c05d04a4dde5b6ca96a732e3e4175dd65b9c
2018-05-16 18:37:02 +02:00
Léa Saviot
8c275ca2b6 [poincare] Remone unused function ExpressionLayout::insertLayoutAtCursor
Change-Id: I5906146998229641976d8a4fe3fd16c56f060085
2018-05-16 18:37:02 +02:00
Léa Saviot
96310c75c8 Revert "[poincare] Finer addition of parenthesis when serializing fraction"
This reverts commit a84686d262.

The reverted commit created serialization errors. For instance,
the layout 1/(2^(3) 3) , without the arenthesis, would serialize to
1/(2^3) * 3.

Change-Id: I1ec9b03e84247c9cc30cc643784283d28e6402a7
2018-05-16 17:33:02 +02:00
Émilie Feral
67185e6d26 [poincare] Avoid parsing "prediction" prints "confidence" 2018-05-16 15:51:08 +02:00
Émilie Feral
bb8ab2a42e Merge branch 'saisie-jolie' into master-merge-saisie-jolie 2018-05-16 11:28:07 +02:00