Tag Info

New answers tagged

1

As suggested by kguler, using Piecewise is easiest; however, you can also use Show or Boole. Show[ Plot[(2*x), {x, 1, 3}], Plot[(x^2), {x, 3, 5}], PlotRange -> All, AxesOrigin -> {0, 0}] Plot[ 2 x Boole[1 < x < 3] + x^2 Boole[3 < x < 5], {x, 0, 5}, AxesOrigin -> {0, 0}, PlotStyle -> Red]



Top 50 recent answers are included