Léa Saviot
463b44f055
[poincare/nth_root_layout] isSquareRoot
2020-02-12 15:13:15 +01:00
Léa Saviot
a233b02623
[apps/regression] Better coef initialisation for trigonometric_model
...
It improves the trigonometric fit of
x = {0.0, 0.975, 1.97, 2.945, 3.971, 4.887, 5.924, 6.964, 7.979, 8.974, 9.998};
y = {-23.784, -23.322, -28.322, -18.422, -4.813206, 7.146241, 16.631, 16.632, 9.209189, -6.050863, -19.659};
2020-02-12 15:13:15 +01:00
Léa Saviot
0055a59c75
[apps/banner_view] Fix minimalSizeForOptimalDisplay
...
Should not use m_frame as it may not be set properly. By default, a
banner view wants to take the whole screen width
This fixes the following scenario :
Draw the polar curve r=12. When navigating from the tab to the graph,
the curve was visibly redrawn because the banner view height was not
computed properly.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
491a93d8f1
[apps/calculation/edit_expression_controller] Access view more directly
2020-02-12 15:13:15 +01:00
Ruben Dashyan
59e6c9d324
[apps/calculation/edit_expression_controller] view() does not return nullptr
2020-02-12 15:13:15 +01:00
Ruben Dashyan
227c9a8d68
[apps/calculation/edit_expression_controller] Inline view() in header
2020-02-12 15:13:15 +01:00
Ruben Dashyan
7630460424
[apps/code] Add methods on lists to python toolbox catalog
2020-02-12 15:13:15 +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
Ruben Dashyan
b728fb8a1b
[poincare/symbol_abstract] No need to clone the expression for a Function
...
Already cloned in the global context.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
fc392d4e81
[poincare/function] Remove old TODO
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
dd80be026d
[poincare] Rename shallowReplaceReplaceableSymbols to deep...
2020-02-12 15:13:15 +01:00
Ruben Dashyan
47ed5814a2
[poincare] Remove hasReplaceableSymbols
2020-02-12 15:13:15 +01:00
Ruben Dashyan
7539a0dc37
[poincare/symbol] Remove SymbolNode::isUnknown unnecessary parameter
2020-02-12 15:13:15 +01:00
Ruben Dashyan
a52fd2c697
[apps/graph/graph_view] Do not draw the functions with undef expression
2020-02-12 15:13:15 +01:00
Ruben Dashyan
34aa27ea08
[apps/shared/continuous_function] Simplify templatedApproximateAtParameter
2020-02-12 15:13:15 +01:00
Ruben Dashyan
5750d00574
[apps/shared] Remove redundant call to isCircularlyDefined
...
ExpressionModel::expressionReduced does already call isCircularlyDefined
and returns undef if true.
The isCircularlyDefined method is then made private.
2020-02-12 15:13:15 +01:00
Ruben Dashyan
9480bcacd5
[apps/*/expression_model] Make expressionAddress private
2020-02-12 15:13:15 +01:00
Léa Saviot
78eea601c7
[ion/device] Prevent the user from leaving DFU during software download
...
We prevent the use of the Back key to leave DFU after a flash erase
operation. This way, we prevent the user from interrupting a software
download. After every software download, the calculator resets, which
unlocks the "exit on pressing back"
2020-02-12 15:13:15 +01:00
Léa Saviot
0f52335183
[apps/code] Fix syntaxic coloration
...
This fixes the coloration of:
"123\n"+1
"\n\n"+1
For strings, lex->vstr.len gave the wrong value because it had already
translated escaped chars, so "\n" would be one char long.
2020-02-12 15:13:15 +01:00
Romain Goyet
d14638163a
[docs] Cleanup
2020-01-22 08:43:41 -05:00
Émilie Feral
de603befc5
[ion] main_sdl: Update the static sNeedsRefresh when actually refreshing the
...
screen
2020-01-13 15:44:44 +01:00
Léa Saviot
e1881d7b8b
[build/scenarion] Fix commands for scenario creator and logger
2020-01-07 13:50:02 +01:00
Léa Saviot
f1f4e43159
[ion/console] Default ion sources have console_stdio, not _display
2020-01-07 13:50:02 +01:00
Émilie Feral
f68ec6a28d
[apps] VariableBoxController: fix the maximal number of displayed cells
2020-01-06 16:26:42 +01:00
Léa Saviot
00d28108fb
[apps] Fix i18n to be able to build standalone apps
...
Example failing build: make PLATFORM=simulator EPSILON_APPS=regression
2020-01-06 15:15:49 +01:00
Ruben Dashyan
389fbbca3a
[python/port] Support for unicode strings
2020-01-06 15:15:19 +01:00
Léa Saviot
57ceda5ac0
[bench] USBPlugged command
2020-01-06 14:31:37 +01:00
Léa Saviot
849b9009d2
[apps/var_box_controller] Fix k_maxNumberOfDisplayedRows computation
2020-01-06 14:18:35 +01:00
Léa Saviot
fd63f70f6d
[apps/variable_box_controller] Fix memoization
...
There was a broken assertion:
Create at least 7 functions
Go to the calculation app
Open the variable box and delete the last function
2020-01-06 14:18:35 +01:00
Émilie Feral
f3c6aab669
[apps/calculation] HistoryViewCell: when reloading the entire table due
...
to a cell selection, the cell used for the selected row might change. We
thereby have to update the selected cell once the table has been
reloaded.
This fixes the following bug: add 5 times the calculation "12.2". Go up,
the selected expression is the left one instead of the right one.
2020-01-06 14:07:20 +01:00
Émilie Feral
6a5708a562
[apps/shared] ScrollableExactApproximateExpressionsView: when only the
...
right expression is displayed, prevent from selecting the left
expression.
This fixes the following bug: add '1' to the calculation store, select
the output expression and go to the left. The selection is now on an
invisible cell.
2020-01-06 14:07:20 +01:00
Émilie Feral
588c05f6b4
[ion] Reset: Add memory barriers before/after calling for a core reset:
2019-12-23 11:52:00 +01:00
Émilie Feral
9fca8e8b8b
[ion] Reset: factorize cache disabling
2019-12-23 11:52:00 +01:00
Émilie Feral
7b7447b110
[ion] N0110 cache: clean isb/dsb calls
2019-12-23 11:52:00 +01:00
Émilie Feral
934e2c8aeb
[poincare] Change name IntegerApproximationIfPossible --> PositiveIntegerApproximationIfPossible
2019-12-23 09:26:18 +01:00
Émilie Feral
07ecc119ab
[poincare] Fix gcd and lcm approximations
2019-12-23 09:26:18 +01:00
Émilie Feral
c2f86e0806
[poincare] Add tests on lcm and gcd approximations
2019-12-23 09:26:18 +01:00
Émilie Feral
053fb935e3
[apps] Change color of LED in power on self test: blue is too easily
...
confused with white
2019-12-20 14:04:56 +01:00
Léa Saviot
4e96a11a4c
[escher/responder] Clean commonAncestor method
2019-12-20 11:49:30 +01:00
Léa Saviot
0412a45cea
[escher/responder] Inline some methods
2019-12-20 11:49:30 +01:00
Romain Goyet
5b00192b67
[ion/device] Remove ad-hoc compiler optimizations
...
Since we hand-specify which regs/regs.h functions shoudl be inlined, we
don't need to depend on specific compiler optimization levels.
2019-12-20 09:41:43 +01:00
Romain Goyet
d0660b6543
[ion/device] Force inlining compile-time bit ranges
...
Most of the time register operations can be optimized to a single
assembly instruction. That being said, aggressive -Os optimization can
lead the compiler to think that factorizing calls to setBitRange is a
good idea.
But we really want register operations to be inlined (and therefore
optimized as a single instruction), so we enforce inlining setBitRange
and REGS_FIELD macros.
2019-12-20 09:41:43 +01:00
Romain Goyet
ae8c111da5
[ion] Prevent duplicating SFLAGS
...
Using $(sort) in the Makefile has the side effect of removing duplicates
2019-12-20 09:41:43 +01:00
Romain Goyet
2c7a26103b
[ci] Use a recent ARM GCC toolchain
2019-12-19 21:46:21 -05:00
Émilie Feral
e13425d231
[apps] Add comment about LED color in Dutch exam mode
2019-12-19 15:52:45 +01:00
Émilie Feral
0254266803
[ion] ExamMode: add comment
2019-12-19 15:52:45 +01:00
Émilie Feral
3454265d7e
[ion] ExamMode: change firstOneBitInByte name to
...
numberOfBitsAfterLeadingZeroes and add comment
2019-12-19 15:52:45 +01:00
Émilie Feral
73673384ae
[ion] Avoid unclear, over-optimized computation in modulo 3
2019-12-19 15:52:45 +01:00