Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

All published worksheets from http://sagenb.org

189900 views
ubuntu2004

Standard Gimp

@interact def _(scale=slider(0.01,10,default=1)): show(plot(lambda x: max(0.125,x^0.5)*scale,(x,0,1)))

Gimp Painter

@interact def _(scale=slider(0.01,10,default=1),power=slider(0.1,10,default=0.5),minscale=(0,1)): show(plot(lambda x:(minscale+(1-minscale)*x^power)*scale,(x,0,1)))
scale 
power 
minscale 

Both on one, blue is standard, red is modified

@interact def _(scale=slider(0.01,10,default=1),power=slider(0.1,10,default=0.5),minscale=(0,1)): p1=plot(lambda x:(minscale+(1-minscale)*x^power)*scale,(x,0,1),color="red") p2=plot(lambda x: max(0.125,x^0.5)*scale,(x,0,1),color="blue") show(p1+p2)
scale 
power 
minscale