Commit Graph

1635 Commits

Author SHA1 Message Date
Romain Goyet
6d43b944b4 Use epsilon's name in build products 2018-02-02 14:30:35 +01:00
Romain Goyet
489b26e813 Re-organize and re-prefix the Makefile variables 2018-02-02 14:30:35 +01:00
Romain Goyet
06bfaafb3b [python] Add "input()" to the catalog 2018-02-01 14:10:26 +01:00
Romain Goyet
67f082f4e8 [emscripten] Use emterpreter
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Romain Goyet
fd7516f8ac [python] "input" now displays the provided prompt 2018-02-01 14:10:26 +01:00
Romain Goyet
0682d21a32 [python] Implement ExecutionEnvironment::input
By using a re-entrant RunLoop call
2018-02-01 14:10:26 +01:00
Romain Goyet
651d5715e4 [python] Adding mp_hal_input 2018-02-01 14:10:26 +01:00
Émilie Feral
441207f5e4 [apps] Graph: for all calculations -intersection, extremum and roots-, rather display 0 than 1E-14 2018-02-01 11:49:53 +01:00
Émilie Feral
cc4415b701 [apps] Graph: fix error in Intersection Graph banner view: the text was
truncated
2018-02-01 11:49:53 +01:00
Émilie Feral
a8fe8dc22e [apps] Calculation: input text stores in cache have to be checked again
when used as its length context dependent (because of 'ans' symbol)
2018-02-01 11:49:39 +01:00
Émilie Feral
53393524ef [apps] Calculation: do not display a syntax error when the textfield is
empty
2018-02-01 11:49:39 +01:00
Émilie Feral
470767340a [apps] Calculation: OK on an empty textfield re-do the last user input
kept in cache
2018-02-01 11:49:39 +01:00
Émilie Feral
f2db9f2065 [apps] Calculation: exact and approximate output can be equal even if
the exact output is not a rational: 1/2+i = 0.5+i
2018-01-30 19:14:42 +01:00
Émilie Feral
ed59909531 [apps] Calculation: avoid 1/400000 = 0.000003
Re-serialise the calculation approximate output with the right number of
significant digits before comparing the parsed expression with the exact
one
2018-01-30 19:14:42 +01:00
Émilie Feral
03c8b373f7 [apps] Calculation: update the equal sign view according to the
calculation outputs
2018-01-30 19:14:42 +01:00
Émilie Feral
9d6b2e3cad [apps] Calculation: add a method to test if the exact output and the
approximate output are equal
2018-01-30 19:14:42 +01:00
Émilie Feral
8027da6ca2 [i18n] Add the message "=" 2018-01-30 19:14:42 +01:00
Émilie Feral
d6215d4cc1 [apps] Shared: resize cross cursor 2018-01-30 18:53:28 +01:00
Émilie Feral
66401fc697 [apps] Shared: Correct CurveView to avoid 1-pixel errors 2018-01-30 18:53:28 +01:00
Émilie Feral
e6a33772fe [apps] Regression: alternate between round and cross cursor views 2018-01-30 18:53:28 +01:00
Émilie Feral
9cd50d8d9a [apps] Graph/Sequence: set different cursors for Sequence and Graph 2018-01-30 18:53:28 +01:00
Émilie Feral
b38fda1a1e [apps] Shared: create a round cursor view 2018-01-30 18:53:28 +01:00
Émilie Feral
95f0efaf9f [apps] Graph/Sequence: the function selected by the cursor has to be
save in the Snapshot to avoid weird selection when rebulding the app
2018-01-30 18:53:28 +01:00
Émilie Feral
c9b86d0c86 [apps] Shared: the cursor view own its size instead of the curve view 2018-01-30 18:53:28 +01:00
Émilie Feral
8ccb69f2e2 [apps] Graph: Change function colors 2018-01-30 18:53:28 +01:00
Émilie Feral
8891914716 [apps] Change the thickness of curves in graph views 2018-01-30 18:53:28 +01:00
Émilie Feral
72f3d1a88a [apps] Shared: Change the thickness of grid in Graph views 2018-01-30 18:53:28 +01:00
Émilie Feral
539ea44bd7 [apps] Fix unitialized read 2018-01-30 18:19:27 +01:00
Émilie Feral
89c201a7f7 [apps] Graph: create an IntersectionGraphController 2018-01-30 18:19:27 +01:00
Émilie Feral
7d69e59562 [i18n] Graph: add a message 'no intersection found' 2018-01-30 18:19:27 +01:00
Émilie Feral
9943afb7e1 [apps] Graph: add a method to get the intersection between 2 functions 2018-01-30 18:19:27 +01:00
Émilie Feral
35225d2b07 [apps] Graph: improve the root research algorithm 2018-01-30 18:19:27 +01:00
Émilie Feral
37c3f6189d [apps] Graph: create a RootGraphController 2018-01-30 18:19:27 +01:00
Émilie Feral
d1840dfe17 [apps] Graph: Change name:
ExtremumGraphController-->CalculationGraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
78c7d80319 [apps] Graph: algorithm to research function roots 2018-01-30 18:19:27 +01:00
Émilie Feral
4761a9acdd [apps] Graph: change name: brentAlgorithm->brentMinimum 2018-01-30 18:19:27 +01:00
Émilie Feral
29a2525b56 [apps] Clean 2018-01-30 18:19:27 +01:00
Émilie Feral
98ec845693 [apps] Graph: cheat for extremum on 0 2018-01-30 18:19:27 +01:00
Émilie Feral
6fecd091f4 [apps] Graph: add the maximum graph controller 2018-01-30 18:19:27 +01:00
Émilie Feral
6703fedf54 [apps] Graph: Improve Extremum Graph Controller (factorize more
functions in order to create Maximum Graph Controller more easily)
2018-01-30 18:19:27 +01:00
Émilie Feral
06462490cd [apps] Graph: new version of the minimum search algorithm 2018-01-30 18:19:27 +01:00
Émilie Feral
87bbade127 [apps] class Extremum Graph Controller 2018-01-30 18:19:27 +01:00
Émilie Feral
251acea9f1 [i18n] add messages "no mininum/maximum found" 2018-01-30 18:19:27 +01:00
Émilie Feral
1c49dab2b7 [apps] Graph: Handle enter on tangent graph controller 2018-01-30 18:19:27 +01:00
Émilie Feral
9eae976e78 [apps] Shared: increase the number of significative digits in the result
displayed by the sum graph controller
2018-01-30 18:19:27 +01:00
Émilie Feral
eb0686e2b2 [apps] Clean 2018-01-30 18:19:27 +01:00
Émilie Feral
03ebffa09d [apps] Graph: first version of a function minimum finding algorithm 2018-01-30 18:19:27 +01:00
Émilie Feral
7077cb4f58 [apps] Graph/Sequence: correct the layout of the banner views 2018-01-30 18:19:27 +01:00
Émilie Feral
9ab4486aa0 [apps] Correct the number of significant digits in sum graph controller 2018-01-30 18:19:27 +01:00
Émilie Feral
b387769eb4 [apps] Shared: In curve view, correct the dirty tracking when changing
the banner, the cursor or the OK views
2018-01-30 18:19:27 +01:00