Laury
745099842a
[poincare] Fixed two serious bugs in sequences simplification
2022-04-30 19:12:54 +02:00
Yaya-Cout
169fb7404e
Fix spelling ( #128 )
...
* Fix spelling in .cpp files
* Fix spelling in all files
2022-01-20 17:21:35 +01:00
Émilie Feral
c5beb6fdd2
[app/sequence] Test: avoid duplicating sequence stores and ensure to
...
tidy it (empty the Poincare Pool) between quiz_cases
2020-11-04 15:58:42 +01:00
Arthur Camouseigt
bf0f6c7a33
[Global Context] Fixed rank approximation error for sequences
...
Change-Id: I29c0a55956aee8764e50650b229a49aa8a0f9336
2020-11-04 15:33:04 +01:00
Arthur Camouseigt
6a84ba2523
[global_context.cpp] Fixing sequence bug
...
u(n+2) = u(n+1) + u(n) + u(2)
u(0) = 2
u(1) = 2
Crashed because the global context was not checking if the sequence was
badly referencing itself
Change-Id: I97f694955e15518bb088db50deb761d7ee09d75f
2020-11-04 15:33:00 +01:00
Arthur Camouseigt
960335c330
[Sequences] Fixed a few crashes
...
Change-Id: Ib929bbae0f9ca06409706336ff799075e1288694
2020-11-04 15:32:59 +01:00
Arthur Camouseigt
51002066e9
[sequence] Fixed crash due to undefined sequence
...
Change-Id: Ie67ff4aa9a53eb8b04535e3b61737e11c9049316
2020-11-04 15:32:59 +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
9d6bab092f
[poincare/parser] Identifier is not already function -> symbol
...
We check the context: if an identifier is already a function, we
interpret it as such, otherwise it is a symbol.
This way, in the Equation app, x(x+1) is interpreted as x*(x+1)
2020-02-12 15:13:21 +01:00
Ruben Dashyan
c3cf5c1ef4
Rename UCodePointUnknownX to UCodePointUnknown
2020-02-12 15:13:15 +01:00
Ruben Dashyan
3183ca7d7e
Replace Poincare::Function unknown earlier (in Context)
2020-02-12 15:13:15 +01:00
Ruben Dashyan
c7f15385a6
[apps/shared/global_context] Remove ExpressionFromSymbolRecord and ExpressionFromFunctionRecord
2019-09-23 11:04:29 +02:00
Ruben Dashyan
abf5169edd
[apps/shared/global_context] Remove reduandant record verifications
...
Expression::ExpressionFromAddress already handles this.
2019-09-23 11:04:29 +02:00
Ruben Dashyan
2a28b16e9b
[apps/shared/global_context] Remove unused parameter in ExpressionForActualSymbol
2019-09-23 11:04:29 +02:00
Ruben Dashyan
ec9bf9b59b
Remove unused parameter of Poincare::Context::setExpressionForSymbolAbstract
2019-09-23 11:04:29 +02:00
Ruben Dashyan
5f9464a548
[apps] In Shared, move cartesian_function.* to continuous_function.*
2019-09-20 17:11:42 +02:00
Ruben Dashyan
df2897925b
Rename Shared::CartesianFunction to Shared::ContinuousFunction
2019-09-20 17:11:42 +02:00
Ruben Dashyan
70f96ee912
[apps/shared/global_context] Remove ExpressionFromRecord
2019-08-29 11:07:22 +02:00
Ruben Dashyan
84130236a8
[apps/shared/global_context] Inline SetExpressionForFunctionRecord
2019-08-29 11:07:22 +02:00
Ruben Dashyan
e385205992
[apps] VariableBoxController gets layouts through GlobalContext::LayoutForRecord
2019-08-29 11:07:21 +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
3c1e35ec04
[shared] Rename classes:
...
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-04-12 15:16:52 +02:00
Émilie Feral
58f9a59d6e
[ion] Move Storage extensions declaration in Storage class
2019-04-12 15:16:52 +02:00
Émilie Feral
ce4497fa25
[apps/sequence] Make controllers inherit from StorageFunction controllers when required
2019-04-12 15:16:52 +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
b44c5e6d05
[shared] Change name: StorageExpressionModel::expressionWithSymbol -->
...
expressionClone
2018-11-23 12:04:08 +01:00
Léa Saviot
0511f383d0
[apps] Add comment about variables that cannot overwrite functions
2018-11-23 12:04:06 +01:00
Léa Saviot
8b2c00d8ba
[apps/poincare] Forbid variable creation with same name as existing func
2018-11-23 12:04:06 +01:00
Léa Saviot
0670057f90
[apps/graph] Destroy variable record with same name when renaming func
2018-11-23 12:04:06 +01:00
Léa Saviot
bd52162b10
Fix typo
2018-11-23 12:04:04 +01:00
Émilie Feral
8770c9010a
[poincare] Create Constant inheriting from SymbolAbstrac
...
pi, e and i are not symbols anymore but constant
2018-11-23 12:04:04 +01:00
Léa Saviot
91d6955ddf
[apps] The apps displays a warning when storage is full
2018-11-23 12:04:04 +01:00
Léa Saviot
c2adbe28c5
[apps/global_context] Fix Pi evaluation
2018-11-23 12:04:02 +01:00
Léa Saviot
00dcffbc69
[apps] Return uninitialized exp if record type does not match exp type
...
In global context. This fixes the computation of a->a(a) in calculation,
which crashed.
2018-11-23 12:04:02 +01:00
Émilie Feral
23e9827524
[shared] GlobalContext: change name RecordBaseNameIsFree -->
...
SymbolAbstractNameIsFree
2018-11-23 12:04:01 +01:00
Léa Saviot
393bc6c233
[apps] Fix Function creation from Calculation
2018-11-23 12:04:01 +01:00
Émilie Feral
2cae9938fd
[shared] Fix GlobalContext
2018-11-23 12:04:01 +01:00
Émilie Feral
c51bef1e3d
[shared] StorageExpressionModel: add a method to get the Expression
...
without replacing symbols
2018-11-23 12:04:01 +01:00
Léa Saviot
5a9c0b1b84
[apps] GlobalCtxt::SetExpForFunctionRecord used in StorageCartesianFunction
2018-11-23 12:04:01 +01:00
Léa Saviot
97cba08b23
[apps] Clean GLobalContext
2018-11-23 12:04:01 +01:00
Léa Saviot
d869be7782
[apps/ion] Escapes cases when records/ strings are null
2018-11-23 12:04:01 +01:00
Léa Saviot
c95136c9b5
[apps] Fix Globalcontext::setExpressionForSymbol
2018-11-23 12:04:01 +01:00
Léa Saviot
c40ed0c2c0
[apps] Fix missing return statement
2018-11-23 12:04:01 +01:00
Léa Saviot
f9ce06cc91
[apps] Function metadata are stored in Storage
2018-11-23 12:04:00 +01:00
Léa Saviot
79e962f459
[poncare/apps] Move GlobalContext from Poincare to Apps::Shared
2018-11-23 12:04:00 +01:00