Jorick Alberga
b1e737879d
[nl] Translation Epsilon
2020-06-04 14:50:02 +02:00
Jorick Alberga
c70b5b07cc
[nl] Epsilon translation
2020-06-04 14:50:02 +02:00
Jorick Alberga
08fe49526c
[nl] Epsilon translation update
2020-06-04 14:50:02 +02:00
Jorick Alberga
7f561b0a3d
[nl] Update translation Epsilon
2020-06-04 14:50:02 +02:00
Jorick Alberga
07f924bed6
[nl] Translation Functions app And other translation
...
In file: epsilon/apps/graph/base.nl.i18n some text would look better if placed slightly to the left. I'm talking about lines 23 and 24: SelectLowerBound and SelectUpperBound
2020-06-04 14:50:01 +02:00
Jorick Alberga
1426da8c44
[nl] Also python-app
2020-06-04 14:50:01 +02:00
Jorick Alberga
00064ba824
[nl] Translation Python-app
2020-06-04 14:50:01 +02:00
Jorick Alberga
8a37096680
[nl] Start translation
2020-06-04 14:50:01 +02:00
Émilie Feral
ae71c23147
[poincare] Override method Unit::node to return UnitNode
2020-06-04 14:50:01 +02:00
Émilie Feral
3308b13b9c
[poincare] UnitConvert:
...
- do the smart part at beautification to avoid
requiring an escape case just for UnitConvert
- Use UnitConvert::None
2020-06-04 14:50:01 +02:00
Émilie Feral
c3e68d1968
[poincare] Add test on the UnitConversion mode
2020-06-04 14:50:01 +02:00
Émilie Feral
3f34e5e644
[poincare] Enable to choose the "UnitConversion" mode at simplification
...
between: only SI, none, default...
2020-06-04 14:50:01 +02:00
Émilie Feral
d805c59202
[poincare] Fix extractUnit into removeUnit paradigm
2020-06-04 14:50:01 +02:00
Émilie Feral
4e2da5de05
[poincare] Add crashing tests on units
2020-06-04 14:50:01 +02:00
Émilie Feral
38659587f5
[poincare] Multiplication::shallowBeautify: fix typo (fix tests)
2020-06-04 14:50:01 +02:00
Émilie Feral
56c45d1390
[poincare] Parsing: expression -> expression is always parsed but return
...
"undef" when the left expression is neither a custom variable or
function nor a unit.
This makes the behaviour consistent on theses expressions:
2 -> a+a
2 -> 2*a
2020-06-04 14:50:01 +02:00
Émilie Feral
e4848a7535
[apps/calculation] HistoryController: favour understandable code
2020-06-04 14:50:01 +02:00
Ruben Dashyan
266482ef99
[apps/calculation] Additional outputs for Unit
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f8050f0673
[poincare/symbol_abstract] Remove redundant code
...
This case is already handled in shallowReduce of Function and Symbol
2020-06-04 14:50:01 +02:00
Ruben Dashyan
407ce0534c
[poincare/expression] Use extractUnits instead of hasUnit when possible
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f227cd719f
[poincare/multiplication] Use extractUnits instead of splitIntoNormalForm in shallowBeautify
2020-06-04 14:50:01 +02:00
Ruben Dashyan
914bb38a8e
[poincare/test/helper] Do not beautify in assert_simplify helper function
...
Simplifying a Store expression does not generally reduce the children,
so the children should probably not be beautified ?
2020-06-04 14:50:01 +02:00
Ruben Dashyan
c71cce2957
[poincare/test] Factor assertions
2020-06-04 14:50:01 +02:00
Ruben Dashyan
651b705dbd
Revert "[poincare/expression] deepBeautify bubbles up Undefined children"
...
This reverts commit 300399fe4d .
Not necessary anymore to bubble up Undefined children in deepBeautify
since Unit::shallowBeautify does not introduce any Undefined Expression.
2020-06-04 14:50:01 +02:00
Ruben Dashyan
01b94f8543
[poincare/unit] Units homogeneity is already handled in each Expression subclass
...
specifically if needed or generically in defaultHandleUnitsInChildren
2020-06-04 14:50:01 +02:00
Ruben Dashyan
7ef28a93bc
[poincare/multiplication] Do not expand Multiplication in presence of units
2020-06-04 14:50:01 +02:00
Ruben Dashyan
bf9653d510
[poincare/expression] Turn getUnit into extractUnits
...
Addition::shallowReduce factors the unit across its terms.
Previously expressions of the form 1_m+π_m were reduced to undef.
2020-06-04 14:50:01 +02:00
Ruben Dashyan
94e1fdfc7a
[poincare/test/simplification] Uncomment passing tests
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f2bfc7ec9b
[poincare/expression] Remove redundancies in getUnit
2020-06-04 14:50:01 +02:00
Ruben Dashyan
9a762f1bf6
[poincare] A (Power of) Unit must not be orphan
2020-06-04 14:50:01 +02:00
Ruben Dashyan
c12ab3a2e2
[poincare/multiplication] Simplify shallowBeautify
2020-06-04 14:50:01 +02:00
Ruben Dashyan
2895d365a6
[poincare/multiplication] Make sure a Multiplication is not made of (Power of) Units only
2020-06-04 14:50:01 +02:00
Ruben Dashyan
4d1129b0db
[poincare/multiplication] Reorder steps in shallowBeautify
2020-06-04 14:50:01 +02:00
Ruben Dashyan
b8786dd32c
Revert "[poincare/multiplication] Fix handling of units with non-integer exponent"
...
This reverts commit 50f1ee9721 .
Since Power::shallowReduce now checks that the exponent of a Unit is an
Integer, instead of Unit::shallowBeautify, there is no need anymore to
handle that in Multiplication::splitIntoNormalForm.
2020-06-04 14:50:01 +02:00
Ruben Dashyan
1351babe37
[poincare] Move Power vs Unit checks to Power::shallowReduce
2020-06-04 14:50:01 +02:00
Ruben Dashyan
fa1235939b
[poincare/multiplication] Correct cast
2020-06-04 14:50:01 +02:00
Ruben Dashyan
c181650922
[poincare/multiplication] Simplify privateShallowReduce
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f224ac31e3
[poincare/n_ary_expression] Add TODO about mergeSameTypeChildrenInPlace
2020-06-04 14:50:01 +02:00
Ruben Dashyan
965e3b1d9a
[poincare/n_ary_expression] Factor mergeMultiplicationChildrenInPlace
...
from Multiplication to NAryExpression so as to use it in Addition
2020-06-04 14:50:01 +02:00
Ruben Dashyan
43327e482e
[poincare/multiplication] Use mergeChildrenAtIndexInPlace instead of mergeMultiplicationChildrenInPlace
2020-06-04 14:50:01 +02:00
Ruben Dashyan
4558e777c8
[poincare/multiplication] Remove old TODO
2020-06-04 14:50:01 +02:00
Ruben Dashyan
0c4434d088
[poincare/expression] getUnit returns an uninitialized Expression
...
when there is no Unit instead of Undefined
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f5b964339c
[poincare/test/expression_properties] Fix helper assert_reduced_expression_unit
...
First reduce
Then getUnit
2020-06-04 14:50:01 +02:00
Ruben Dashyan
2fea3c9b3a
[poincare/addition] Addition has no Unit
2020-06-04 14:50:01 +02:00
Ruben Dashyan
121e16a6a5
[poincare/absolute_value] AbsoluteValue has no Unit
...
shallowReduce returns Undefined if its unique child has a Unit
2020-06-04 14:50:01 +02:00
Ruben Dashyan
032723eae1
[poincare/layout_node] Remove unused variable
2020-06-04 14:50:01 +02:00
Ruben Dashyan
8365735f98
[apps/calculation/additional_outputs/expression_list_controller] Computed Layouts must not be uninitialized
2020-06-04 14:50:01 +02:00
Ruben Dashyan
a31524173f
[apps/calculation/history_controller] Factor handleEvent
2020-06-04 14:50:01 +02:00
Ruben Dashyan
a3265996fe
[apps/calculation/history_controller] Factor handleEvent
2020-06-04 14:50:01 +02:00
Ruben Dashyan
f3bcedd43d
[apps/calculation/history_controller] Simplify and harmonize handleEvent
2020-06-04 14:50:01 +02:00