Untitled

383 days ago by sunnypham07

def foo(f): return plot (sin(2.*pi*x*f),(x,0,10)) 
       
@interact def _(f=(.1,1,.1)): show(foo(f)) 
       

Click to the left again to hide and once more to show the dynamic interactive window

v = [] 
       
html('<h2>Quadratic Root Etch-a-sketch</h2>') 
       

Quadratic Root Etch-a-sketch

Quadratic Root Etch-a-sketch

@interact def _(a=[-10..10], b=[-10..10], c=[-10..10]): f = a*x^2 + b*x + c == 0; show(f) soln = solve(a*x^2 + b*x + c == 0, x)[0].rhs() show(soln) P = tuple(CDF(soln)) v.append(P) show(line(v, rgbcolor='purple') + point(P, pointsize=200)) 
       

Click to the left again to hide and once more to show the dynamic interactive window

@interact def _(a=[-10..10], b=[-10..10], c=[-10..10]): f = a*x^2 + b*x + c == 0; show(f) soln = solve(a*x^2 + b*x + c == 0, x)[0].rhs() show(soln) P = tuple(CDF(soln)) v.append(P) show(line(v, rgbcolor='purple') + point(P, pointsize=200)) 
       

Click to the left again to hide and once more to show the dynamic interactive window