Commit Graph

11243 Commits

Author SHA1 Message Date
Léa Saviot
9200e6062d [aps/solver] Reset the solution selection when leaving the view
Solve an equation that has solutions, select a solution, then go back
and change the equation. WHen you go to the solutions, the previous
solution is still selected, which is a little weird
2020-02-12 15:13:24 +01:00
Émilie Feral
fdb1417a02 [buil] emscripten toolchain: fix build with emmc version >= 1.39.5 2020-02-12 15:13:24 +01:00
Léa Saviot
bb2e8ad3c5 [apps/settings] Fix selection
Scenario: Got to About menu, press 6 on FCC ID then cancel, there are
two selected rows
This reverts 41e41b8d4 with a better fix
2020-02-12 15:13:24 +01:00
Léa Saviot
963edd5c35 [apps/solver] Fix addition of "=0" to equations
ShiftRight no longer puts the cursor at the end of the text/layout.
2020-02-12 15:13:24 +01:00
Léa Saviot
c5315189ac [apps/solver] Fix SolutionsController::k_maxNumberOfVisibleCells 2020-02-12 15:13:24 +01:00
Émilie Feral
de74aa7e59 [python] Enable PYSTACK for emscripten platform: this "fixes" bug
probably due to gc_collect (we suspect that transpiled C does not have
access to javascript variables preventing it from collecting all
required roots and leading to deleting objects prematuraly). Enabling
PyStack reduces the use of the heap and fixes the bug.
2020-02-12 15:13:24 +01:00
Émilie Feral
58acedfd34 [python] Test: inline code to avoid changing runCode behaviour 2020-02-12 15:13:24 +01:00
Léa Saviot
f7892d887f [poincare/tokenizer] Fix popToken with greek code points 2020-02-12 15:13:24 +01:00
Ruben Dashyan
a13ce5df49 [poincare/test/simplification] Test simplification of units 2020-02-12 15:13:24 +01:00
Léa Saviot
ae3fa46191 [escher/text_field] Fix handling of \n
The buffer length did not take into account the \n removal. In fact, we
could just remove the \n while also removing the empty code points,
which is what we do now.
2020-02-12 15:13:24 +01:00
Léa Saviot
4b996b333b [poincare/empty_context] Add missing file 2020-02-12 15:13:24 +01:00
Émilie Feral
0348db5d2e [escher] TextArea: fix drawStringAt action with negative length 2020-02-12 15:13:24 +01:00
Léa Saviot
eff0a26835 [apps/probability] Clean distribution_controller
Cleaner .cpp and fix the number of cells
2020-02-12 15:13:24 +01:00
Léa Saviot
96df307833 [poincare/test] Clean arguments of ProcessExpression 2020-02-12 15:13:24 +01:00
Léa Saviot
3b80b747b2 [test/solver] Add more tests 2020-02-12 15:13:24 +01:00
Léa Saviot
9102ba1381 [poincare/function] Fix shallowReduce to take into account symbComp 2020-02-12 15:13:24 +01:00
Léa Saviot
6a57b46f8d [poincare.test] Add tests on symbolic computation 2020-02-12 15:13:24 +01:00
Léa Saviot
c4beb5ec63 [apps/solver] Fix x10 display in approximate solutions
Scenario: Solve the equation cos(x) = 10 between -1000 and 1000, the x10
solution was badly displayed.
2020-02-12 15:13:24 +01:00
Léa Saviot
25ef10a0c5 [tests/solver] Add test on solver + user defined symbols 2020-02-12 15:13:24 +01:00
Léa Saviot
470b713226 [test] Fix tests for new SymbolicComputation parameter 2020-02-12 15:13:24 +01:00
Léa Saviot
72259f359c [apps/solver] Fix rowHeight for approximated solutions
User variables rows were too small
2020-02-12 15:13:24 +01:00
Léa Saviot
248e875192 [apps/solver] Always display used variables
Scenario: 3->x, 4->y, equation x+y+c=0 would not display the values of x
and y
2020-02-12 15:13:24 +01:00
Léa Saviot
424ee9fa15 [poincare] Add SymbolicComputation parameter to the reduction context
This way, in solver, we can reduce expression without expanding symbols
2020-02-12 15:13:24 +01:00
Léa Saviot
016a68d469 [apps/solver] Do not select "User variables used" row 2020-02-12 15:13:23 +01:00
Léa Saviot
db0e7f0d8b [apps/solver] Display user variables in the solutions 2020-02-12 15:13:23 +01:00
Léa Saviot
afbca672fd [escher/button_row_controller] Remove unused variable 2020-02-12 15:13:23 +01:00
Léa Saviot
7e7a37bf8e [apps/solver/solutions_controller] Code cleaning 2020-02-12 15:13:23 +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
Ruben Dashyan
844a28db7b [poincare/parsing/tokenizer] Token::Identifiers may contain Greek letters except pi 2020-02-12 15:13:23 +01:00
Ruben Dashyan
7964a2ae6a [poincare/unit][kandinsky/font] Use Greek capital letter omega as Ohm unit symbol 2020-02-12 15:13:23 +01:00
Ruben Dashyan
3308427dd4 [poincare/unit] Fix micro prefix symbol 2020-02-12 15:13:23 +01:00
Ruben Dashyan
7cfdadd394 [kandinsky/font] Define IndexForReplacementCharacterCodePoint 2020-02-12 15:13:23 +01:00
Ruben Dashyan
dd92450115 [kandinsky/font] Included header is in C language 2020-02-12 15:13:23 +01:00
Ruben Dashyan
009faa1e37 [kandinsky/font] Factor indexForCodePoint default return value 2020-02-12 15:13:23 +01:00
Émilie Feral
ed035ec3f7 [poincare] Unit: h --> hour 2020-02-12 15:13:23 +01:00
Émilie Feral
22bbe932c8 [poincare] Unit: no prefix for tonne unit 2020-02-12 15:13:23 +01:00
Émilie Feral
a78d34293c [app] Toolbox: add the unit menu 2020-02-12 15:13:23 +01:00
Léa Saviot
b29d014695 [escher/text_field] Fix removing of \n in insertTextAtLocation
Scenario: Copy a text with \n (for instance from a script), then paste
it in a script name -> if \n are replaed with \0 instead of just being
removed, there are problems with the extension
2020-02-12 15:13:23 +01:00
Romain Goyet
ad665fba73 [python] Add a simple test 2020-02-12 15:13:23 +01:00
Ruben Dashyan
179ce5d5d5 [ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter
to conform with unicode terminology
2020-02-12 15:13:23 +01:00
Ruben Dashyan
575b911da9 [ion/unicode] Split isDigit into isDecimalDigit, isBinaryDigit, isHexadecimalDigit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
d48a882f04 [poincare/parsing/tokenizer] Fix popWhile return value
for handling CodePoints whose char size is larger than one.
2020-02-12 15:13:23 +01:00
Ruben Dashyan
25a5fb1048 [poincare/parsing/tokenizer] popWhile tests 'didPop' condition only once 2020-02-12 15:13:23 +01:00
Ruben Dashyan
622673a0fa [poincare/parsing/tokenizer] Remove unused method 2020-02-12 15:13:23 +01:00
Ruben Dashyan
31c07e0a58 [poincare/parsing/tokenizer] Simplify popIdentifier 2020-02-12 15:13:23 +01:00
Ruben Dashyan
15a9137d14 [poincare/unit] Remove angstrom unit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
09e1c2eb8b [escher/text_input] insertTextAtLocation location parameter not const anymore 2020-02-12 15:13:23 +01:00
Ruben Dashyan
742ee475ea [escher/text_area] Fix typo 2020-02-12 15:13:23 +01:00
Ruben Dashyan
6da74ea3e1 [poincare/unit] Add prefixes for liter 2020-02-12 15:13:23 +01:00
Ruben Dashyan
c66ef8212a [poincare/unit] Do not output units with short-scale prefixes 2020-02-12 15:13:23 +01:00