I want to be able to combine two piecewise functions. For example, suppose
Piecewise1 = f=3 for 1 <=x <=2 and Piecewise2 = f=5 for 1.5<=x<=3,
I want to insert Piecewise2 into Piecewise1 such that I get:
f=3 for 1<x<1.5 and f=5 for 1.5<= x <3.
Notice that, for the overlap in [1.5,2], I prioritize the Piecewise I insert.