Commit Graph

7809 Commits

Author SHA1 Message Date
Émilie Feral
e39172a7cd [apps] AppsContainer: 'shutdownDueToLowBattery' can be call when the
battery is actually LOW (due to some oscillations between LOW and
EMPTY). Handle that case
2019-04-18 14:07:03 +02:00
Émilie Feral
ef12e6de79 [apps] BatteryView: when the battery is EMPTY and the device hasn't
shut down yet, avoid drawing full battery (and breaking assertion)
2019-04-18 14:07:03 +02:00
Léa Saviot
4afcb95e18 [poincare/tests] More tests on randint 2019-04-17 14:37:37 +02:00
Léa Saviot
7362e965a8 [poincare/randint] Do not accept infinite bounds
Before, randint(1,inf) would give inf
2019-04-17 14:37:37 +02:00
Léa Saviot
1e20b283dc [poincre/randint] Randit simplifies itself to its approximation 2019-04-17 14:29:16 +02:00
Léa Saviot
326b8b8761 [poincare/tests] randint's simplification gives its approximation 2019-04-17 14:29:08 +02:00
Léa Saviot
a48478882c [apps/calc] If result contains random/round, display approximation only 2019-04-17 12:11:37 +02:00
Léa Saviot
73e0947962 [apps/calculation/tests] Tests on displayExactApprox for random/round 2019-04-17 12:10:47 +02:00
Léa Saviot
03bb81215e [python/urandom] Use Ion::random to seed urandom 2019-04-17 11:46:01 +02:00
Léa Saviot
f73951865e [python/urandom] Add init method to seed the Yasmarang generator.
This commit should disappear as it will be in one of the next stable
micropython versions
2019-04-17 11:46:00 +02:00
Léa Saviot
f9e2fc6974 [python] Fix typo 2019-04-17 11:46:00 +02:00
Léa Saviot
bdaf229cfd [apps/text_field_delegate_app] Fix XNT in a sum layout
It was broken by a blunder while swithching to UTF8
2019-04-17 11:31:26 +02:00
Émilie Feral
2bfe257f3f [kandinsky] Fonts: improve glyph % 2019-04-16 14:06:57 +02:00
Émilie Feral
e615172cbb [sequence] Cache context does not need to be a variable context
Fix crash: u(n) = n(n-1) would crash at evaluation
2019-04-16 13:54:05 +02:00
Émilie Feral
60b577e199 [calculation] Fix tests with no symbolic computation 2019-04-16 13:51:59 +02:00
Émilie Feral
d9982a11a9 [apps] Redraw battery pictogram after a reset 2019-04-15 09:52:45 +02:00
Émilie Feral
922f20ae05 [ion] Keyboard: fix getPlatformEvent (return None by default) 2019-04-15 09:52:09 +02:00
Émilie Feral
fbdc7a4117 [ion] Battery: change battery thresholds (LOW, EMPTY) 2019-04-12 15:16:53 +02:00
Émilie Feral
da12904873 [ion] Dim Brightness before shutting down when the battery low 2019-04-12 15:16:53 +02:00
Léa Saviot
22b7853dfa [poincare] Fix Layout::replaceWithJuxtapositionOf 2019-04-12 15:16:53 +02:00
Léa Saviot
057939dd3f [apps/calc] displayExactOuputOnly only if the input is store in function
This prevents 1+x->f(x) from displaying 1+x = undef
[[1,2]] + [[1][2]] displays undef
2019-04-12 15:16:53 +02:00
Léa Saviot
50e2d11b1f [apps/calculation] Calculation::DisplayOutput can be Exact/Approx/Both 2019-04-12 15:16:53 +02:00
Ruben Dashyan
3fdac50e2b [escher] Fix ExpressionField::inputViewHeight
Since commit

  [escher] Implement ScrollView::minimalSizeForOptimalDisplay including margins

