Commit Graph

3704 Commits

Author SHA1 Message Date
É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
Émilie Feral
b8b7da7dd8 [apps] Calculation: Ans holds an exact expression 2018-01-16 15:17:16 +01:00
Émilie Feral
7688c37316 [poincare] Avoid useless dynamic allocation 2018-01-16 15:17:16 +01:00
Émilie Feral
265453e3bb [poincare] Improve the approximation of derivative 2018-01-16 13:24:09 +01:00
Émilie Feral
be59ec0bfd [escher] Fix stack view title layout: re-add a grey line below stack
titles
2018-01-16 13:21:02 +01:00
Émilie Feral
1912ad0379 [escher] Bug in dirty tracking in text field: the cursor width was
forgotten
2018-01-16 13:20:31 +01:00
Émilie Feral
5c23003e50 [apps] Python: Refining random module 2018-01-16 13:19:27 +01:00
Émilie Feral
4a3b935e7b [apps] Python: in the menu controller, the editable cells holding the
script names are not responder as long as they are not set as first
responder manually by renameSelectedScript for instance
2018-01-16 13:18:20 +01:00
MaxBzh
d360709d9b In Home application, select Calculation application when Home or Back buttons are pushed 2018-01-16 12:19:43 +01:00
Léa Saviot
cb7b48adb6 [poincare] ExpressionArray is now a class, not a method.
Before, it was a method of Expression and returned a static array.
However, we have no guarantee that the function will not be called again
while the array is being used, thus erasing the previous array.

Change-Id: Ic640cee7edeb3b2805febde6287414a1497a5b4c
2018-01-16 12:18:48 +01:00
Émilie Feral
47eacfd555 [poincare] Power: when expanding multinome, cap the number of terms in
resulting sum at 25
2018-01-16 10:05:08 +01:00
Émilie Feral
b6c6fcb580 [poincare] Expand any multinome (a0+a1+...+am)^n which naive method 2018-01-16 10:05:08 +01:00
Émilie Feral
652c232ce3 [poincare] Power: expand Newton binomes 2018-01-16 10:05:08 +01:00
Émilie Feral
2cc432ac57 [poincare] Expose a method to compute the binomial coefficient 2018-01-16 10:05:08 +01:00
Émilie Feral
14b13d61a6 [poincare] Multiplication: merge multiplication operands that could
appear when reducing
2018-01-16 10:05:08 +01:00
Jacob Young
adc41fc240 I hate to do this, but a better solution will have to wait for a different PR. 2018-01-16 09:59:49 +01:00
Jacob Young
115f75c06a Fix #8 with a custom getEvent for the simulator. 2018-01-16 09:59:49 +01:00
MaxBzh
4011290e7a Add Urandom module in Python 2018-01-05 14:28:25 +01:00
Émilie Feral
cd93f827c1 [apps] Probability: improve precision of inverse normal probability
using erfInv
2018-01-04 15:48:06 +01:00
Émilie Feral
9506f22576 [apps] Probability: add erfInv function and tests 2018-01-04 15:48:06 +01:00