Commit Graph

4977 Commits

Author SHA1 Message Date
Léa Saviot
e1e8e4c98e [poincare] Stop integral computation if evaluation if function is undef 2018-06-26 13:44:56 +02:00
Romain Goyet
3d74d52ec6 [python] Highlight minus-equal, plus-equal as operators 2018-06-20 11:22:32 +02:00
Romain Goyet
74330bb330 [python] Properly compute all token length 2018-06-20 11:22:32 +02:00
Léa Saviot
b8fbc35793 [emscripten] Fix float rouding errors when computing grid axis labels
Emscripten converts C++ floats to doubles, which produces rounding
errors. In the Graph application, when displaying y=sin(x), the ordinate
'1' displayed "10" instead, because the exponent of 1000f was wrongly
computed.
To prevent this, we add the -s PRECISE_F32=1 flag, which uses 32-bits
floating point values for floats.
See https://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#why-do-i-get-odd-rounding-errors-when-using-float-variables
2018-06-18 16:33:44 +02:00
Romain Goyet
4a7e4ee512 [emscripten] Add a Module.onDisplayRefresh callback 2018-06-18 10:08:01 +02:00
Émilie Feral
7df03ec762 [code] In lock-on-console mode: enable poping controllers on the stack
which are above the console controller
2018-06-13 13:23:46 +02:00
Émilie Feral
769bc1ad3c [code] In lock-on-console mode: Enable interrupting input loop and execution when clicking on 'home' or 'back' 2018-06-13 13:23:46 +02:00
Ecco
e304da5ee1 [emscripten] Removing trailing comma hack more obvious 2018-06-13 10:02:47 +02:00
Ecco
3d9748d172 [emscripten] Remove empty line 2018-06-13 10:02:47 +02:00
Claire Savinas
208f340993 Fix build using emsdk version sdk-1.37.40-64bit 2018-06-13 10:02:47 +02:00
Émilie Feral
3681a85da7 Makefile: Version 1.6.0 2018-06-12 17:27:17 +02:00
Léa Saviot
5270c7740b [escher] Fix cursor position when copy pasting 2018-06-12 16:55:01 +02:00
Émilie Feral
317e1f0389 [code] Enable interrupting an infinite input() loop when clicking on home 2018-06-12 16:52:12 +02:00
Léa Saviot
8e72a0fee6 [poincare] Fix LayoutEngine writeInBuffer stop conditions 2018-06-12 16:38:58 +02:00
Émilie Feral
bf0b80b0c0 [poincare] Tests: fix test on Expression::getVariables 2018-06-12 16:27:01 +02:00
Émilie Feral
d9afd64b67 [poincare] Fix tests on layout 2018-06-12 16:27:01 +02:00
Émilie Feral
b4e3143e76 [Kandinsky] Regular font: new capital delta 2018-06-12 16:27:01 +02:00
Léa Saviot
ae1482bcd4 [poincare] Fix Matrix::writeTextInBuffer 2018-06-12 16:25:01 +02:00
Léa Saviot
de47bf5486 [apps/reg] Fix dynamic view initialization 2018-06-12 16:24:30 +02:00
Léa Saviot
96909a0c21 [apps/reg] Fixing missing space 2018-06-12 15:51:13 +02:00
Léa Saviot
4e81684b08 [apps/stats] No need for special handling of the subview banner views
Just put them to nullptr.
2018-06-12 15:50:50 +02:00
Léa Saviot
acc49412f1 [apps/escher] EvenOddExpressionCell has left and right margins 2018-06-12 15:50:50 +02:00
Léa Saviot
a83ef756b3 [apps/stats/reg] Share Store methods 2018-06-12 15:50:42 +02:00
Léa Saviot
3e06764bb9 [apps/statistics] Fix histogram/box selection save in snapshot 2018-06-12 15:09:06 +02:00
Léa Saviot
3ac1569189 [apps/reg] Regression cursor has the curve color 2018-06-12 15:09:06 +02:00
Léa Saviot
173288dd91 [apps/shared] Fix variables buffer initialisation for getVariables 2018-06-12 15:09:06 +02:00
Léa Saviot
416a45c11b [apps/shared] Fix buffer size initialization 2018-06-12 15:09:06 +02:00
Émilie Feral
c5cc871841 [poincare] Expression::getLinearCoefficients: the constant coefficient
has to be reduced before returned
2018-06-12 15:05:48 +02:00
Émilie Feral
bb3a1a4ff1 [poincare] Expression: fix comment 2018-06-12 15:05:30 +02:00
Émilie Feral
4b40099a9e [solver] Clean equation store 2018-06-12 15:05:16 +02:00
Émilie Feral
11ba9a462d [solver] Clean equation 2018-06-12 15:04:51 +02:00
Émilie Feral
9c316949bd [shared] Add comments on expression_model 2018-06-12 15:04:25 +02:00
Émilie Feral
cb7bf4f623 [tests] Re-do scenari for Regression 2018-06-12 10:57:07 +02:00
Léa Saviot
afd81ebd10 [apps/stat/reg] Fix memory leak in Store Context 2018-06-12 10:54:26 +02:00
Émilie Feral
c24e2726fa [escher][apps] Get rid of duplicate overriden methods:
cumulatedHeightFromIndex, indexFromCumulatedHeight
2018-06-12 10:27:23 +02:00
Émilie Feral
67cddf554d Merge branch 'lea-statistics' into upgrade-1.6.0 2018-06-12 10:25:54 +02:00
Émilie Feral
e9c4485eeb Merge branch 'solver' into upgrade-1.6.0 2018-06-12 09:47:41 +02:00
Émilie Feral
9e345014d2 [code] Add EmptyChar in text for python event to position the cursor at
the right place after inserting text
2018-06-12 09:45:32 +02:00
Émilie Feral
52065c26ed [calculation] When the output text overflowed the buffer, parsing the
text returns nullptr. Handle this case here
2018-06-12 09:43:25 +02:00
Émilie Feral
b75bd957fb [solver] Fix memory leak: the static hierarchy and dynamic hierarchy
used to clone the operands given as parameters.
2018-06-11 18:08:01 +02:00
Léa Saviot
de5cc75ac3 [apps/stats/reg] Data not suitable message 2018-06-11 17:49:24 +02:00
Émilie Feral
031ca760c0 [solver] Fix brace: when there are the 'add equation' is not displayed
anymore, brace embrace all equations
2018-06-11 16:39:15 +02:00
Émilie Feral
aadec752cb [tests] Re-do test scenari because of the new home disposition 2018-06-11 16:20:40 +02:00
Léa Saviot
625e4dc5cf [apps/shared] Fix translation 2018-06-11 16:03:18 +02:00
Léa Saviot
3a4dab2898 [apps/reg] Fix Series title in calculation 2018-06-11 15:41:36 +02:00
Léa Saviot
a46a059f8b [apps/shared] Use better warning message 2018-06-11 15:26:55 +02:00
Léa Saviot
9ed4e55d57 [apps/shared] translation 2018-06-11 15:17:55 +02:00
Émilie Feral
4a6724115c [solver] Fix bug: when adding '=0' to an equation, force the cursor the
be at the end of the expression before adding '=0'
2018-06-11 13:58:42 +02:00
Émilie Feral
8340eb29d8 [poincare] Simplification: R(a) with a < 0 --> R(-a)*i 2018-06-11 13:58:42 +02:00
Émilie Feral
f8039fac32 [solver] Fix update of the button message between: 'Solve the equation'
and 'Solve the system'
2018-06-11 13:58:42 +02:00