É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
Émilie Feral
1d89a8602f
[poincare] Add a context to setExpressionForSymbols in Context
...
Change-Id: I68b768aec350b75bfcf54a5bede2f9b1cdff7e20
2017-11-17 15:45:11 +01:00
Émilie Feral
9c98cec0d8
[poincare] Implement writeTextInBuffer for symbols using special chars
...
Change-Id: Ie3de762f3a5fb8d38866fe904ae1b9d7e7486e41
2017-11-17 15:31:51 +01:00
Émilie Feral
c1cd85e191
[poincare] Inverse symbol and value order in Symbols to fix infixLayout
...
Change-Id: Ibc29a0d6819b1e3d3de1c2ea140a57cf85b20129
2017-11-17 15:31:24 +01:00
Émilie Feral
04df91df97
[poincare] Fix symbols and context
...
Change-Id: I0a4505d0e21b8865f1babc3c9bb5977b509e73fe
2017-11-17 14:24:48 +01:00
Léa Saviot
c8a5f4dbe2
[code] Fixed bug in console history copy-paste.
...
The ConsoleController also tried to copy-paste the edit textfield.
Change-Id: Ib1e8d003a9c4793c0666d489f4b4278759eff484
2017-11-17 14:05:23 +01:00
Léa Saviot
f2e2e93888
[code] Larger console button in MenuController.
...
Change-Id: Ia8a495d4de95a4a9d6fee698975b2c7e831c4c43
2017-11-17 14:05:23 +01:00
Léa Saviot
c543145aae
[code] Optimized MenuController's script list scrolling speed.
...
To know if the AddScript row should be displayed, we need to compute the free
space size of the accordion, which is very slow. We thus memoized a bool
indicating if the AddScript row should be displayed.
Change-Id: Ia3891c0fc8df9b0b8bf2a9ad053be6dfc848c970
2017-11-17 14:05:23 +01:00
Léa Saviot
6baaa8547a
[code] Execute a script from the script options.
...
A button in the options opens the console, with only the current script
imported.
Change-Id: Ia3053534d6fdb2bd1340ce3c42b7249510c97bbc
2017-11-17 14:05:23 +01:00
Léa Saviot
57633829a9
[code] Split the Menu Controller in two columns.
...
The scripts names are on the right and open the script edition.
The left cells open the script options.
Change-Id: I3fbab8c3861f3395c3206775c92cda3470963b26
2017-11-17 14:05:23 +01:00
Léa Saviot
c294c15072
[code] Changed script auto importation label.
...
Change-Id: Iead9dc6499f2ba7f909a791a29045d88241cd86c
2017-11-17 14:05:23 +01:00
Léa Saviot
b73170b77b
[code] Print errors in the Python console.
...
Change-Id: If3a096ee46105229b6c4c77906826e78666cdc11
2017-11-17 14:05:23 +01:00
Léa Saviot
07c6acada4
[escher/code] Move Accordion from escher/ to apps/code/.
...
Change-Id: Id90ef9791f8c18bcdce497b8e20f060314f7b58b
2017-11-17 14:05:23 +01:00
Léa Saviot
fe3d470d2d
[liba] Fixed Gamma function bug.
...
There was a problem with the definition of ldexp, used in b_log__D.c
Change-Id: I83d012815e38b76efa730c1a3d259ec276e15f11
2017-11-17 14:05:23 +01:00
Léa Saviot
5cc9aa53f2
[python] Fixed underscore missing.
...
Change-Id: I58fb379c9ad070c15fb4d3487baa42f861c40b25
2017-11-17 14:05:23 +01:00
Léa Saviot
ce30428306
[escher] TextArea handles Paste event.
...
Change-Id: I33c0d21093f94edd987d7f4d2f7fd7363a1ee525
2017-11-17 14:05:23 +01:00
Léa Saviot
414e537969
[code] Empty console commands are not accepted.
...
Change-Id: Ie6affec97669312566c1b360bb2220f2c8723219
2017-11-17 14:05:23 +01:00
Léa Saviot
58e5e3c337
[escher] Fixed Toolbox bug.
...
The Toolbox did not always redraw itself when needed (for instance, when going
back from the For submenu in the Code Toolbox).
Change-Id: I157b883e321a497b4b958aae53c4e8406bad1725
2017-11-17 14:05:23 +01:00
Léa Saviot
59c840ef9a
[code] Auto-indentation when inserting Toolbox items in scripts.
...
Change-Id: Id444ab91965999a3d322dee2fa58f73c86aa6992
2017-11-17 14:05:23 +01:00
Léa Saviot
4f74b6d849
[code] The addScript button disappears when needed.
...
When there is already the maximal number of scripts or when the
ScriptStore accordion buffer is full.
Change-Id: I0d43d42626da7f060a2309c66f1806b35a29bf38
2017-11-17 14:05:23 +01:00
Émilie Feral
37dd3db06e
[poincare] Do not simplify expressions with matrix
...
Change-Id: I0b4c5fabf3e0669c50ecefc95a2896e945b8c5d9
2017-11-17 13:34:47 +01:00
Émilie Feral
2120c9c98e
[poincare] Enable to clone empty dynamic hierarchy
...
Change-Id: I4579402bcbc0c9545beee524c5bf9aa3d4a359d0
2017-11-17 13:34:47 +01:00
Émilie Feral
7e6db9daf0
[poincare] Fix sorting on dynamic hierarchy
...
Change-Id: I6d86a562d0d035a0fae1901d33d010b15170408b
2017-11-17 13:34:47 +01:00
Émilie Feral
b3f8156cfe
[poincare] Fix Expression::IsMatrix
...
Change-Id: I7956ba5c293431f91020e2211245da8fafdd5e1b
2017-11-17 13:34:47 +01:00
Émilie Feral
bfcd1377e6
[poincare] In Simplification order, matricial node are the biggest nodes
...
Change-Id: I2c5e391eb6f6476123199906575485c8635eb672
2017-11-17 13:34:47 +01:00
Émilie Feral
49257959a5
[poincare] Fix bug: transform M^(-1) into inverse(M) to avoid trying to
...
put a matrix at denominator everywhere
Change-Id: I0de866f22df952fa26f93c875b40131749a8db1e
2017-11-17 13:34:47 +01:00
Émilie Feral
8df9bc7b14
[poincare] Rule: e^(i*pi*r) -> cos(r*pi)+i*sin(r*pi)
...
Change-Id: I9afa1903a5bd38896d9b39aa15658110f493d06f
2017-11-17 13:34:47 +01:00
Émilie Feral
6cb9ccbe63
[poincare] Rule i^r -> e^(iPir') with r rational
...
Change-Id: I6453406e6888776844c0fe1ff0c7fe2a450d1f6e
2017-11-17 13:34:46 +01:00
Émilie Feral
e651a62ddb
[poincare] Treat I as a symbol instead of evaluating at parsing
...
Change-Id: I95d7bb1e1a85784622bc8780ebd8b8d90c822e6d
2017-11-17 13:34:46 +01:00
Émilie Feral
53c66baa16
[poincare] Re-enable matrix in simplified expression-> handle matrix in
...
evaluate
Change-Id: I455845398f0799b9e25fd192ada7478c872ab892
2017-11-17 13:34:46 +01:00
Émilie Feral
47621e0cf4
[poincare] Fix bug in writeTextInBuffer in Power: Power(2,Pi+cos(2)) ->
...
2^(Pi+cos(2)) (do not forget parenthesis)
Change-Id: I841d28412891efd8569501775c472f9f6d34c242
2017-11-17 13:34:46 +01:00
Émilie Feral
9185310734
[poincare] add tests
...
Change-Id: I623ed6797cf4a76db0d4f7dd62fb666f0cbb3081
2017-11-17 13:34:46 +01:00
Émilie Feral
fcc95446b6
[poincare] Improve Real part shallowReduce
...
Change-Id: Iaa4fb37ca1ea7dda73915c4e02d98c52fb8868d5
2017-11-17 13:34:46 +01:00
Émilie Feral
f59581b313
[poincare] We do not have to put matrix at root anymore as matrix are
...
going to be handle in evaluate soon
Change-Id: Id04c164148ce4ef3fc1be078c3ea73801ac7c0a8
2017-11-17 13:34:46 +01:00
Émilie Feral
12bc4308d2
[poincare] Fix PredictionInterval::shallowReduce
...
Change-Id: Id0e3677c78e2925834027be43080df9bcb951d6b
2017-11-17 13:34:45 +01:00
Émilie Feral
969423f5ba
[poincare] add tests
...
Change-Id: Iae3c6e4b5c27ecc8649f96cc8d85319a8847b1ab
2017-11-17 13:34:45 +01:00
Émilie Feral
e0abe28b85
[poincare] Fix Matrix Trace shallowReduce
...
Change-Id: Iad72771ec1f178554c6eb92398ec59188f7809b3
2017-11-17 13:34:45 +01:00