Commit Graph

9146 Commits

Author SHA1 Message Date
Léa Saviot
c421cf709d [python] Generated moduledefs.h file 2019-08-21 11:13:13 +02:00
Léa Saviot
ff833536dd [python] Clean and update port/genhdr/qstrdefs.in.h 2019-08-21 10:58:26 +02:00
Léa Saviot
a31eabed47 [python] Fix comment typo 2019-08-21 10:58:12 +02:00
Léa Saviot
0975ba0f10 [python] Upgrade to micropython 1.11 2019-08-21 10:58:12 +02:00
Léa Saviot
127a166762 [poincare/test] Det + identity simplification 2019-08-20 17:20:59 +02:00
Léa Saviot
bbf506ddb7 [apps/proba] Refactor law -> distribution 2019-08-20 17:16:19 +02:00
Léa Saviot
a982849f74 [apps/proba] Fix tests precision for regularized gamma 2019-08-20 17:01:53 +02:00
Léa Saviot
63ecdebe2f [apps/proba] Find inverse probability using increasing function
This fixes the test
Student law with 5.4 degrees of freedom
assert_cumulative_distributive_function_direct_and_inverse_is(&law, 1.3, 0.876837383157582639370275501278229057788848876953125);
2019-08-20 17:00:23 +02:00
Léa Saviot
c0ecff07fc [poincare/addition] Fix simplification with symbols 2019-08-20 16:14:38 +02:00
Léa Saviot
0556d10e7b [apps/calculation] Test about integral with symbols 2019-08-20 16:14:27 +02:00
Léa Saviot
fe0904cd8c [poincare/matrix_id] If child not rational, return this in shallowRed
Example: matrix_identity(cosh(0))
2019-08-20 11:52:20 +02:00
Léa Saviot
0c28796e85 [poincare/matrix_identity] undef if negative dimension 2019-08-20 11:52:20 +02:00
Émilie Feral
42bb1440e3 [apps/calculation] Inputs involving 'frac' display only the approximate
output
2019-08-20 11:51:37 +02:00
Émilie Feral
15696d3237 [poincare] Improve shallowReduce of Ceiling and Floor to be exact most
of the time
2019-08-20 11:51:37 +02:00
Léa Saviot
eccdd2fb6f [apps/proba] Fix Student distribution root search bracket 2019-08-20 11:27:38 +02:00
Léa Saviot
fb6af6321f [apps/proba] Fix chi squared root search bracket for parameter < 2 2019-08-20 11:20:49 +02:00
Léa Saviot
be3b414cbc [apps/proba] Comment about geometric_distribution definition 2019-08-20 10:08:57 +02:00
Léa Saviot
6bc317df32 [app/proba] Comment about computation error 2019-08-20 10:08:57 +02:00
Léa Saviot
7ec6bea991 [apps/proba] More seamless computation
If the user computes P(x<a) which gives b, then presses OK on b, return
a.
This prevents some comutation errors such as for student distribution
with 0.05 degrees of freedom, P(x<9900000) then press ok on the result
2019-08-20 10:08:57 +02:00
Léa Saviot
56543e8886 [apps/proba] Fix Student cumulativeDistributiveInverseForProbability 2019-08-20 10:08:57 +02:00
Léa Saviot
b26cd6a4fd [apps/proba] Fix Chi2 inverse DCF interval computation 2019-08-20 10:08:57 +02:00
Léa Saviot
07e639aa80 [apps/proba] Fix cumulative inverse probability for Chi Squared 2019-08-20 10:08:57 +02:00
Émilie Feral
88910e4e79 [poincare] PrintFloat: remove old assertion
The assertion was true when we used a temporary buffer big enough to
hold longest floats to print inside (before copying its -maybe
truncated- content in the final buffer)
2019-08-19 17:14:40 +02:00
Émilie Feral
af31ba6137 [apps/shared] CurveView::computeLabels: fix confusion between size and
length
2019-08-19 17:13:50 +02:00
Émilie Feral
1cc09de9ae [apps/calculation] Invalid calculation height memoization when leaving
the app.