minimalSizeForOptimalDisplay includes the ScrollView margins.
2019-04-12 15:16:53 +02:00
Léa Saviot
246349e72f [python/turtle] Fix rounding errors
Some horizontal/vertical lines were not properly drawn
Example script:
from math import *
from turtle import *
def a():
  def carre(n):
    fd(n)
    right(90)
    fd(n)
    right(90)
    fd(n)
    right(90)
    fd(n)
    right(90)
  penup()
  goto(-158,109)
  pendown()
  carre(100)
  for j in range(10):
    for i in range(26):
      penup()
      fd(2)
      pendown()
      carre(10)
      penup()
      fd(10)
      pendown()
    penup()
    goto(-158,109-10*(j+1))
    pendown()
2019-04-12 15:16:53 +02:00
Léa Saviot
4298140013 [apps/tests/solver] Test equations + symbolic computation 2019-04-12 15:16:53 +02:00
Léa Saviot
3d8de2246f [poincare/tests] Parametered expressions + symbolic computation 2019-04-12 15:16:53 +02:00
Léa Saviot
b16bd8efa1 [poincare] Use ParameteredExpression in Symbol::shallowReduce 2019-04-12 15:16:53 +02:00
Léa Saviot
2b16b5b2a1 [poincare] Parametered expression 2019-04-12 15:16:53 +02:00
Léa Saviot
6d26fd578c [poincare] Do not replace a symbol if it is an expression's parameter 2019-04-12 15:16:53 +02:00
Léa Saviot
5dc240c94f [apps/calculation] Add tests about no symbolic computation 2019-04-12 15:16:53 +02:00
Léa Saviot
a45cde2fed [calculation/test] Rename some test method arguments 2019-04-12 15:16:53 +02:00
Léa Saviot
41fc08a4d4 [test] Fix tests for unknown symbol is not real 2019-04-12 15:16:53 +02:00
Léa Saviot
ad5da8ad77 [poincare] A non defined symbol is not real
This fixes the equation "conj(x) * x +1", that should not be treated as
a polynom
2019-04-12 15:16:53 +02:00
Léa Saviot
69d90b155d [apps/solver] Test: conj(x)*x+1 should not be considered as polynom 2019-04-12 15:16:53 +02:00
Léa Saviot
8b10c979a0 [test] Fix tests for no symbolic computation 2019-04-12 15:16:53 +02:00
Léa Saviot
3554f441c1 [poincare] Remove symbolic computation 2019-04-12 15:16:53 +02:00
Léa Saviot
503a10afbb [apps] Clean apps/shared/expression_model_handle.cpp 2019-04-12 15:16:53 +02:00
Léa Saviot
4bbda406de [unicode] Use Poincare::SerializationHelper::CodePoint 2019-04-12 15:16:53 +02:00
Léa Saviot
41b2571668 [poincare] MatrixIdentity 2019-04-12 15:16:53 +02:00
Léa Saviot
327f19cb5c [poincarE] Static method name upper case 2019-04-12 15:16:53 +02:00
Léa Saviot
522ecead7b [apps/toolbox] Matrix > Identity command 2019-04-12 15:16:53 +02:00
Léa Saviot
a2448ec807 [escher] Increase TextField::maxBufferSize
In order to be able to write a 10*10 adjacency matrix
2019-04-12 15:16:53 +02:00
Léa Saviot
93a1546201 [apps] Removed unused static inline method 2019-04-12 15:16:53 +02:00
Léa Saviot
82d5ff7799 [ion/unicode] Clean special code points 2019-04-12 15:16:53 +02:00
Léa Saviot
5c9bdbf1f1 [apps/settings] Coding style 2019-04-12 15:16:53 +02:00
Léa Saviot
6e5fbe9966 [apps/settings] Clean unicode layout creations 2019-04-12 15:16:53 +02:00
Léa Saviot
f3675d83df [apps/settings] Factorize layout font sizes 2019-04-12 15:16:53 +02:00
Léa Saviot
7cfeac8387 [apps/reg] Factorize the model layouts fonts 2019-04-12 15:16:53 +02:00
Léa Saviot
93388a0248 [apps/reg] Clean regression models layout creation 2019-04-12 15:16:53 +02:00
Léa Saviot
cbcfa35110 [unicode] Use 3BC symbol instead of B5 for the glyph Mu.
NFKD normalization transforms uniB5 into uni3BC.
2019-04-12 15:16:53 +02:00