Draw bounded Region



from
http://www.math.utexas.edu/pipermail/maxima/2012/028781.html

How to draw bounded region of Linear Programming Problems
such as x>=0, y>=0, 2x+y<=8 and -x+y<=2
Regards, Subiono


********************************************************************

(%i1) load(draw)$

(%i2) set_draw_defaults(
  grid=true,
  proportional_axes=xy)$

(%i3) wxdraw2d(
   x_voxel = 30,
   y_voxel = 30,
   fill_color=skyblue,
   region(x>=0 and y>=0 and 2*x+y<=8 and -x+y<=2,x,-1,5,y,-1,5));
(%t3)  << Graphics >>
(%o3)

(%i4) build_info();
(%o4) build_info("5.27.0","2012-04-24 08:52:03","i686-pc-mingw32","GNU
Common Lisp (GCL)","GCL 2.6.8")

Aleksas D