-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a color menu in graph and list #1741
base: master
Are you sure you want to change the base?
Conversation
matplotlib shape)
Added a condition for being considered empty. Allows axis("on") or axis((0,1,2,3)) to display something with show() This behavior is the same as the python module Change-Id: If5f3b07c280ee9ead2bc23d23cbbb4f01da7eae5
Change-Id: Idea0ce07cbc800139539f9d3fb27811920645184
Allows user to print strings with the turtle Change-Id: I06a3832f6fa36d29506be10c48a1b2fb34cb69fb
Change-Id: I3ff3d4fb3552bcb8c375c77651db3b7c44991646
Change-Id: I29476d8148ad98285505adc460b90628573518fa
Scenario: write a ascrip "from matplotlib.pyplot0 import *" than open the variable box
Scenario: add the script from matplotlib.pyplot import *\nfrom math import *\n\ng=9.81\n\ndef x(t,v_0,alpha):\n return v_0*cos(alpha)*t\ndef y(t,v_0,alpha,h_0):\n return -0.5*g*t**2+v_0*sin(alpha)*t+h_0\n\ndef vx(v_0,alpha):\n return v_0*cos(alpha)\ndef vy(t,v_0,alpha):\n return -g*t+v_0*sin(alpha)\n\ndef t_max(v_0,alpha,h_0):\n return (v_0*sin(alpha)+sqrt((v_0**2)*(sin(alpha)**2)+2*g*h_0))/g\n\ndef simulation(v_0=15,alpha=pi/4,h_0=2):\n tMax=t_max(v_0,alpha,h_0)\n accuracy=1/10**(floor(log10(tMax))-1)\n T_MAX=floor(tMax*accuracy)+1\n X=[x(t/accuracy,v_0,alpha) for t in range(T_MAX)]\n Y=[y(t/accuracy,v_0,alpha,h_0) for t in range(T_MAX)]\n VX=[vx(v_0,alpha) for t in range(T_MAX)]\n VY=[vy(t/accuracy,v_0,alpha) for t in range(T_MAX)]\n for i in range(T_MAX):\n arrow(X[i],Y[i],VX[i]/accuracy,VY[i]/accuracy)\n grid()\n show()tan(if :\n \n celse:\n )c then autocomplete after the last c.
expression contains a unit but we can't extract it (2^_min for instance)
No scenario, but it seems right to reset m_shortenResultCharCount
Example script: from turtle import * hideturtle() We had "hideturtle" in the local variables, and "hideturtle()" in the imported. Now we should only have the latter.
To prevent crashes caused by failed casts from char to float, removed optimization. Change-Id: Ia91aafa007538b6c05f7aace5e5962989d313c98
checkFloatType function used to check for an obj type before cast. This is already done by mp_obj_get_float Change-Id: I745bb3066328678ab0b2a2149c8f38a84f26fbd2
denominator() at reduction - there is no reason that there is no unit at this stage...)
reduced expression
containing matrix of complex form (for instance ConfidenceInterval). This fixes the following bug: input (2_m*confidence(0.2,12))^(-1) --> crashes
the autocompleted one
numworks/setup-msys2
Change-Id: I0f27277ea704f81e316c7ff78fb7bed8c70ff4ae
Change-Id: Icfd19cbad5472f6bf81a2a1accb88e79ab7a115b
This reverts commit 110f333.
This reverts commit 28dddb4.
|
||
constexpr const I18n::Message MessageTableCellWithColor::k_textForIndex[Palette::numberOfDataColors()]; | ||
|
||
constexpr const uint8_t colorMask[MessageTableCellWithColor::ColorView::k_colorSize][MessageTableCellWithColor::ColorView::k_colorSize] = { // FIXME Can't link with constexpr static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the // FIXME
J'aimerais bien que mes élèves puissent choisir les couleurs de leurs fonctions ! |
e385767
to
974bf08
Compare
bb3baa7
to
e4c3a98
Compare
Rebase of #1385 on master, and with a todo list which will be certainly done :
color
suffixScreenshot :