Léa Saviot
b3c11f2425
[apps/code] Put turtle module higher in Python toolbox
2018-12-17 13:58:13 +01:00
Léa Saviot
b058b023db
[apps/code] Add turtle functions in the toolbox catalog
2018-12-17 13:58:13 +01:00
Léa Saviot
8a3aa1ab08
[apps/code] Add turtle functions in th python toolbox
2018-12-17 11:57:40 +01:00
Léa Saviot
609740b0bd
[apps/code] Order catalog.universal.i18n
2018-12-17 10:31:20 +01:00
Émilie Feral
bc1a1c25d2
[poincare] Fix precision of approximation of arc trigonomtry when the
...
result is in real numbers
2018-12-17 09:47:25 +01:00
Émilie Feral
06264b2ea8
[poincare] Fix sqrt(-1) reduces to i
2018-12-17 09:43:06 +01:00
Émilie Feral
aa0b785f3d
[shared] In models Equation, Sequence: the recorded expression does not
...
need to be beautified. Use Reduce instead of simplify
2018-12-17 09:41:14 +01:00
Émilie Feral
c3e7a0667a
[shared] Fix StorageExpressionModel::expressionReduced: take into
...
account the prefered angle unit!
2018-12-17 09:41:14 +01:00
Émilie Feral
beab798a14
[poincare] Power: fix approximation precision
...
std::pow is more precise on doubles than on complexes, we rather use the
double version when possible
2018-12-14 12:17:36 +01:00
Léa Saviot
af1066f16e
Fix typo
2018-12-13 15:56:33 +01:00
Léa Saviot
42cdf95e9f
[apps/regression] Improve vertical navigation
...
Data set:
X1 2 3 2 1
Y1 0 1 0.5 5
X2 1 10 2
Y2 0 25 0.5
There was circular navigation on series 2 mean point
2018-12-13 15:56:33 +01:00
Léa Saviot
99d97ecb45
[apps] Do not recompute stop condition in for loop
2018-12-13 12:20:22 +01:00
Léa Saviot
11c0b02b7b
[apps/regression] Add index assertions
2018-12-13 12:20:22 +01:00
Léa Saviot
ebeb8e2022
[apps/regression] Change var names in GoToParamCtrl::setParamAtIndex
2018-12-13 12:20:22 +01:00
Léa Saviot
273b5910bf
[apps/regression] GoToParamCtrl::setParam checks value validity
2018-12-13 12:20:22 +01:00
Léa Saviot
306869edca
[python/turtle] Tune values of the turtle speed
2018-12-13 09:44:34 +01:00
Léa Saviot
15c5d2af1b
[apps/regression] Fix vertical navigation if 2 series have same point
...
Data set:
X1: 8 9 10 10
Y1: 2 5 1 2
X2: 10 12 5
Y2: 2 0 8
2018-12-12 17:50:03 +01:00
Léa Saviot
de339c44ae
[apps] Handle StorageFunction::m_color unaligned read on emscripten
2018-12-12 17:49:51 +01:00
Léa Saviot
91c4fea517
[python/turtle] Clean Turtle::PawPosition
2018-12-12 15:45:21 +01:00
Léa Saviot
8ac60983ed
[python/turtle] Remove old turtle icon
2018-12-12 15:45:21 +01:00
Léa Saviot
99d71bb0d9
[python/turtle] Clean Turtle::setColor
2018-12-12 15:45:21 +01:00
Léa Saviot
f6861e4301
[apps] Fix SuspendTimer::Fire that caused two suspensions
2018-12-12 11:53:25 +01:00
Léa Saviot
ce1cdaacc3
[apps/code] Fix console reloading that did not occur often enough
...
Scenario:
Write a script that prints "abc"
Open the console -> prints "abc"
Modify the script to print "ab"
Go back to the console -> "ab" not printed !
2018-12-12 11:15:50 +01:00
Léa Saviot
460c21801f
[apps/regression] More intuitive curve/dot vertical navigation
2018-12-12 11:14:51 +01:00
Léa Saviot
96c6143c6e
[apps] Fix graph vertical navigation
...
It would loop when three equal functions are defined.
2018-12-12 11:14:51 +01:00
Léa Saviot
3bd3e64e36
[python/turtle] Order the qstr
2018-12-11 14:42:04 +01:00
Léa Saviot
62cda01d2b
[python/turtle] color and pencolor can take various arguments
...
These two methods are equal.
2018-12-11 14:42:04 +01:00
Émilie Feral
3cb765c66d
[poincare] Power approximation: fix 0^0 = NAN instead of 0^0=1
2018-12-11 14:34:01 +01:00
Léa Saviot
29cb0672b8
[apps] The suspend timer dispatches an OnOff event.
...
The sandbox was not exited when the device suspended because of a long
time without use. When the device was powered on again, a blank sandbox
was displayed.
2018-12-11 09:34:12 +01:00
Léa Saviot
ddf361c1b1
[apps] Sandbox handles/absorbs only keyboard events (except Home, OnOff)
...
The sandbox prevented USB enumeration by absorbing the event.
2018-12-11 09:34:12 +01:00
Léa Saviot
23e3038c00
[python/turtle] Remove waitForVBlank before drawings
...
The drawing was really slowed down by the waiting, and no tearing effect
has been noticed without waitForVBlank
2018-12-10 17:36:52 +01:00
Léa Saviot
d545c4532a
[python/turtle] When speed = 0, do not draw the turtle during "goTo"
2018-12-10 17:14:23 +01:00
Léa Saviot
7efb48ab6e
[python/turtle] Turtle::circle's angle argument is optional
2018-12-10 16:59:11 +01:00
Léa Saviot
fa0e93e8ac
[python/turtle] Fix Turtle::circle for negative angles
2018-12-10 16:51:16 +01:00
Léa Saviot
3249ccb695
[python/turtle] "back()" shortcut for "backwards()"
2018-12-10 14:31:44 +01:00
Léa Saviot
3b334257ad
[python/turlte] Move the turtle paws to mimic crawling
2018-12-10 14:10:44 +01:00
Léa Saviot
c95e291dd1
[python/turtle] First icon redesign
2018-12-07 16:58:59 +01:00
Léa Saviot
e836593ff9
[kandinsky] In KDContext::getPixels: beware of rects crossing the screen
...
This fixes a display glitch on the device, when using Python's turtle
module and doing the command forward(200).
2018-12-07 11:30:32 +01:00
Léa Saviot
c8a5972243
[python/turtle] Turtle::circle(radius, angle)
2018-12-07 10:51:14 +01:00
Léa Saviot
cc3beb6014
[python/turtle] Turtle::reset() method
2018-12-06 17:26:43 +01:00
Léa Saviot
9c9355deba
[python/turtle] Use Escher::Metric values instead of copying them
2018-12-06 17:26:43 +01:00
Léa Saviot
3ca1790908
[python/turtle] The Y axis is oriented upwards
2018-12-06 17:26:35 +01:00
Émilie Feral
2d97b43e63
[poincare] Fix Power::compute precision on real numbers
...
Fix bug: if we define f(x) = x^3-x-6, f(2) was not equal to 0 in the
values table
2018-12-06 15:13:36 +01:00
Émilie Feral
f7193602ef
[calculation] Bug in the subview selected with heigh cells
...
In SelectableTableView::selectCellAtLocation, we call 'tableViewDidChangeSelection'
before scrolling. Therefore, the cell with updated with the right selected subview
is not the one drawn... To solve this issue, we keep the selectedSubview ('model')
in the HistoryController instead of in the limited-lifespan view.
2018-12-06 14:52:23 +01:00
Léa Saviot
432e259f30
[python/turtle] Speed max and min should produce the same behavior
2018-12-06 13:55:07 +01:00
Léa Saviot
d530637591
[python/turtle] Fix speed type
2018-12-06 13:38:05 +01:00
Léa Saviot
e769255c05
[python/turtle] Default pen size is 1
2018-12-06 11:55:29 +01:00
Léa Saviot
4b3ce7a7f1
[python/turtle] Fix Turtle::setSpeed
...
If speed > 10 or < 0.5, it should be set to 0. When speed is 10 or 0,
the drawing should be instantaneous. Default speed is 3.
2018-12-06 11:55:20 +01:00
Léa Saviot
1e78f20ac1
[python] Return after interruption in possibly long turtle methods
...
forward(100) with speed = 3 can now be interrupted.
2018-12-06 11:48:42 +01:00
Léa Saviot
49e8a501e7
[python] Fix micropython_port_interruptible_msleep
...
It now gets interrupted. Turtle drawing can now be interrupted too.
2018-12-05 17:41:16 +01:00