Suppose we have couple of linear inequalities like 2x-5y<=6
and x+y>=0
, how do we plot the two inequalities? To extend this, if we have multiple such inequalities how do we try to solve this graphically?
You can try ImplicitEquations
:
using ImplicitEquations, Plots
f(x,y) = 2x - 5y - 6
g(x,y) = x + y - 0
plot((f < 0) & (g > 0))
Resulting in the region over the default rectangle [-5,5], [-5,5]:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With