Gabriel Ozouf
eab8167a56
[poicare/logarithm] Implemented didDerivate and unaryFunctionDifferential for Logarithm
...
Derivation now computes as expected on logarithms, as long as their base is not a function of the derivation variable.
Change-Id: Ia56da1c1151c0ddf3887be84ddb4bd02664c5188
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
407d4bce6e
[poincare/cosine] Implemented didDerivate and unaryFunctionDifferential for Cosine
...
Derivation now propagates as expected on cosines.
Change-Id: I6f5af48ac7462c5b8e77ff1a6428a65bf6c0c7de
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
5cf85368ea
[poincare] Added framework to derivate unary functions, and implemented it for Sine
...
Added a method unaryFunctionDifferential to ExpressionNode and Expression, to be implemented by subclasses representing unary functions.
Added a function derivateUnaryFunction to Derivative, to factor (f°g)' -> g' * f'°g.
Change-Id: Id1780f1082ccd001f1282fe4ddfff2b7055d3a27
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
648cdbaa29
[poincare] Implemented didDerivate method for Power
...
Derivation now propagates to powers as expected, whether the base, the exponent, or both are functions of the variable. This also makes division derive as intended.
Change-Id: I51cbd5f7ec9f6aaa1df068625bbda1437941fa08
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
6f378ef3ef
[poincare] Implemented didDerivate for Multiplication
...
Derivation propagates as expected on multiplications (but not power). Some tests involving diff had to be updated to reflect that behaviour.
Change-Id: Ifa32031bc37a156c18d296757bcdd6ccdb0ea43e
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
c65687e9f6
[poincare] Implemented didDerivate methods for Number, Symbol and Addition
...
Number's subclasses, with the exception of Undefined and Unreal, derive as zero. Symbols derive as expected. Derivation propagates as expected on additions.
Change-Id: Icedbb1dfac8099347a19c14bf2537011b2e8b199
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
051e608835
[poincare] Added method didDerivate to Expression and ExpressionNode
...
This method is to be implemented by derivable expression subclasses, for use in Derivative::shallowReduce. It performs the calculation for the derivative, and returns whether calculations happened.
Change-Id: I13cdb131e2044578392f5178a9f389314c1c4c8a
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
eed1648363
[apps/statistics] Improve variance accuracy for statistics
...
Change-Id: Ie8f6f93c8e95940662e72a23619b53ac4ab0d6b6
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
29b0e86225
[quiz] Improve test possibilities for regression and statistics
...
Change-Id: I4414fad24e10dcbd56cd9aff1e35e00ba66dda2c
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
d16e49fc5f
[apps/regression] Improve Variance precision
...
Change-Id: Ia9e406b14c0baec76835e226a7801ba73ff9174e
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
db69f6a6f5
[regression] Implement R2 computation using evaluated values
...
Change-Id: Iecf8cb84f092c2ec8a9bc17bc0265d7dddaac36c
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
5c95cbd1d3
[regression] Add r2 to any regression stats
...
Change-Id: I3088dd66b1c3f48973b8a9277de687bdd24e094b
2020-11-04 14:45:34 +01:00
Hugo Saint-Vignes
d3727dde97
[regression] Add unit tests for regression metrics
...
Change-Id: I25d7fd89053a1bd5fb369c8c145dba92d188f550
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
e8505d79e7
[ion/device/exam_mode] Fixed missing parentheses in assertion
...
Change-Id: If10b6ea98ed224d79cfa50f38f9e229331d0f9f9
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
0454b65a94
[ion/device/usb] Fixed missing static member definitions
...
Change-Id: Iedf6ce51d3213f9265fec247c7bdfda4e3304d3a
2020-11-04 14:45:34 +01:00
Gabriel Ozouf
1d74a8f757
[poincare/power] Fixed missing template definitions
...
Change-Id: I9e7db458c97cc1fba29689690b67c3c678976405
2020-11-04 14:45:34 +01:00
Arthur
d77e924014
[Apps/Calculation] Modified the calculationStore of additional results
...
-Additional results are now stored in smaller calculationStores
Change-Id: I7d09bfb09e57cbb80e9385668adeb29a31398bc0
2020-11-04 14:45:34 +01:00
Arthur
d7a0914d13
[Apps/CalculationStore] Changed the way to store calculations
...
-No more limit to the number of calculations
-All calculations are memoized
-Added tests to test/calculation_store.cpp
Change-Id: Ia10e2b009576eaf4496ba44a0c88f6e7e76f6cef
2020-11-04 14:45:34 +01:00
Émilie Feral
e0dcdcea28
[build] Add a target flasher.verbose.flash
2020-10-27 08:50:05 +01:00
Émilie Feral
1f81c97371
[ion] USB::DFU takes an argument specifying if the DFU mode should be
...
leavable from keyboard
2020-10-27 08:50:05 +01:00
Émilie Feral
2d71e98b52
[ion] n0100 Console: fix pin alternate function
2020-10-27 08:45:41 +01:00
Gabriel Ozouf
c71b2dee99
[curve_view] Factor bounding box code for joinDots
...
Change-Id: Iae974aa2bee12e6c56bad84fd3b45093fb2a856f
2020-10-23 08:56:56 +02:00
Gabriel Ozouf
26fdfcd25c
[curve_view] Fixed variable names
...
Change-Id: I8aad13c6bce719ba8f3a30cd86f06f7c89ec041e
2020-10-23 08:56:56 +02:00
Gabriel Ozouf
fe8e490ac0
[curve_view] Filter unwanted vertical asymptotes
...
Change-Id: Ia603a2fb1553b6dfc038d2a28472ce48e41936db
2020-10-23 08:56:56 +02:00
Gabriel Ozouf
106916e7bf
[curve_view] Add double evaluation
...
Add the possibility to use a double-typed evaluator when tracing a
curve, useful when errors caused by float approximation mess with the
drawing.
Change-Id: I3ab410deec4823149239b0a26b1885fd2a493226
2020-10-23 08:56:56 +02:00
Émilie Feral
c91c2a6e3f
[app/shared] CurveView: Avoid dashSize overflow in
...
drawHorizontalOrVerticalSegment
2020-10-12 09:48:55 +02:00
Émilie Feral
8e025b0823
[apps/shared] CurveView: avoid overflowing KDCoordinate
...
This fixes the following bug: add the sequence, u(n)=2^n. On the graph,
go to "sum of terms" and try to sum terms from 0 to 18 by moving the
cursor. It hangs.
2020-10-12 09:48:55 +02:00
Émilie Feral
17fd1aea29
[ion] Haptics implementation are on all simulators but
...
Ion::Haptics::isEnabled is per platform.
2020-09-30 17:30:34 +02:00
Émilie Feral
0c0510599d
[ion] Simulator: haptics feedback are only implemented on Android and
...
depends on the System settings
2020-09-30 17:30:34 +02:00
Émilie Feral
9786db308a
[ion] Haptics events don't depend on SCREEN_ONLY
2020-09-30 17:30:34 +02:00
Émilie Feral
979c227d54
[ion] web: improve key highlight positions
2020-09-30 17:30:34 +02:00
Émilie Feral
595532e0a5
[ion] Remove useless variables
2020-09-30 17:30:34 +02:00
Émilie Feral
42cedf5b10
[ion] Windows: improve resgen.py script
2020-09-30 17:30:34 +02:00
Émilie Feral
f4b9635fee
[ion] Change variable name
2020-09-30 17:30:34 +02:00
Émilie Feral
560c4b3821
[ion] Linux: improve incbin.py script
2020-09-30 17:30:34 +02:00
Émilie Feral
5da82d8423
[ion] Add comment
2020-09-30 17:30:34 +02:00
Émilie Feral
33425e04c0
[ion] Coding style
2020-09-30 17:30:34 +02:00
Émilie Feral
7535abc298
[ion] Change name of variable in Makefile
2020-09-30 17:30:34 +02:00
Émilie Feral
308b321ead
[ion] Clean windows flag
2020-09-30 17:30:34 +02:00
Émilie Feral
8976ebfc41
[ion] Makefile linux: simplify build system by generating a header
2020-09-30 17:30:34 +02:00
Émilie Feral
4620aa8aa8
[ion] Remove useless comment
2020-09-30 17:30:34 +02:00
Émilie Feral
c96efa76b9
[ion] Windows Makefile: build .rc from the list of assets
2020-09-30 17:30:34 +02:00
Émilie Feral
40392fff9c
[ion] Simulator: assets declaration is common to all targets
2020-09-30 17:30:34 +02:00
Émilie Feral
815a06adad
[ion] Avoid unhighlighting key when the mouse is still on it.
...
Distinguish with smartphones behaviour.
2020-09-30 17:30:34 +02:00
Émilie Feral
22b585057d
[ion] Simulator: key layouts assets are PNG instead of JPG V (fix windows)
2020-09-30 17:30:34 +02:00
Émilie Feral
165b129385
[ion] Simulator: key layouts assets are PNG instead of JPG IV (fix linux)
2020-09-30 17:30:34 +02:00
Émilie Feral
1946c68ef8
[ion] Simulator: key layouts assets are PNG instead of JPG III (fix ios)
2020-09-30 17:30:34 +02:00
Émilie Feral
d2632bff4f
[ion] Simulator: key layouts assets are PNG instead of JPG II (fix
...
android)
2020-09-30 17:30:34 +02:00
Émilie Feral
d4b7b6baf0
[ion] Simulator: key layouts assets are PNG instead of JPG I (fix macos)
2020-09-30 17:30:34 +02:00
Émilie Feral
11236c67cb
[ion] Improve key positions
2020-09-30 17:30:34 +02:00