Commit Graph

4684 Commits

Author SHA1 Message Date
Romain Goyet
e1b3e107da [python] Enable builtins frozenset 2018-06-08 17:26:37 +02:00
Romain Goyet
8acf50b50c [python] Enable builtins enumerate 2018-06-08 17:26:37 +02:00
Romain Goyet
b67388a9a9 [python] Enable builtins set 2018-06-08 17:26:37 +02:00
Romain Goyet
8094a02e71 [python] Don't compile MICROPY_HELPER_REPL for nothing 2018-06-08 17:26:37 +02:00
Émilie Feral
5d0ef50606 [apps] Update the preferences displayed in the title bar view when
changing the language
2018-06-08 17:23:59 +02:00
Émilie Feral
9407a86f5f [calculation] Avoid getting sqrt(2)/2 = 0.999906 (wrong) instead of cos(pi/4) =
0.999906: do not re-simplify exact output
2018-06-08 17:23:11 +02:00
Émilie Feral
1f452130f6 [probability] Change 'mu: moyenne' to 'mu: Espérance ou moyenne' 2018-06-08 17:22:35 +02:00
Romain Goyet
c0d3b97c6b [apps/code] Fix getopt handling 2018-06-05 13:57:04 +02:00
Romain Goyet
96846e9396 [python] Clean up the configuration files 2018-06-04 16:10:14 +02:00
Romain Goyet
73250e727a [python] Update to MicroPython 1.9.4 2018-06-04 16:10:14 +02:00
Romain Goyet
caff93cda0 [code] Avoid init/deinit-ing uPy in each editor redraw 2018-06-04 16:08:11 +02:00
Romain Goyet
b52590e2f7 [code] Use named colors 2018-06-04 16:08:11 +02:00
Romain Goyet
6cd18cca89 [python] Malloc the syntax-highlighting uPy heap 2018-06-04 16:08:11 +02:00
Romain Goyet
29cacbc44f [code] Implement syntax highlighting in PythonTextArea 2018-06-04 16:08:11 +02:00
Romain Goyet
a514f2a6be [escher] TextArea now uses clearRect and drawLine 2018-06-04 16:08:11 +02:00
Romain Goyet
88e40266f6 [code] Create a PythonTextArea 2018-06-04 16:08:11 +02:00
Romain Goyet
9e4a1c7d54 [escher] TextArea cleanup 2018-06-04 16:08:11 +02:00
Romain Goyet
d2b2705d2d [escher] TextInput doesn't use colors anymore 2018-06-04 16:08:11 +02:00
Tillmann Karras
6d2c3dce25 [kandinsky] use pkg-config instead of freetype-config
Since freetype2 version 2.9.1 freetype-config has been deprecated and is
not installed by default anymore:
https://sourceforge.net/projects/freetype/files/freetype2/2.9.1/
2018-06-04 15:44:59 +02:00
Émilie Feral
4cbf0b86e9 [probability] Increase binomial n cap to 99999 2018-06-04 15:42:13 +02:00
Léa Saviot
dbfd6742a7 [poincare] Fix layout collapsing
When collapsing sibling layouts, isCollapsable should be called even if
forceCollapse is true, in order to update the number of open
parentheses.
This fixes the bug: (1+(21)^2), then Event::Divide
2018-05-31 11:53:40 +02:00
Émilie Feral
9e0f7bedd4 [poincare] Rational Power: always reduce p^(-1) if p rational
Otherwise, it causes bug when trying to reduce to same denominator.
For example:
  In Calculation app, type:
    '6' OK,
    'Y-ans/(ans*ans*ans*ans*ans), OK
    OK
    OK
    OK
 --> crash
