I am using Sage to plot a slope field for x\'=-x+80-40*sign(t-6). My coding looks like:
var(\'t,x\') def sign(t): if t > 0: return 1 if t == 0: