0
$\begingroup$
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)

$\endgroup$
6
  • 4
    $\begingroup$ Plot[x^3, x ∈ Interval[{-1, 3}, {7, 10}]] $\endgroup$
    – cvgmt
    Mar 27 at 11:50
  • $\begingroup$ What if a certain interval contains positive or negative infinity? $\endgroup$
    – csn899
    Mar 27 at 12:04
  • $\begingroup$ Plot[x^3, x \[Element] Interval[{-1, 3}, {7, 10}, {20, 22}, {30, Infinity}]]Why can't I draw a function image? $\endgroup$
    – csn899
    Mar 27 at 12:05
  • $\begingroup$ It is impossible to do this by Interval. Now we can only using Plot[x^3, {x, 30, ∞}] $\endgroup$
    – cvgmt
    Mar 27 at 12:18
  • 1
    $\begingroup$ Do not ask questions in comments. If your original question did not adequately describe your problem then edit the question to amplify or clarify what your problem actually is. Ideally give sufficient thought to your question before you ask so that is does not need to be modified. $\endgroup$
    – Bob Hanlon
    Mar 27 at 14:34

1 Answer 1

0
$\begingroup$

Unless, I completely misunderstood the question:

Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]}, 
  PlotRange -> Full]

Mathematica graphics

Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]}, 
  PlotRange -> Full]

Mathematica graphics

The following range does not play nice with other ranges.

Plot[x^3, {x, 30, Infinity}]

Mathematica graphics

Of course, I may have missed ormisunderstood something.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.