2018-05-30 11:08:42 +02:00
Émilie Feral
332564318b [statistics] Recompute the histogram range parameters if the store has
changed (even if the bar parameters has not changed, the maximal size
might differ)
2018-05-29 15:34:07 +02:00
Romain Goyet
fde48836e8 Update the README 2018-05-28 10:35:59 +02:00
Romain Goyet
5251c297bb Move to CC-BY-NC-SA 2018-05-28 10:30:45 +02:00
Émilie Feral
20f60319bf [poincare] Fix fix CharLayout: avoid adding multiplication sign between Sto
and another expression without breaking other writeTextInBuffer
(1+x+x^2+x^3)
2018-05-25 10:01:49 +02:00
Émilie Feral
d11967f41a [poincare] Fix CharLayout: avoid adding multiplication sign between Sto
and another expression
2018-05-24 14:49:00 +02:00
Émilie Feral
386ebc5bfc [poincare] Decimal: fix buffer overflow in convertToText 2018-05-23 10:26:52 +02:00
Émilie Feral
84a78c8a9b [probability] Add comment for future improvement in Binomial law
computation
2018-05-23 10:14:21 +02:00
Émilie Feral
0ee32e15be [shared] Curve view: Avoid drawing all bars in histograms when bars
overlap each other due to pixel resolution
2018-05-23 10:14:21 +02:00
Émilie Feral
f2887e895d [probability] Increase the cap of parameters on binomial law 2018-05-23 10:14:21 +02:00
Émilie Feral
7f6d1f0e31 [probability] Fix evalution of the binomial density: some computation
were done in float instead of in double
2018-05-23 10:14:21 +02:00
Émilie Feral
da8286d3f7 [code] Escaping the input loop on a 'home' event should be handled by
the code app instead of the console controller to ensure to escape the
input loop even when the toolbox (or any modal) is displayed
2018-05-23 10:01:15 +02:00
Émilie Feral
5cfe20ad15 [code] Move ConsoleController from MenuController to App 2018-05-23 10:01:15 +02:00
Émilie Feral
2bd93844cd [poincare] Bug Product([1 1], 1, 3): if the intermediate result is
nullptr, escape the evaluation and return an undefined expression
2018-05-23 09:56:26 +02:00
Émilie Feral
f2d096be63 [emscripten] Add WHITELISTED symbols to call 'input()' outside a
function in Python
2018-05-22 17:48:48 +02:00
Romain Goyet
8fc32900c2 [emscripten] Sort ASYNC symbols 2018-05-22 15:59:20 +02:00
Romain Goyet
bb10e13aab [emscripten] Allow "input()" to be called outside of a function 2018-05-22 15:59:20 +02:00
Léa Saviot
7fec844759 Makefile: Version 1.5.0
Change-Id: I1f887fc12dc74586bfe30f3ab015c412166c1f81
2018-05-17 17:56:42 +02:00
Émilie Feral
eaabe7e486 [poincare] Set default edition mode to 2D 2018-05-17 17:56:20 +02:00
Émilie Feral
58d10403e2 [apps/sequence] Fix maxFirstIndex for double recursive sequences 2018-05-17 17:32:55 +02:00
Léa Saviot
f2d1247cf9 [code] Invalid the script node. If we don't, layouting the subviews
would use the deleted python heap.
using the python heap before

Change-Id: Icf77e7723d843ff415b8e2da11f5ab64eba48aef
2018-05-17 17:23:55 +02:00
Émilie Feral
b2b141aae4 [escher] Fix underscore replacement for subscript insertion in textfield 2018-05-17 16:53:16 +02:00
Émilie Feral
8541c2cb7e [sequence] Add a pop-up when the user tries to set the first term
index to a value above 1000
2018-05-17 15:39:14 +02:00
Émilie Feral
3a29f086a0 [sequence] Fix u(0), u(1) layout in sequence list 2018-05-17 15:39:14 +02:00
Léa Saviot
7e9b4c1a60 [apps/code] Fix buffer indexes
Change-Id: Ib5748d59fd762af9337e00115f0db4ac5d6d08a9
2018-05-17 15:26:46 +02:00
Léa Saviot
6aaab293d6 [apps/code] Change memcpy to memmove on overlapping buffers
Change-Id: Ic85b177375a4030ad80c8c539ee0084fb095ad44
2018-05-17 15:26:46 +02:00
Léa Saviot
8240d3d0df [poincare] Fix layout engine buffer access
Change-Id: I8db088bc036456a0524f1115517da1c6459a829d
2018-05-17 14:30:08 +02:00
Léa Saviot
6d18d228bf [poincare] Fix power layout serialization
Change-Id: Ib8fa0ead7e4de57504c41b3d353d5d60b58c300f
2018-05-17 14:09:52 +02:00
Émilie Feral
c3b35302aa [escher] Clean Expression layout field 2018-05-17 13:53:10 +02:00