Plot[x^3, {x, -1, 3 || 7, 10}]
Note that the intervals of the function are separated. There are two intervals, (- 1,3) and (7,10)
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityUnless, I completely misunderstood the question:
Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]},
PlotRange -> Full]
Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]},
PlotRange -> Full]
The following range does not play nice with other ranges.
Plot[x^3, {x, 30, Infinity}]
Of course, I may have missed ormisunderstood something.
Plot[x^3, x ∈ Interval[{-1, 3}, {7, 10}]]
$\endgroup$Plot[x^3, x \[Element] Interval[{-1, 3}, {7, 10}, {20, 22}, {30, Infinity}]]
Why can't I draw a function image? $\endgroup$Interval
. Now we can only usingPlot[x^3, {x, 30, ∞}]
$\endgroup$