def piecewise_lin_int(list_of_functions): li=[SR(y[0]).integral(x,y[1],y[2]) for y in list_of_functions] return sum(li)
#Example print piecewise_lin_int([[0,0,1],[1,1,2],[2*x,2,3]]) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org