Am I not inside the domain ?
x=var('x')
f = Piecewise([[(0,pi/2),-1],[(pi/2,pi),2]])
plot(f(x),(x,0,pi))
**?
ValueError: Value not defined outside of domain.
?**
x=var('x')
f = Piecewise([[(0,pi/2),-1],[(pi/2,pi),2]])
plot(f(x),(x,0,pi))
**?
ValueError: Value not defined outside of domain.
?**
Plotting a piecewise function is different to plotting 'normal' functions.
f = Piecewise([[(0,pi/2),-1],[(pi/2,pi),2]])
f.plot()
Asked: 2014-11-11 01:33:58 -0600
Seen: 117 times
Last updated: Nov 12 '14
integral of piecewise function: error
Piece-wise functions and plotting
Piecewise functions and legend label
Multivariate piecewise function?
Is there a way to relabel the domain of a permutation group?
Piecewise Symbolic Function with Conditional Statement
Piecewise curve fitting polynomial data