Fix wrong memoization: in calculation app input '[[1+i, 2][3,4]]', change
the complex format to Polar, go back to the calculation app --> the
calculation height was no recomputed despite the fact that the approximation
output changed.
2019-08-19 09:59:01 +02:00
Émilie Feral
05972099fe [apps/shared] Fix char array initialization 2019-08-16 17:24:04 +02:00
Émilie Feral
f6ddc005b6 [poincare] Remove wrong assert and comment 2019-08-16 16:45:37 +02:00
Émilie Feral
fbbc11cf33 [poincare] Fix childNeedsUserParentheses with Conjugate expressions 2019-08-16 16:16:53 +02:00
Émilie Feral
64ddd6b622 [poincare] MatrixIdentity: fix shallowReduce (identity(-2) = undef) 2019-08-16 14:22:04 +02:00
Émilie Feral
19e271d81f [poincare] Expression simplification: respect required complex format
inside matrix entries
2019-08-16 11:01:58 +02:00
Émilie Feral
814598e7c4 [scripts] elf2dfu for device: add commented code for padding binary
files
2019-08-16 11:01:58 +02:00
Léa Saviot
ef1e15e492 [apps/proba] Fix Chi Square law window 2019-08-14 17:57:00 +02:00
Léa Saviot
d48c6561cd [apps/proba] Geometric distribution 2019-08-14 17:57:00 +02:00
Léa Saviot
99f5861080 [apps/proba] Fix cumulDistInvForProbaUsingBrentRoots 2019-08-14 17:57:00 +02:00
Léa Saviot
d8f94ad61d [apps/proba] ChiSquared parameter is in N+ 2019-08-14 17:57:00 +02:00
Léa Saviot
53dfb5630e [apps/proba] Test the laws 2019-08-14 17:57:00 +02:00
Léa Saviot
52087515e6 [apps/proba] Test about hypergeometric function 2019-08-14 17:57:00 +02:00
Léa Saviot
a280207449 [apps/proba] Student cumulativeDistributiveInverseForProbability 2019-08-14 17:57:00 +02:00
Léa Saviot
ee8f2bc2df [apps/proba] Fix typo 2019-08-14 17:57:00 +02:00
Émilie Feral
19c0037a31 [poincare] Add comments on Expression methods 2019-08-14 09:38:28 +02:00
Émilie Feral
6c203a545a [poincare] Fix Expression::isReal method with Matrix reducing 2019-08-14 09:38:28 +02:00
Émilie Feral
eb0f6153c5 [poincare] When reducing expressions, we check if an expression is a
matrix to know if it can be permuted in a multiplication for example.
This check has to be 'recursive'/'deep' to detect cases like "cos(3×confidence(cos(2)/25,3))"
2019-08-14 09:38:27 +02:00
Émilie Feral
4d5e4b75af [poincare] Remove useless file 2019-08-14 09:38:27 +02:00
Émilie Feral
adb1a09638 [poincare] MatrixDimension: fix shallowReduce (missing
replaceWithInPlace)
2019-08-14 09:38:27 +02:00
Léa Saviot
4c342cd933 [apps/probability] Helper for contonued fractions and infinite series 2019-08-13 18:00:15 +02:00
Léa Saviot
ff347b955e [apps/proba] Share chiSquared cumDistInvForProb with Student 2019-08-13 18:00:15 +02:00
Léa Saviot
bfee68d10f [apps/proba] Fix precision in chi squared law
To pass the tests
2019-08-13 18:00:15 +02:00
Léa Saviot
6b25cd1712 [apps/probability] Add tests about regularized gamma algo 2019-08-13 18:00:15 +02:00
Léa Saviot
c0ac4fb6d0 [apps/proba] Use brent algorithm for chi-squred cumulDistInvForProba 2019-08-13 18:00:15 +02:00
Léa Saviot
52d67024bf [poincare] Brent algorithms in solver.cpp 2019-08-13 18:00:15 +02:00