Commit Graph

4785 Commits

Author SHA1 Message Date
É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
É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
É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
Émilie Feral
2002cc0ff5 [solver] I18n 2018-06-11 13:58:37 +02:00
Émilie Feral
197027c961 [home] Vertical scroll, reorder apps 2018-06-11 10:37:38 +02:00
Romain Goyet
217d0ccc10 [python] Enable builtins reversed 2018-06-08 17:26:37 +02:00
Romain Goyet
5008f40a66 [python] Enable builtins filter 2018-06-08 17:26:37 +02:00
Romain Goyet
e1b3e107da [python] Enable builtins frozenset 2018-06-08 17:26:37 +02:00
Romain Goyet
8acf50b50c [python] Enable builtins enumerate 2018-06-08 17:26:37 +02:00
Romain Goyet
b67388a9a9 [python] Enable builtins set 2018-06-08 17:26:37 +02:00
Romain Goyet
8094a02e71 [python] Don't compile MICROPY_HELPER_REPL for nothing 2018-06-08 17:26:37 +02:00
Émilie Feral
5d0ef50606 [apps] Update the preferences displayed in the title bar view when
changing the language
2018-06-08 17:23:59 +02:00
Émilie Feral
9407a86f5f [calculation] Avoid getting sqrt(2)/2 = 0.999906 (wrong) instead of cos(pi/4) =
0.999906: do not re-simplify exact output
2018-06-08 17:23:11 +02:00
Émilie Feral
1f452130f6 [probability] Change 'mu: moyenne' to 'mu: Espérance ou moyenne' 2018-06-08 17:22:35 +02:00
Émilie Feral
e3bfec9aa2 [solver] If the user adds an equation which is not an equality,
automatically add =0
2018-06-08 15:46:38 +02:00
Émilie Feral
f4b87f8680 [solver] Increase the 'Solve equation' button size 2018-06-08 15:15:25 +02:00
Émilie Feral
aec1ca1baa [solver] Improve solver icon 2018-06-08 15:15:25 +02:00
Émilie Feral
d176f140b0 [solver] Improve brace rendering 2018-06-08 15:15:25 +02:00
Émilie Feral
2d1c31a54b [solver] Align the 'Add Equation' button with the equation list 2018-06-08 15:15:25 +02:00
Émilie Feral
07d568030d [calculation] When replacing 'ans' symbol, use approximate result to
avoid weird unparsable expresion as 'ans=3' --> '2=2=3'
2018-06-08 15:15:25 +02:00
Émilie Feral
6ca93a5f35 [solver] Equation List: Hide brace margin when it is not displayed 2018-06-08 15:15:23 +02:00
Émilie Feral
ed74c4e6e2 [solver] Reload the brace view when adding or removing row in the list
controller
2018-06-08 15:13:50 +02:00
Émilie Feral
ad6c985111 [solver] ExpressionCell are EvenOddExpressionCell rather than former
ModelExpressionCell
2018-06-08 15:13:50 +02:00
Émilie Feral
a120c1c7e0 [solver] Add a brace view on the list controller 2018-06-08 15:13:41 +02:00
Émilie Feral
bb49e36386 [solver] Add test scenari 2018-06-07 16:21:40 +02:00
Émilie Feral
0a27cc1584 [solver] The 'resolve' button evolves from 'Resolve equation' to
'Resolve system'
2018-06-07 16:21:39 +02:00
Émilie Feral
2dec9e6244 [escher] Button: method setMessage 2018-06-07 16:21:39 +02:00
Émilie Feral
06b552c033 [escher] InputViewController: call the textField/ExpressionLayout
delegate 'DidFinishEvent' after performing the sucess or abort action
2018-06-07 16:21:39 +02:00
Émilie Feral
bc8dbd85c1 [solver] If one equation is undefined, display a warning 2018-06-07 16:21:39 +02:00
Émilie Feral
f6bdf56c15 [escher] TableViewDataSource: implement default cumulatedWidthFromIndex,
cumulatedWidthFromIndex, indexFromCumulatedWidth,
indexFromCumulatedHeight
2018-06-07 16:21:31 +02:00
Émilie Feral
2d580faf51 [solver] Ignore empty equation when resolving systems 2018-06-07 14:46:14 +02:00
Émilie Feral
ac9da8d559 [escher] Handle copy/cut event on Expression in selectable table view 2018-06-07 14:46:14 +02:00
Émilie Feral
24c9549866 [escher] Handle copy/cut event on selectable table view 2018-06-07 14:46:14 +02:00
Émilie Feral
d56013ef17 [escher] In ExpressionLayoutCursor, when inserting text, replace *_{*}
by *(*)
2018-06-07 14:46:14 +02:00
Émilie Feral
5378b90da8 [sequence] SequenceDefinition: Delete weird empty space to avoid getting
u(n ) when applying ExpressionLayout::writeInTextBuffer
2018-06-07 14:46:14 +02:00
Émilie Feral
354c9d1ccd [solver] Change b^2-4ac formula to D=b^2-4ac 2018-06-07 14:46:14 +02:00
Émilie Feral
d33372eae0 [solver] Avoid displaying 17 = 17 in solutions controller: test for
layout equality
2018-06-07 14:46:13 +02:00
Émilie Feral
150d66b00b [solver] Fix and add tests 2018-06-07 14:46:13 +02:00
Émilie Feral
797cf0fe72 [poincare] Extrema/Root solver: fix sqrt(x)= 0 2018-06-07 14:46:02 +02:00
Émilie Feral
963a48efad [solver] Decrease the step to solve non-linear monovariable equation 2018-06-07 13:46:19 +02:00
Émilie Feral
9a7f7f7fe3 [solver] Add the right equal symbol (equal/approximate) in solutions
controller
2018-06-07 13:46:19 +02:00
Émilie Feral
4b007ef32c [poincare] Add a method on expression to know if the expression is equal
to its approximation
2018-06-07 13:46:19 +02:00
Émilie Feral
e50cc3a0bd [poincare] Avoid infinite loop in intersection/extrema solver 2018-06-07 13:46:19 +02:00
Émilie Feral
f78615db40 [solver] Force the searched interval to have Xmin < Xmax 2018-06-07 13:46:19 +02:00