Search code examples
maple

Plotting 3 inequations with 3 variables in maple


I need to plot this in maple

3x1+y+z<=180
x<=12
x+y+4z<=190

How can I do a plot in Maple? I'm using Maple 13


Solution

  • You plot inequalities with the inequal command from the plots library, and you can plot multiple equations by putting them in brackets:

    plots[inequal]([3x1+y+z<=180, x<=12, x+y+4z<=190])
    

    If a given plot command doesn't support multiple plots, you can always do the plots separately and combine them with display:

    with(plots):
    plot1 := inequal(3x1+y+z<=180):
    plot2 := inequal(x<=12):
    plot3 := inequal(x+y+4z<=190):
    display([plot1, plot2, plot3])