Skip to content
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

[Web simulator] Fix screenshot #1744

Open
wants to merge 9,518 commits into
base: master
Choose a base branch
from
Open

[Web simulator] Fix screenshot #1744

wants to merge 9,518 commits into from

Conversation

RedGl0w
Copy link
Contributor

@RedGl0w RedGl0w commented Jan 7, 2021

on windows 10 32 bits with Firefox 64.0.2 , when using .click() on a dom element which isn't in the body, the function returns undef but doesn't open the link, and fails silently.
This fixes this issue

EmilieNumworks and others added 30 commits June 4, 2020 14:50
This fixes the following bug: input _ns, go to additional results -->
crash
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.
EmilieNumworks and others added 23 commits September 30, 2020 17:30
Ion::Haptics::isEnabled is per platform.
This fixes the following bug: add the sequence, u(n)=2^n. On the graph,
go to "sum of terms" and try to sum terms from 0 to 18 by moving the
cursor. It hangs.
Add the possibility to use a double-typed evaluator when tracing a
curve, useful when errors caused by float approximation mess with the
drawing.

Change-Id: I3ab410deec4823149239b0a26b1885fd2a493226
Change-Id: Ia603a2fb1553b6dfc038d2a28472ce48e41936db
Change-Id: I8aad13c6bce719ba8f3a30cd86f06f7c89ec041e
Change-Id: Iae974aa2bee12e6c56bad84fd3b45093fb2a856f
Change-Id: I0f27277ea704f81e316c7ff78fb7bed8c70ff4ae
Change-Id: Icfd19cbad5472f6bf81a2a1accb88e79ab7a115b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants