Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. r1 = region[{{4, -3}, {-7, 6}}];
  2. r2 = region[{{4, -7}, {0, 7}}];
  3. RegionPlot[{r1, r2}, PlotRange -> {-10, 10}, BaseStyle -> 16, PlotLegends -> {r1, r2}]
  4.  
  5. r3 = RegionDifference[r1, r2];
  6. RegionPlot[{r3}, PlotRange -> {-10, 10}, PlotLegends -> {r3}, BaseStyle -> 16]
  7.  
  8. r4 = RegionDifference[r2, r1];
  9. RegionPlot[{r4}, PlotRange -> {-10, 10}, PlotLegends -> {r4}, BaseStyle -> 16]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement