1 | initial version |
I'm not sure exactly what you are aiming for, but in a sagews worksheet in CoCalc, you can do the following.
@interact
def go(f1=x+1,f2=x+2, a=slider(1,5,1,default = 3)):
p1=plot(a*f1,(x,-3,3))
p2=plot(f2,(x,-3,3))
show(p1+p2)
2 | No.2 Revision |
I'm not sure exactly what you are aiming for, but in a sagews worksheet in CoCalc, you can do the following.
@interact
def go(f1=x+1,f2=x+2, a=slider(1,5,1,default = 3)):
p1=plot(a*f1,(x,-3,3))
p2=plot(f2,(x,-3,3))
p2=plot(f2+a,(x,-3,3))
show(p1+p2)