Commit Graph

3211 Commits

Author SHA1 Message Date
Léa Saviot
3de7e4daab [apps/regression] Fix bannerView
For data
0 0
1 2
2 6
3 12
4 20
5 30
6 42
7 56
and square regression, the coefficient c is not fully displayed
2019-06-14 09:31:46 -04:00
Léa Saviot
a886c0fb32 [apps/shared] Share PadWithSpaces method 2019-06-14 09:31:46 -04:00
Léa Saviot
78bdd0e04b [apps/statistics] Fix banner view
Scientific mode, Data:
10 - 1
20 - 5
30 - 4
40 - 3
50 - 1
Display the histogram, there are problems in the banner view
2019-06-13 10:37:47 -04:00
Léa Saviot
1e64db68ef [apps/solver] Fix string length computation
The layout for delta=b^2*4ac did not appear properly
2019-06-13 08:50:45 -04:00
daffyb
d7333e6585 Update base.fr.i18n
some e become é
2019-06-12 15:55:27 +02:00
daffyb
278c8a5cc9 Update base.fr.i18n
"Numéro serie" >>> "Numéro série"
2019-06-12 15:54:10 +02:00
Ruben Dashyan
5ee130a959 [apps/code/editor_controller] Fix backspace event handling
If there are only spaces on the left of the cursor, then a backspace
should remove two spaces (or one if there is only one of it). The number
of spaces was miscomputed.
2019-06-05 18:15:48 +02:00
Ruben Dashyan
9a63be7ac6 [apps/code] Fix PythonToolbox
"kandinsky module function prefix" did insert "kandinsky.function"
instead of "kandinsky.\x11"
2019-06-05 18:15:48 +02:00
critor
1ef0e4054d encoding fix 2019-05-31 08:00:15 -04:00
critor
ec40cdd347 Fixed german special characters
Now that special unicode characters are supported, when appropriate, replaced occurrences of the 'ae', 'oe', 'ue', and 'ss' digrams with the proper character.
2019-05-31 08:00:15 -04:00
Ruben Dashyan
a36ea6d1e3 [apps/regression] Use a new helper to compute linear regression coefficients 2019-05-29 11:27:30 +02:00
Ruben Dashyan
2c21055a0f [apps/regression/model/exponential_model] Explicit fit 2019-05-29 11:27:30 +02:00
Ruben Dashyan
5672853511 [apps/regression] Add tests about exponential regression 2019-05-29 11:27:30 +02:00
Ruben Dashyan
f1a6067027 [apps/code/catalog.*.i18n] arctan -> atan 2019-05-27 15:51:47 +02:00
Émilie Feral
a0a93a1287 [regression] GraphController: reinitialize the selected series when
displaying graph if the current selected series has been removed
2019-05-09 16:28:36 +02:00
Émilie Feral
c1c280762f [regression] Add an assertion on the number of entries of matrices used
in models
2019-05-03 15:54:22 +02:00
Émilie Feral
9a411874ee [code] Console: when displaying results, do not split in lines in middle
of code points. Otherwise, this triggers crashes when manipulaping the
text (removing code point for instance)
2019-05-03 15:54:22 +02:00
Émilie Feral
93b81cb26c [poincare] Tests: fix build 2019-05-03 15:54:22 +02:00
Émilie Feral
8c2f8a9aea [calculation] DisplayOutput: avoid to recursively scan the expression
multiple times instead of one.
2019-05-03 15:54:22 +02:00
Émilie Feral
cbbb827532 [poincare] Clean recursive tests on expression (isApproximate, IsRandom,
IsMatrix etc)
2019-05-03 15:54:22 +02:00
Émilie Feral
7f373a5c3c [calculation] Calculations involving matrices display only approximate
results and should not toggle the exact output.
2019-05-03 15:54:22 +02:00
Léa Saviot
f5cdf95bc5 [apps/banner_view] Replace assert with escape case 2019-05-03 15:54:22 +02:00
Léa Saviot
28133f378e [apps] Remove wrong withinTemporarySelection escape cases
Scenario:
Sequence app, add new sequence, go on its name, backspace: the cell on
the left of Add new sequence is selected, but it should not
2019-05-03 15:54:22 +02:00
Ruben Dashyan
4d4adc5873 [apps/sequence/graph] Replace negative cursor abscissa by 0 2019-05-03 15:54:22 +02:00
Émilie Feral
a48bec14d2 [calculation] Fix scroll on calculation heigher than the screen.
Changing the selectedSubviewType reloads the selection on the cell so we
need to scrollToSubviewOfTypeOfCellAtLocation afterwards.
2019-05-03 15:54:22 +02:00
Émilie Feral
3168ec14c3 [calculation] HistoryViewCell: fix layoutSubviews to fix weird scrolling
When successively adding calculations 0.2 and int(x*exp(-4x), 0,99) the
reloadScroll would fail
2019-05-03 15:54:22 +02:00
Léa Saviot
a6cf1498da [apps/text_field_delegate_app] default XNT() is 'x' 2019-05-03 15:54:22 +02:00
Léa Saviot
d97d5d40f5 [apps/cartesian_function] Fix derivative name display
Scenario: f(x) = x, go to the Values tab of the Graph app, display the
derivative, there is a roblem with UTF8
2019-05-03 15:54:22 +02:00
Ruben Dashyan
e53b0e6bba [apps/shared] Clean CurveViewCursor coordinate getters 2019-05-03 15:54:22 +02:00
Ruben Dashyan
0e1c1a017d [apps] Implement TextFieldDelegate methods in GraphControllers 2019-05-03 15:54:22 +02:00
Ruben Dashyan
0f98face6a [apps] Define InteractiveCurveViewController::selectedCurveIndex 2019-05-03 15:54:22 +02:00
Ruben Dashyan
3d71397949 [apps/shared] XYBannerView contains a TextField 2019-05-03 15:54:22 +02:00
Ruben Dashyan
633dfaf043 [apps/graph] Replace magic numbers 2019-05-03 15:54:21 +02:00
Ruben Dashyan
5ff19a2506 [apps] Define Font, Text/BackgroundColor BannerView static methods 2019-05-03 15:54:21 +02:00
Ruben Dashyan
339258a29d [apps/shared] Add LineSpacing to BannerView 2019-05-03 15:54:21 +02:00
Ruben Dashyan
26d59bbd74 [apps/shared] Simplify BannerView methods 2019-05-03 15:54:21 +02:00
Ruben Dashyan
4d640e2916 [apps] XYBannerView: prepare constructor so the class may contain TextField 2019-05-03 15:54:21 +02:00
Ruben Dashyan
ba6282be45 [apps/shared] Remove InteractiveCurveViewController::didEnterResponderChain
In order to avoid reloading after Ion::Events::Toolbox/Var, but only in
viewWillAppear.
The previous behavior was masking a bug in
Regression::GraphController::viewWillAppear where the cursor could be
moved after reloading the bannerView.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
a8650f7191 [apps/shared] SimpleInteractiveCurveViewController inherits from TextFieldDelegate 2019-05-03 15:54:21 +02:00
Ruben Dashyan
7b5c891f44 [apps/shared] Clean InteractiveCurveViewController::handleEvent 2019-05-03 15:54:21 +02:00
Ruben Dashyan
94cf542ba3 [apps] Factorize InteractiveCurveViewController::moveCursorVertically 2019-05-03 15:54:21 +02:00
Ruben Dashyan
f6ceae3b8b [apps] Factorize SimpleInteractiveCurveView::moveCursorHorizontally 2019-05-03 15:54:21 +02:00
Ruben Dashyan
67f9f79322 [apps] Implement InteractiveCurveViewController::isCursorVisible
It was a pure virtual method implemented in derived classes
  Shared::FunctionGraphController,
  Regression::GraphController.
