Commit Graph

36 Commits

Author SHA1 Message Date
Léa Saviot
176d55b7fa [apps/expression_model] Fix text() implementation 2020-02-18 10:06:36 +01:00
Léa Saviot
a3a1f86f8d [apps] Add context parameter to fix tests 2020-02-12 15:13:21 +01:00
Léa Saviot
756eeeb2d8 [poincare/parser] Add context 2020-02-12 15:13:21 +01:00
Léa Saviot
f402f514a7 [apps/expression_model] Fix memoization of circularity
Scenario f(x)=cf(f(0)) in graph
2020-02-12 15:13:18 +01:00
Ruben Dashyan
a3053acac4 [apps/shared/expression_model] Add TODOs for later 2020-02-12 15:13:15 +01:00
Ruben Dashyan
c3cf5c1ef4 Rename UCodePointUnknownX to UCodePointUnknown 2020-02-12 15:13:15 +01:00
Émilie Feral
ccf848a9eb [poincare] Add test: do not expand multinome when reduction target is
System
2019-11-21 09:47:16 +01:00
Ruben Dashyan
cc1d51f331 [apps/shared/expression_model] Substitute Expression::replaceSymbolWithExpression for replaceUnknown
since the latter calls the former anyway.
2019-09-27 17:57:29 +02:00
Léa Saviot
bd7860be93 [apps/expression_model] Use memoized isCircularlyDefined 2019-08-30 15:47:22 +02:00
Léa Saviot
2f59c90b8e [apps/expression_model] BuildExpressionFromText takes code point symbol
Not char symbol
2019-08-30 15:27:51 +02:00
Ruben Dashyan
f4f45caf19 [apps/shared/expression_model(_handle)] Mark setExpressionContent's Expression parameter as const 2019-08-29 11:07:22 +02:00
Ruben Dashyan
e03e7717e9 [apps/shared/expression_model] Mark updateNewDataWithExpression's Expression parameter as const 2019-08-29 11:07:22 +02:00
Ruben Dashyan
d20d0becc4 [apps/*/expression_model(_handle)] Remove unknownSymbol() 2019-08-29 11:07:21 +02:00
Ruben Dashyan
e98a474f2b [apps/shared/expression_model(_handle)] Do not create layout from unknown symbol 2019-08-29 11:07:21 +02:00
Ruben Dashyan
b1b309c0c4 [apps/*expression_model*] unknownSymbol is replaced in ExpressionModel 2019-08-29 11:07:21 +02:00
Léa Saviot
61cf762eef [poincare] Expression::ReductionContext 2019-08-08 16:29:37 +02:00
Léa Saviot
82d5ff7799 [ion/unicode] Clean special code points 2019-04-12 15:16:53 +02:00
Émilie Feral
3c1e35ec04 [shared] Rename classes:
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-04-12 15:16:52 +02:00
Émilie Feral
3ce406fde1 [shared] Clean unused classes 2019-04-12 15:16:52 +02:00
Émilie Feral
78e4c9066f [shared] Revert: Use Simplify instead of Reduce
To approximate an expression, it is more precise to
approximate its simplified form than its reduced form. Indeed, we want
to minimize the number of nodes in the expression before approximating.
For instance, a/b has fewer nodes than a*b^-1.
2018-12-18 09:39:43 +01:00
Émilie Feral
aa0b785f3d [shared] In models Equation, Sequence: the recorded expression does not
need to be beautified. Use Reduce instead of simplify
2018-12-17 09:41:14 +01:00
Émilie Feral
e112d6cf17 [apps] Shared: revert change on ExpressionModel. The memoized expression
should be reduced.
2018-11-28 13:58:36 +01:00
Léa Saviot
53e4a290f7 [poincare] Rename Expression:parse in Parse 2018-11-23 12:04:09 +01:00
Léa Saviot
ff20cb840d [apps/poincare] Expressions are not reduced before storing in Storage 2018-11-23 12:04:07 +01:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Émilie Feral
6ea91ecc4e [shared] ExpressionModel tidy pool of its Expression & Layout when
tidying
2018-09-06 17:03:27 +02:00
Léa Saviot
71c807b565 [poincare] Node->isDefined becomes !Node->isUninitialized 2018-08-14 16:40:12 +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
17e63a5b07 [shared] Fix references to Poincare 2018-08-10 13:18:46 +02:00
Léa Saviot
a3032e5ec3 Merge branch Tree into master 2018-07-19 14:01:02 +02:00
Émilie Feral
e61a408a0a [poincare] Get rid of AngleUnit::Default 2018-07-18 17:09:07 +02:00
Émilie Feral
b8af15f1ab [poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +02:00
Léa Saviot
f579e95815 [poincare] Start removing ExpressionLayout 2018-07-03 17:33:06 +02:00
Émilie Feral
9c316949bd [shared] Add comments on expression_model 2018-06-12 15:04:25 +02:00
Émilie Feral
b266c4cbd1 [shared] Make a parent class to Function: ExpressionModel (factorize
code for furtur model Equation)
2018-06-07 13:46:17 +02:00