Plotting Inequalities with Mathematica

  • Thread starter Thread starter Taniya Ghosh
  • Start date Start date
  • Tags Tags
    Mathematica Plots
Click For Summary
To plot inequalities in Mathematica, one can use the Reduce function to determine the domain where the inequality constraints are satisfied. Specifically, using Reduce[g[x,y]>0, {x,y}] helps identify valid x values for further plotting. This information can then be applied in a ContourPlot for the equation f(x,y)==0 over a specified range. The discussion suggests that there may not be a more general method for restricting plot domains in Mathematica. Overall, the thread seeks effective techniques for visualizing regions defined by inequalities and equations.
Taniya Ghosh
Messages
1
Reaction score
0
I have an equation and some inequality constraints, for example,

f(x,y)=0 and g(x,y)>0

I want to see the region (values of x and y) in a graph where both the constraints are satisfied in Mathematica. Any help will be greatly appreciated. Thanks!
 
Mathematics news on Phys.org
Does
Reduce[g[x,y]>0,{x,y}]
give you enough domain information about x that you would then be able to use that in
ContourPlot[f[x,y]==0,{x,somevalue,someothervalue}]

I have searched and not found a more general method of restricting the domain of plots.

Questions like this might be better placed in
Physics Forums->Other Sciences->Computing & Technology->Math & Science Software
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 0 ·
Replies
0
Views
620
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K