Commit Graph

6922 Commits

Author SHA1 Message Date
Léa Saviot
61c1f6a7d4 [poincare] Stop simplif. if reducing children triggered an interruption 2018-11-23 12:04:07 +01:00
Léa Saviot
f94dc63d16 [apps] When renaming a function, check that the name is not reserved 2018-11-23 12:04:07 +01:00
Léa Saviot
2d20aacc89 [poincare/parser] Parser::IsReservedName 2018-11-23 12:04:07 +01:00
Léa Saviot
42c372b4b4 [poincare/parser] Static method checking if name is special identifier 2018-11-23 12:04:07 +01:00
Léa Saviot
b753619378 [poincare/parser] Rename Parser::currentTokenIsSpecialIdentifier 2018-11-23 12:04:07 +01:00
Léa Saviot
76aae9d478 [poincare/parser] Static method checking if name is reserved function 2018-11-23 12:04:07 +01:00
Léa Saviot
fb484bf941 [poincare] More elegant prevention of parsing "3=4>x" and "4<x=3" 2018-11-23 12:04:07 +01:00
Léa Saviot
d411ff292e [poincare] Do not parse 1>ans 2018-11-23 12:04:07 +01:00
Léa Saviot
44963179c7 [poincare] Store and Equal must be topmost expressions 2018-11-23 12:04:07 +01:00
Léa Saviot
e4c3589829 [apps] Fix display glitch in VariableBoxController 2018-11-23 12:04:06 +01:00
Léa Saviot
9dc5794d22 [poincare] Fix tests 2018-11-23 12:04:06 +01:00
Léa Saviot
17eaadb280 [poincare] Replace functions when replacing symbols iteratively 2018-11-23 12:04:06 +01:00
Léa Saviot
cb88dbc0a1 [poincare] Replacing iteratively only existing symbols 2018-11-23 12:04:06 +01:00
Léa Saviot
23895f40e2 [poincare] When storing a function, replace unknownX by user's variable 2018-11-23 12:04:06 +01:00
Léa Saviot
71ba760b71 [poincare] Remove duplicate simplification interruption check 2018-11-23 12:04:06 +01:00
Léa Saviot
58c995d63c [poincare] Symbol replacements limit for functions 2018-11-23 12:04:06 +01:00
Léa Saviot
84f960356c [poincare] Add limit on iterative replacement of symbols 2018-11-23 12:04:06 +01:00
Léa Saviot
7a3451e3cd [poincare] remove max recursion limit 2018-11-23 12:04:06 +01:00
Léa Saviot
755af81d65 [poincare] Fix tests 2018-11-23 12:04:06 +01:00
Léa Saviot
60656f3ecd [poincare] Add tests on circular variables definitions 2018-11-23 12:04:06 +01:00
Léa Saviot
4ede2f8b86 [poincare] Add recursion protection around Exp:getPolyReducedCoefs 2018-11-23 12:04:06 +01:00
Léa Saviot
ada8f5f3c4 [poincare] Replace symbols with their expressions iteratively
... not recursively.
2018-11-23 12:04:06 +01:00
Léa Saviot
5bba2e9528 [poincare] Protect from deep recursion in Expressio::approximateToEval 2018-11-23 12:04:06 +01:00
Léa Saviot
1dc18d9a50 [poincare] Put back Edition2D as default 2018-11-23 12:04:06 +01:00
Léa Saviot
de2b3c22fe [poincare] Use reduce instead of deepReduce in simplify 2018-11-23 12:04:06 +01:00
Léa Saviot
4b4376a41f [poincare] Catch interrupted "simplify" in Poincare::Store 2018-11-23 12:04:06 +01:00
Léa Saviot
cb678e370e [poincare] Escape when recursion too deep 2018-11-23 12:04:06 +01:00
Léa Saviot
54b2566b04 [poincare] Indent code to make it clearer 2018-11-23 12:04:06 +01:00
Léa Saviot
f7913fb744 [apps/calc] Fix history cell output copy 2018-11-23 12:04:06 +01:00
Léa Saviot
52d8192306 [apps] Changes names in ScrollableExactApproximateExpressionsView 2018-11-23 12:04:06 +01:00
Léa Saviot
667d373806 [poincare] Use deepreduce instead of reduce 2018-11-23 12:04:06 +01:00
Léa Saviot
07c2d6a95e [poincare] Interrupt simplification if current expression is matrix
Do not recursively check for matrices
2018-11-23 12:04:06 +01:00
Léa Saviot
f65b133b37 [poincare] use deepReduce instead of reduce 2018-11-23 12:04:06 +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
eea56488e6 [apps] Fix VarBoxController::viewDidDisappear parent method call order
Before, we tidied the memoization before calling the parent's
viewDidDisappear method. As the parent method needed some cell heights,
it used the VarBoxController memoization, thus re-creating layouts that
would stay in the pool after closing the app.

Scenario:
Go in the Graph app, create f(x) = 1, empty g(x) and h(x), create p(x)
and while editing go in the variable box controller, all the way down,
then hit the Home button.
2018-11-23 12:04:06 +01:00
Léa Saviot
861ba08198 Remove unneeded include 2018-11-23 12:04:06 +01:00
Léa Saviot
caacf63c8f Fix typo 2018-11-23 12:04:06 +01:00
Léa Saviot
a0e716c1ad [apps/eschr] Rename textFieldDidHandleEvent parameter textSizeDidChange 2018-11-23 12:04:06 +01:00
Léa Saviot
293300973b [escher] TextField::handleEventWithText escapes quicker with null text 2018-11-23 12:04:06 +01:00
Léa Saviot
56db3a484e [escher] Fix selection problem in SelectableTableView
Scenario that caused a problem: Go to Statistics, then "1", "Right",
"Right", "Right", OK. The cell does not draw itself as being edited, but
its right neighbour does.
2018-11-23 12:04:06 +01:00
Léa Saviot
c7635c5e4d [poincare] Encapsulate deepReduce in reduce 2018-11-23 12:04:06 +01:00
Léa Saviot
5d96a87bf3 [poincare] Store simplified expressions, not just reduced 2018-11-23 12:04:06 +01:00
Léa Saviot
13972caa80 [apps] Inline some code in variable_box_controller 2018-11-23 12:04:06 +01:00
Émilie Feral
1b2c810eb2 [poincare] Delete useless method in Number 2018-11-23 12:04:06 +01:00
Léa Saviot
0e5da52d3d [apps] Remove useless code in variable_box_controller.h 2018-11-23 12:04:05 +01:00
Léa Saviot
5113049d67 [escher] Color the expression in grey in variable box 2018-11-23 12:04:05 +01:00
Léa Saviot
823d31150e [poincare/parser] Catch error from function call 2018-11-23 12:04:05 +01:00
Léa Saviot
aea98de6ec [apps/escher] Fix "Clear" event handling in TextFieldWithExtension 2018-11-23 12:04:05 +01:00