Émilie Feral
75dc415e27
[poincare] Step I: add a parameter to approximation routines to indicate
...
if we're within a reduction routine
2020-11-04 15:58:40 +01:00
Arthur Camouseigt
fa0e8de0a9
[VariableBoxController] Changed the way sequences appear
...
Change-Id: I45a1cb01ab9c5aefd298c40050e69850a4cc5c71
2020-11-04 15:32:58 +01:00
Arthur Camouseigt
1d71a14d2c
[Context] Modifying context method signature for sequences
...
This allows sequences to be used in functions by calling u(x)
Change-Id: I336e84a19bf9b3dd0f2e435d1aaebda3c9e71ec8
2020-11-04 15:32:58 +01:00
Arthur Camouseigt
3dca515441
[VariableBox] Added sequences to the variable box
...
It is now possible to call the value of a defined sequence anywhere.
Change-Id: I1990e93c50f9add175b7ea274e07004ba63289e5
2020-11-04 15:32:58 +01:00
Léa Saviot
0e64e89496
[apps/solver] Do not use symbol context if no solution found
...
Still replace the functions
2020-02-12 15:13:23 +01:00
Émilie Feral
60048cb9a9
[poincare] Create a ContextWithParent that implements expressionTypeForIdentifier
2020-02-12 15:13:22 +01:00
Ruben Dashyan
ec9bf9b59b
Remove unused parameter of Poincare::Context::setExpressionForSymbolAbstract
2019-09-23 11:04:29 +02:00
Léa Saviot
4aa380516a
[poincare] VariableContext can only contain a Symbol, not a function
...
In the solver app, the equation x(x+1)(x+2)(x+3) would have the roots 0,
-2 and -3 because the parsed function "x applied to x+1" would be replaced
by the value 0 for the symbol x during the root finding algorithm.
2019-08-27 17:24:57 +02:00
Léa Saviot
dcb5a061e9
[apps/poincare] Clearer method names
2019-08-27 17:24:57 +02:00
Léa Saviot
61cf762eef
[poincare] Expression::ReductionContext
2019-08-08 16:29:37 +02:00
Émilie Feral
7b5f3c570d
[poincare] Change the way Expression are built
2019-02-21 11:29:35 +01:00
Émilie Feral
e80512f362
[poincare] Context::expressionForSymbol takes a boolean notifying that
...
we want a copy or not
2018-11-23 12:04:08 +01:00
Émilie Feral
55048ab907
[poincare] VariableContext::expressionForSymbol returns a clone of its
...
kept value to unable any modification of its value (without calling
setExpressionForSymbol).
All contexts::expressionForSymbol return new Expression that can be tempered with.
2018-11-23 12:04:08 +01:00
Léa Saviot
907eedd4bc
[poincare] Use SymbolAbstract in setExpressionForSymbol
2018-11-23 12:04:00 +01:00
Léa Saviot
6197ebd4c5
[poincare] SymbolAbstract is parent of Symbol and Function
2018-11-23 12:04:00 +01:00
Léa Saviot
a7a719df4a
[poincare] Handle functions in replaceSymbolWithExp and similar methods
2018-11-23 12:03:59 +01:00
Émilie Feral
ccbcf18811
[poincare] VariableContext holds an Expression instead of a Float<T>
2018-11-23 12:03:59 +01:00
Léa Saviot
31d3a04678
[poincare] setExpressionForSymbolName takes a symbol name
2018-11-23 12:03:58 +01:00
Émilie Feral
a6663f524f
[poincare] VariableContext hold a const char * instead of a char
2018-11-23 12:03:58 +01:00
Émilie Feral
5fcd6e6718
[poincare] Work with references when possible
2018-08-29 11:53:36 +02:00
Léa Saviot
71c807b565
[poincare] Node->isDefined becomes !Node->isUninitialized
2018-08-14 16:40:12 +02:00
Léa Saviot
5b53438f2c
[poincare] VariableContext
2018-08-10 10:19:06 +02:00
Émilie Feral
e61a408a0a
[poincare] Get rid of AngleUnit::Default
2018-07-18 17:09:07 +02:00
Émilie Feral
d94ed82ab8
[poincare] Create class Approximation<T> to avoid useless conversion
...
between Decimal and float/double
2018-07-18 16:32:50 +02:00
Émilie Feral
dd0bc491f6
[poincare] Replace Poincare::Complex by std::complex
2018-07-18 16:32:49 +02:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +01:00
Émilie Feral
b29ebcf154
[poincare] Fix bug in VariableContext: when the value put in x is not a
...
complex, we put NAN in x
Change-Id: I28e75fb407a285ae7451e80bb862279a2aa8ae3d
2017-11-21 15:49:50 +01:00
Émilie Feral
1d89a8602f
[poincare] Add a context to setExpressionForSymbols in Context
...
Change-Id: I68b768aec350b75bfcf54a5bede2f9b1cdff7e20
2017-11-17 15:45:11 +01:00
Émilie Feral
04df91df97
[poincare] Fix symbols and context
...
Change-Id: I0a4505d0e21b8865f1babc3c9bb5977b509e73fe
2017-11-17 14:24:48 +01:00
Émilie Feral
d5fc8d139f
[poincare] First version of Simplification with matrix (no tests yet!)
...
Change-Id: I28ad4750ad31995836b23725f7d715669fcb7ae2
2017-11-10 15:22:33 +01:00
Jacob Young
17ac54cad5
Use cmath in c++ files.
2017-10-13 18:08:15 +02:00
Émilie Feral
2b1bd5c191
[poincare] In context: clean setExpressionForSymbol
...
Change-Id: I13f51a6c84537be43de3b78de68e77fade502344
2017-09-22 13:21:55 +02:00
Émilie Feral
82e212e771
[poincare] Template for double
...
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
1964d61fdc
[libaxx] add cmath and use cmath instead of math.h when required
...
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
f73ddcd08f
[poincare] Evaluation return numerical matrix
...
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
bd094056e6
[apps/graph] Avoid storing weird x values in the local context
...
Change-Id: Iee751da03fb9c6cda2e77d2570e8af2aef5ed5da
2017-03-02 15:35:03 +01:00
Émilie Feral
dc7a629dfa
[poincare] Replace complex constructors by named constructors
...
Change-Id: I6aad82edfb1bd243c4537a48888655608b90eeb5
2017-02-20 09:39:25 +01:00
Émilie Feral
e5e9f7cc41
[poincare][apps] Make preferences a const object accessible from
...
anywhere (poincare and apps)
Change-Id: I49cc6bf940d1efeb6b153daac949ffcb23999a8d
2017-02-20 09:39:24 +01:00
Émilie Feral
69e46f4958
[poincare] Namespace Poincare
...
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
676bd46f33
[poincare] Expand numbers to complex numbers
...
Change-Id: I2e7cf5240e184da45b656ee4f121ad76aabfd1c7
2017-02-13 17:15:03 +01:00
Émilie Feral
42e4cf408d
[poincare] Enbale to evaluate expression in degrees or radian
...
Change-Id: I8b08e7fa93431817559a594a1ea03d4414f0c830
2017-02-06 16:30:48 +01:00
Émilie Feral
ae9117d180
[poincare] Merge XContext and NContext together
...
Change-Id: Idf99dc291a233a6d34f049031e04311b8fe17816
2017-01-27 12:02:37 +01:00