All published worksheets from http://sagenb.org
#simple example to show how to graph splines x = var('x'); f1(x) = x^2 f2(x) = -x^2 f3(x) = 1-2*x p1 = plot(f1,-1,0) p2 = plot(f2,0,1,rgbcolor=(1,0,0)) p3 = plot(f3,1,2,rgbcolor=(0,1,0)) (p1+p2+p3).show()