InteractiveCurveViewRange does not need anymore to hold CurveViewCursor
* m_cursor.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
8629254d9a [apps] Remove Shared::InteractiveCurveViewController::displayTop/BottomMarginRatio
and replace it by the existing cursorTop/BottomMarginRatio.
There was absolutely no reason to use different margin values.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
8658538938 [apps/shared] Clarify InteractiveCurveViewController::k_viewHeight constexpr 2019-05-03 15:54:21 +02:00
Ruben Dashyan
d8f97d62a4 [apps] Factorize Shared::InteractiveCurveViewController methods
cursorBottomMarginRatio(), displayBottomMarginRatio(),
estimatedBannerHeight() and k_viewHeight moved to
Shared::InteractiveCurveViewController from derived classes.

estimatedBannerNumberOfLines() moved from
Shared::FunctionGraphController to
Shared::InteractiveCurveViewController and implemented in
Regresssion::GraphController.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
e32419ce63 [apps/shared/interactive_curve_view_controller] InteractiveCurveViewRangeDelegate methods made private 2019-05-03 15:54:21 +02:00
Ruben Dashyan
0b2ab14ced [apps/shared] Fix a typo in FunctionGraphController
Introduced in commit
[shared] Factorize GraphController::initCursorParameters of Graph and Sequence
2019-05-03 15:54:21 +02:00
Ruben Dashyan
e13651f6fb [apps] Remove Shared::InteractiveCurveViewController::initRangeParameters virtual method 2019-05-03 15:54:21 +02:00
Ruben Dashyan
51bd3312f5 [apps/shared] Clean FunctionGraphController::initRangeParameters()
The method is exactly called once, by
InteractiveCurveViewController::viewWillAppear, which also calls
initCursorParameters afterwards, which in turn calls
selectFunctionWithCursor. Hence the removed lines were redundant.
2019-05-03 15:54:21 +02:00