Commit Graph

3723 Commits

Author SHA1 Message Date
Émilie Feral
a6050fda55 [apps] Shared: Factorize code: all FunctionGraphView have a member
indicating the selected function
2018-01-30 18:19:27 +01:00
Émilie Feral
0dec52a708 [apps] Graph: enable to specialize GraphController in different types
(Default, Tangent ...)
2018-01-30 18:19:27 +01:00
Émilie Feral
6d7d957c8f [apps] Graph: add a submenu calculation parameter controller in the
curve parameter controller
2018-01-30 18:19:27 +01:00
Émilie Feral
ef8f5e07c2 [apps] In CurveView, replace the virtual method evaluateModelWithParameter by a function given as parameter (to be able to call Curve view methods with different implementation of evaluateModelWithParameter) 2018-01-30 18:19:27 +01:00
Émilie Feral
ea28475432 [apps] Probability: fix bug in the calculationcontroller due to the wrong implementation of columnWidth
The column width implementation required that a cell view was used only
to display a cell of the table which was not the case.
2018-01-30 18:09:59 +01:00
Émilie Feral
2a207e59ac [apps] Probability: fix scrolling in calculation cells 2018-01-30 18:09:59 +01:00
Émilie Feral
5d8256435e [apps] Probability: fix bug; in calculation controller, when reloading cells after editing textfield, do not reload selection (it corrupts the responder chain if the first reponder was a modal view for ex) 2018-01-30 18:09:59 +01:00
Émilie Feral
126212e25b [escher] SelectableTableView: add an option when reloading data 2018-01-30 18:09:59 +01:00
Émilie Feral
f97cbd6d20 [escher] Clean useless reloadData 2018-01-30 18:09:59 +01:00
Émilie Feral
199e21548f [poincare] Fix bug in Trigonometry reducing: tan(27*i*pi/5) !=
tan(2*i*pi/5) !!!
2018-01-30 16:17:03 +01:00
Émilie Feral
eceb25a860 [poincare] Bug: i symbol was forgotten in the implementation of
Symbol::isApproximative and Symbol::hasAnExactRepresentation
2018-01-30 16:17:03 +01:00
Émilie Feral
541d0809f3 [apps] Calculation: avoid replacing 'ans' with a store expression (to
avoid bug like '(2->A)->B')
2018-01-30 16:17:03 +01:00
Émilie Feral
c9943fce60 [poincare] Improve PrimeFactorization: n decomposition requires searching among prime factors p with p^2 <= n 2018-01-30 16:17:03 +01:00
Émilie Feral
4731cbd6e0 [poincare] Fix parenthesis addition on Complex object
Implement 'needParenthesisWithParent' instead of 'operandNeedParenthesis'
2018-01-30 16:17:03 +01:00
Émilie Feral
e4cb6d9aad [apps] Calculation: when checking the length of the input calculation,
first replace "ans" symbol
2018-01-30 16:17:03 +01:00
Émilie Feral
36a3108309 [apps] Calculation: move implementation of ansExpression() from
Calculation to CalculationStore
2018-01-30 16:17:03 +01:00
Émilie Feral
d43fc1b6eb [poincare] Fix Factorial::shallowReduce 2018-01-30 16:17:03 +01:00
Émilie Feral
006a36c63c [poincare] Fix operandNeedParenthesis 2018-01-30 16:17:03 +01:00
Émilie Feral
8b7387ab01 [poincare] Return a syntax error when parsing "Expression->ans" (A->ans
for ex)
2018-01-30 16:17:03 +01:00
Émilie Feral
59fdcde548 [poincare] Avoid returning partial simplification when the
simplification process has been interrupted
2018-01-30 16:17:03 +01:00
Émilie Feral
e4c6636b08 [poincare] Fix bug in Power::shallowReduce: when deleting a
SimplificationRoot, its operand have to be detached especially if it has
been deleted before!
2018-01-30 16:17:03 +01:00
Émilie Feral
ab0775bfda [poincare] Fix the parenthesis addition in multiplications 2018-01-30 16:17:03 +01:00
Émilie Feral
a53d6eb0df [poincare] fix convertFloatToText: compute the exponent from the 2-base
exponent in IEEE754
2018-01-30 15:51:10 +01:00
Émilie Feral
9443fcb043 [apps] Sequence: in the toolbox, update the extra-cells when updating
the hold layout to avoid unvalid read
2018-01-25 15:48:35 +01:00
Émilie Feral
479d86a38e [apps] Sequence: when setting a next first term index, forbid negative
index
2018-01-25 15:48:23 +01:00
Jean-Baptiste Boric
56c6c17b57 [escher] Fix Valgrind uninitialized read 2018-01-23 11:36:27 +01:00
Émilie Feral
0963254e03 [poincare] Fix confusion between Symbol::hasAnExactRepresentation and Symbol::isApproximative 2018-01-23 10:25:09 +01:00
Émilie Feral
b1bc6c97c6 [poincare] Add tests for Factor 2018-01-23 10:24:52 +01:00
Émilie Feral
45684d439b [poincare] Arithmetic::PrimeFactorization returns special cases when the
factorization fails. factor(integer) can fail and returns Undefined
2018-01-23 10:24:52 +01:00
Émilie Feral
696e89c7ef [apps] Toolbox: add factor decomposition 2018-01-23 10:24:52 +01:00
Émilie Feral
b9dce68f04 [poincare] Create class Factor 2018-01-23 10:24:52 +01:00
Émilie Feral
856a7b3eb0 [apps] Add random menu in toolbox 2018-01-23 10:24:52 +01:00
Émilie Feral
6401ce19ae [i18n] Add messages for random menu in toolbox 2018-01-23 10:24:52 +01:00
Émilie Feral
7aca44812e [ion] Correct random() implementation in simulator, blackbox and
emscripten
2018-01-23 10:24:52 +01:00
Émilie Feral
84b52fa090 [poincare] Create class Randint 2018-01-23 10:24:52 +01:00
Émilie Feral
868f53f65c [poincare] Create class random 2018-01-23 10:24:52 +01:00
Émilie Feral
9323f0a3e2 [poincare] Parse function with no operand 2018-01-23 10:24:52 +01:00
Émilie Feral
dedcb6b472 [poincare] Make the operands in LayoutEngin::writePrefixExpressionTextInBuffer and LayoutEngine::createPrefixLayout optional 2018-01-23 10:24:52 +01:00
Émilie Feral
f3b90cbbd4 [poincare] Fix ParenthesisLayout to make the operand optional 2018-01-23 10:24:52 +01:00
Émilie Feral
90a75a320b [liba] Add __aeabi_ul2d implementation 2018-01-23 10:24:52 +01:00
Émilie Feral
a8dc17a6cf [ion] Add TODO on implementations of usleep msleep 2018-01-22 15:32:59 +01:00
Émilie Feral
7993f7e906 [ion] Re-calibrate the delay methods (msleep and usleep) following the
increase of performance due to the instruction and data cache
2018-01-22 15:32:59 +01:00
Émilie Feral
9e9949ef78 [apps] Fix message: "Indice premier terme" 2018-01-17 12:07:24 +01:00
Émilie Feral
02b15035fa [poincare] Implementation of shallowReduce for Complex: when replacing
the ans symbol, we might introduce a Complex expression in the input
2018-01-16 15:17:16 +01:00
Émilie Feral
785c6a7329 [poincare] When replacing ans, add parenthesis if necessary 2018-01-16 15:17:16 +01:00
Émilie Feral
ddd8c3c44a [apps] Add tests on Ans behaviour in Calculation 2018-01-16 15:17:16 +01:00
Émilie Feral
775432efdc [poincare][apps] Replace Ans symbol when preprocessing the calculation 2018-01-16 15:17:16 +01:00
Émilie Feral
17fc7998a2 [apps] Calculation: Ans is exact only when the expression hold is exact 2018-01-16 15:17:16 +01:00
Émilie Feral
d6d31b4eb0 [apps] Calculation: clean unused methods 2018-01-16 15:17:16 +01:00
Émilie Feral
aa843bdb02 [poincare] Implement shallowReduce of stores and symbols 2018-01-16 15:17:16 +01:00