Commit Graph

4558 Commits

Author SHA1 Message Date
Romain Goyet
870d704e7f [apps/solver] Rewrite the tests to they can be read by a human being 2020-04-15 09:16:32 -04:00
Romain Goyet
5faa251c1f [apps/solver] Quiz assertion are supposed to run in release mode too 2020-04-15 09:16:32 -04:00
Émilie Feral
42d643aa7e [apps/settings] improve German locale 2020-04-15 09:15:37 -04:00
Romain Goyet
84768472bd Explicit std::min/max template usage
This is unfortunately required in several cases:
 - Sometimes when we use either float and double (this should be changed)
 - Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
 - Because we mix pointer differences and ints
2020-04-14 09:31:02 -04:00
Romain Goyet
c71dcca691 [apps/code] Consistently use size_t 2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Aleks ANDRÉ
1839a91982 Terminologie lycée FR
Références :
* [Seconde](https://cache.media.education.gouv.fr/file/SP1-MEN-22-1-2019/95/7/spe631_annexe_1062957.pdf)
* [Première](https://cache.media.education.gouv.fr/file/SP1-MEN-22-1-2019/16/8/spe632_annexe_1063168.pdf)
* [Terminale (spécialité)](https://cache.media.education.gouv.fr/file/SPE8_MENJ_25_7_2019/90/7/spe246_annexe_1158907.pdf )
* [Terminale (complémentaire)](https://cache.media.education.gouv.fr/file/SPE8_MENJ_25_7_2019/13/4/spe265_annexe_1159134.pdf)
* [Terminale (experte)](https://cache.media.education.gouv.fr/file/SPE8_MENJ_25_7_2019/82/5/spe264_annexe_1158825.pdf)
2020-04-14 03:36:05 -07:00
Romain Goyet
807dd73e7b [poincare] Use a Tuple instead of an ArrayBuilder for expression
The Tuple is simply an initializer_list along with a convenience method
to cast between a list of TreeHandle and a list of Expression
2020-04-10 13:35:14 -04:00
Léa Saviot
e6ce3ca249 [apps] GET_OPT uses generated i18n language codes to find language 2020-04-10 04:46:22 -07:00
Léa Saviot
2ed354710f [build/simulator] NDEBUG flag in release mode
This way, asserts are not performed on simulator platforms
2020-04-10 00:49:15 -07:00
Neven Sajko
dd6a729f65 Better usage of some floating point constants 2020-04-09 13:58:56 +02:00
Neven Sajko
c0c73accef [probability] Prevent soft-float in StudentDistribution::lnCoefficient 2020-04-09 13:58:56 +02:00
Neven Sajko
c92b770112 Performance fixes relating to floating point constants
This replaces unnecessary double-precision soft-float operations with
single-precision floating-point operations, mainly by casting.

In a couple places I also replace a function call with a constant.
2020-04-09 13:58:56 +02:00
Émilie Feral
068325d151 Coding style: remove unecessary 'virtual' keyword when 'override' is
present 2/2
2020-04-09 11:36:51 +02:00
Jean-Baptiste Boric
64d0b3107f [apps] Remove statically-allocated buffers 2020-04-08 10:09:47 +02:00
FloMiau
b59085bd7f Update German language file
replace "Testmodus" with "Prüfungsmodus"
Real: "Reel" -> "Reell"
Gradians: "Gone" -> "Gon"
2020-04-08 10:09:24 +02:00
David
9272d4e75f Increase Brightness Levels to 12 2020-04-07 15:10:22 +02:00
Aleks ANDRÉ
3ae1dcd9bf retours à la ligne aidant à la lecture 2020-04-07 14:42:38 +02:00
Aleks ANDRÉ
ee56f02f2b Margin, messages 2020-04-07 13:57:47 +02:00
Aleks ANDRÉ
b30eb20ac2 Margins, message 2020-04-07 13:57:27 +02:00
Aleks ANDRÉ
53e15787cd Margins, message 2020-04-07 13:57:06 +02:00
Aleks ANDRÉ
1fd216c97e Margins, message 2020-04-07 13:56:46 +02:00
Aleks ANDRÉ
73f34f8f3d Relecture
– zéro → racine. Il s’agit de la terminologie du programme de [1re spécialité](https://cache.media.education.gouv.fr/file/SP1-MEN-22-1-2019/16/8/spe632_annexe_1063168.pdf)
– homogénéisation avec autres applications
2020-04-07 13:55:24 +02:00
Aleks ANDRÉ
e399472577 Anglicismes 2020-04-07 13:46:11 +02:00
wow
42fa0e7fbc More friendly french translations 2020-04-07 11:46:30 +02:00
Émilie Feral
26aab94ac0 [apps/shared] Avoid signed/unsigned int comparison warning 2020-04-07 09:51:39 +02:00
Émilie Feral
e1d7b6bb04 [apps] Avoid unsigned/signed comparison: storeChecksumAtIndex takes an
int as parameter
2020-04-07 09:51:39 +02:00
Joachim LF
7e02a90b2a Don't scan not loaded script in toolbox 2020-04-06 18:31:32 +02:00
Joachim LF
77af9ab92b I18NWarn 2020-04-06 18:29:48 +02:00
Léa Saviot
efff509e2a [apps/global_preferences] DefaultLanguage is the first of the locales
Not EN, because we might build without the EN locale
2020-04-06 13:35:18 +02:00
Léa Saviot
19b5653851 [apps/i18n] Remove Language::Default
We never translate a i18n message to something else than the currrent
language selected
2020-04-06 13:35:18 +02:00
Aleks ANDRÉ
5348640925 Traduction 2020-04-06 10:37:34 +02:00
Romain Goyet
84f6b179de [build] rule_for now takes both "local" and "global" parameters
Previous the build would fail on macOS if you had an epsilon.elf file in
at the root of the project. Indeed, the %.elf -> %.bin rule would get
triggered, but this rule should only operate on generated (intermediate)
elf file.
2020-04-06 10:12:54 +02:00
Romain Goyet
ada205b1a7 [build] Use variants
- Move helpers functions into build/helpers.mak
- Move official warning into official targets only
2020-04-03 22:26:55 -04:00
Émilie Feral
8d621e4dce [apps/shared] ScrollableMultipleExpressionsView: reload scroll content
view layout when changing the displayed expression layouts

Fix bug: input (transpose([1 1 1 1 1 1])[1 1 1 1 1 1])^30, click on 'OK'
and then 'up'. The cell is mis-displayed.
2020-04-03 10:42:42 +02:00
Émilie Feral
300de8fb15 [apps/calculation] HistoryViewCell: when changing SubviewType, set the
right subcell as first responder!

This fixes the following bug: when selecting a cell whose content is too
long to be displayed, the scrolling is broken
2020-04-03 10:42:42 +02:00
Émilie Feral
90222c3f45 [apps/calculation] SelectableTableView: scrollToCell once the margin
have been updated

This fixes the following bug: input the vertical matrix [1,2,3], the
scroll failed
2020-04-03 10:42:42 +02:00
Émilie Feral
e6516ae0e7 [apps/calculation] Fix typo 2020-04-03 10:39:05 +02:00
Émilie Feral
ffb8f8f953 [python] Test: add all template scripts 2020-04-01 16:39:59 +02:00
Léa Saviot
11ac25e935 [apps/code] Fix toolbox comment 2020-04-01 13:42:44 +02:00
Léa Saviot
92c62ce3dc [apps/code] Remove superfluous spaces in toolbox 2020-04-01 13:42:44 +02:00
Léa Saviot
76e0deb9bf [tests/solver] Test solve equation with max number of variables 2020-04-01 11:47:19 +02:00
Émilie Feral
633776b92f [apps/shared] Fix CurveView::drawArrow on arrow without orientation 2020-04-01 11:46:25 +02:00
Léa Saviot
511a96f464 [apps/code] Add matplotlib.pyplot functions to the toolbox catalog
Not just in the modules submenu
2020-04-01 10:18:09 +02:00
Émilie Feral
0f00bdda33 [apps] Fix test build 2020-04-01 10:18:09 +02:00
Émilie Feral
642a7c7f61 [apps/code] Increase python heap to 32k 2020-04-01 10:18:09 +02:00
Émilie Feral
d247843da6 [apps/code] Clean ConsoleController::reloadData (always returns true) 2020-04-01 10:18:09 +02:00
Émilie Feral
81284120af [apps/code] ConsoleController: refreshOutput is now done only when the
console is active
2020-04-01 10:18:09 +02:00
Léa Saviot
2f4064d92b [apps/code] Fix axis() command without arguments
It inserted axis(,,,) instead of axis()
2020-04-01 10:18:09 +02:00
Léa Saviot
2ac1396dd2 [apps/code] Put back the polynomial script 2020-04-01 10:18:09 +02:00