Léa Saviot
2015bcce89
[code] Created DoubleBufferTextView for functions/variables toolbox.
...
Change-Id: I8fb8d12463de44f244230eca36d4b0404343f57d
2017-12-01 12:06:05 +01:00
Léa Saviot
bc4d2768d0
[escher/code] Cleaned Toolbox rowHeight().
...
Now it is set in escher/toolbox.h, with value 40 and no differentiation Node/Leaf.
Change-Id: I0809d87a5df5b8bffe201c9faf72ff901430cbe5
2017-12-01 12:06:05 +01:00
Léa Saviot
805bdd1381
[python] Fixed infinite recursion bug.
...
When running a script with infinite recursion, micropython now throws an
error instead of aborting and rebooting the device.
Change-Id: Icd409e56de58a48b25b6bdb30eea1e70b344cc14
2017-12-01 12:06:05 +01:00
Léa Saviot
1c25848139
[code] Modified mandelbrot script template.
...
Change-Id: Iee1ad23bf37f71564cdf5f23203c12149ed7fda8
2017-12-01 12:06:05 +01:00
Léa Saviot
37a2def2f1
[code] The maximal number of scripts is stored in the ScriptStore.
...
It was in the MenuController before.
Change-Id: I5f48465d92b53079dc358feec7a4b713875c7e2d
2017-12-01 12:06:05 +01:00
Léa Saviot
9d82804ff3
[code/emscripten] On emscripten, fixed waiting after a Python drawing.
...
The user can now push OK or Back to remove a Python drawing.
Change-Id: I293064a9458f8c0c6d0da5351500600fd9e82706
2017-12-01 12:06:05 +01:00
Léa Saviot
8dfeaa1f63
[code] Fixed bug in Accordion.
...
The last edited buffer was not properly computed.
Change-Id: I7aadbc6e3ea41b3b0e344276933dca14c505ee71
2017-12-01 12:06:03 +01:00
Léa Saviot
9d57d7f173
[code] Cleaned MenuController.
...
Change-Id: I499fcaf728a4f60557475b64e371a97e362b558d
2017-11-28 10:27:33 +01:00
Léa Saviot
2ce26f2625
[code] Fixed assertion bug in MenuController.
...
The assert should take into account the fact that there might not be any
script.
Change-Id: I68f0e5071ffd011fc5bb1dacc035d2127bdd8176
2017-11-28 10:27:12 +01:00
Léa Saviot
6ccd0c1c55
[python] Fixed the Python stack length computation.
...
On the device, the stack is stored in reverse order, but it might not be
the case on other platforms, which changes stack length computation.
Change-Id: I0218224a77465b9672f137771c00f734fdfaea64
2017-11-22 09:53:34 +01:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +01:00
Léa Saviot
07bc7672e8
[code] Fixed cursor bug when inserting text in editor.
...
Now the cursor moves only if the insterion was successful.
Change-Id: If2f74307aecd4b9b86183a3437a53fd8875c1751
2017-11-21 17:37:48 +01:00
Léa Saviot
5bfc482e62
[escher] textArea now returns a bool when inserting text.
...
Change-Id: I79111148e8e8b30abb24a6aecea0c187dbd7e2f6
2017-11-21 17:37:48 +01:00
Léa Saviot
711f78f837
[code] Added Kandinsky module and other functions in Toolbox.
...
Change-Id: I81a1323993c91990b13e81cbf4ea2af1ace8ef11
2017-11-21 17:37:48 +01:00
Léa Saviot
c537a59006
[code] Removed "input()" and Random module from the Toolbox catalog.
...
Change-Id: Id9e99cc908d533f018b1fe28f60b6fa26d8ea546
2017-11-21 17:37:48 +01:00
Léa Saviot
f7a6e615ca
[code] The cursor in a toolbox command does not go before a point.
...
The cursor now goes either after the first open parenthesis or at the
end of the command.
Fixed z.real and z.imag.
Change-Id: I46ca3be0415832fd91273ca7fed12ed3d6f125dc
2017-11-21 17:37:48 +01:00
Émilie Feral
7c772d85b7
[apps] In calculation, do not display exact output if it is identical to input
...
Change-Id: I4b0733c7e3090bc2b04c68661bd34cf0b6da17f1
2017-11-21 17:37:25 +01:00
Émilie Feral
b2d6c2e305
[apps] In calculation, avoid blinking when changing selection
...
Change-Id: I8b94362183e1aed0d87cfdfa39b3f67ccbbd8b42
2017-11-21 17:37:25 +01:00
Émilie Feral
35b979798d
[escher] Optimize redrawing when changing features in cells (color,
...
highlight, even)
Change-Id: I0afa8b6fad656d578bb8e071183646196bc816f9
2017-11-21 17:37:25 +01:00
Émilie Feral
5e822a8001
[apps] In calculation, fix scrolling between approximate and exact
...
outputs
Change-Id: I8920cc3eab9f72d4b82cf2361bd1eba02232a268
2017-11-21 17:37:25 +01:00
Émilie Feral
7d30801e68
[apps] Change output colors
...
Change-Id: Ic8cb3f6bf3130c8b5e4c84edc1513353631d0336
2017-11-21 17:37:25 +01:00
Émilie Feral
fe73c69b11
[apps] In calculation, swap exact and approximate outputs
...
Change-Id: I0cbce8b56a37b31d3249a53b35d69098a8d45c78
2017-11-21 17:37:25 +01:00
Émilie Feral
65722ff875
[apps] Fix bug when computing the history cell height in Calculation
...
Change-Id: Ic45f3da26a47b189ef6050d68c25f27c9a1f4bb7
2017-11-21 17:37:25 +01:00
Émilie Feral
fe4a3e8058
[escher] Increase textfield size
...
Change-Id: I1fed662ad11ecb556a5a1f8a5a2828ccb7fb600b
2017-11-21 17:37:25 +01:00
Émilie Feral
bb590bc529
[apps/calculation] Valgrind: fix call to deleted memory
...
Change-Id: I36e25684dfd260e04ce29fe0698c179e372030d4
2017-11-21 17:37:25 +01:00
Émilie Feral
5fd8fda4b1
[calculation] Display exact and approximate results
...
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
6c51c584f2
[apps] Change Calculation to hold an exact and an approximate output
...
Change-Id: I1805839e17cd42b82f06ce0a320d20b49cd2a6cd
2017-11-21 17:37:25 +01:00
Émilie Feral
e112383ce3
[poincare] In Decimal, do not reduce to rational if exponent is too big
...
or too small
Change-Id: Ibf80302e6e2ad3242f6d9f2ee7de31de2ef0dd1f
2017-11-21 17:37:04 +01:00
Léa Saviot
92789330de
[code] Search function in the code Toolbox.
...
When the user types a letter, the toolbox scrolls to the first row that begins
with said letter (without considering if it is lower or upper case). If
there is not such a row, the toolbox scrolls to the first row that has a
letter higher than the typed letter.
Change-Id: I353d23560d8a4d618d96426c393b024e7fb487af
2017-11-21 17:30:04 +01:00
Léa Saviot
95bf921138
[code] The Mandelbrot script now uses complex numbers.
...
Change-Id: I47f14d414c86c09f85093c201d16ef71ce028510
2017-11-21 17:12:42 +01:00
Léa Saviot
a9f4da92c0
[code/python] Fixed the Kandinsky module in Python.
...
User can draw on the 320*220 drawing screen.
Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
2017-11-21 17:12:38 +01:00
Émilie Feral
0cd2ac42fb
[poincare] In multiplication, fix bug in addMissingFactors: treat
...
rational as a special case
Change-Id: I609c05c8a1981d1ecbd51775c7186f3a4e97896e
2017-11-21 16:31:28 +01:00
Émilie Feral
b29ebcf154
[poincare] Fix bug in VariableContext: when the value put in x is not a
...
complex, we put NAN in x
Change-Id: I28e75fb407a285ae7451e80bb862279a2aa8ae3d
2017-11-21 15:49:50 +01:00
Émilie Feral
6498e13a09
[poincare] In Power, do not reduce too big rational power (ie 999^999)
...
Change-Id: I21f4437c347f9041f9b9a186dbc729d03ff6c7f4
2017-11-21 15:33:17 +01:00
Émilie Feral
180b575091
[poincare] Improve Tangent::shallowReduce
...
Change-Id: I4b419200dfa4a04a8589c7542e734b7ba3d06436
2017-11-20 16:56:08 +01:00
Émilie Feral
28d6012d25
[poincare] Fix bug: cannot add matrix of different dimensions
...
Change-Id: Ia1fb2c8dc9a4ded09dee6fafc917f352cff5b948
2017-11-20 16:22:56 +01:00
Émilie Feral
002fc568de
[poincare] Fix division by zero
...
Change-Id: I644b70b58e6c2610681141158892668afc5a9c58
2017-11-20 16:15:41 +01:00
Émilie Feral
8b2e8c29de
[poincare] Fix bug in addMissingFactor
...
Change-Id: Iefcac417dbcf4d6775bc10169ce9e4fdee473863
2017-11-20 15:56:43 +01:00
Émilie Feral
f04953d3a4
[poincare] Fix Addition::factorizeOnDenominator
...
Change-Id: I41f68b51c74acaf01b547276053fbeccaeb948ab
2017-11-20 15:39:28 +01:00
Émilie Feral
2d44374f09
[poincare] Fix bug in TermIsARationalSquareRootOrRational: check that
...
the only operands of the multiplication are a rational and a square root
Change-Id: I16418363c883798eb7a4056d0fae7d29eb459936
2017-11-20 15:34:10 +01:00
Émilie Feral
e863069176
[poincare] Valgrind: fix leaks
...
Change-Id: If5f7f80d1672817fcefd8629389f4ba5aa7fd248
2017-11-20 14:52:26 +01:00
Émilie Feral
cb432e165e
[poincare] Cap binomial and permute coefficient reducing
...
Change-Id: Ib0c08a9788d77025e709d295bf05f30de50e9253
2017-11-20 14:52:21 +01:00
Émilie Feral
d9897dd982
[poincare] Fix Multiplication::shallowReduce, reduce -1 that appear
...
during factorization
Change-Id: I03cd438358dddf080e64d1582750455668807482
2017-11-20 10:40:13 +01:00
Émilie Feral
5f54a48cfb
[poincare] Fix dimensions of confidence interval, prediction interval
...
and matrix dimensions
Change-Id: Ic5cda3aca2aab5b0074c327e5368482bc203b55f
2017-11-20 10:40:03 +01:00
Émilie Feral
fe3fa9bf7c
[poincare] Do not simplify power when it is the children of a logarithm
...
that can simplify
Change-Id: Ibec5a97b4eda0cf25efcbe5ee4f9a99673c0eb8a
2017-11-17 18:07:05 +01:00
Émilie Feral
6a71fc9cbf
[poincare] Fix layout of logarithm
...
Change-Id: I10d0573cd560c0cfb16e22e0f395ec7d3be1700a
2017-11-17 18:04:31 +01:00
Émilie Feral
39ca735f21
[poincare] Improve Logarithm::shallowReduce
...
Change-Id: Ie0f4c0cb25f7c62c65786f7b3a47583ed7323770
2017-11-17 17:11:36 +01:00
Émilie Feral
3f48f49fbe
[poincare] Fix infinite loop in power
...
Change-Id: I9b1ce1500303cbe880a75ac87c09a36721426332
2017-11-17 16:51:06 +01:00
Émilie Feral
4c01e6a8ce
[poincare] Fix infinite loop in logarithm
...
Change-Id: Ic70f2d236af9895a468a57953a446db496a54f2f
2017-11-17 16:50:55 +01:00
Léa Saviot
2aa1cb0256
[emscripten] Fixed Python computation interruption.
...
A dummy scan() was used, which stopped the computation with
shouldInterrupt().
Change-Id: I661a630bd1a83c6036513fb9a086c58ba542f25b
2017-11-17 16:42:39 +01:00