Mathematical Principles for Scientific Computing and Visualization  
http://www.farinhansford.com/books/scv
by Gerald Farin and Dianne Hansford


This notebook illustrates a special bivariate function, a plane, l(x,y) = 1-x-y.
The plane is plotted for x and y over [0,1].

See Chapter 11: Computing with Multivariate Functions for details.

Updated May 2008

(* Set output folder to folder this files lives in *)

SetDirectory[ToFileName[Extract["FileName"/.NotebookInformation[EvaluationNotebook[]],{1},FrontEnd`FileName]]];

(* Create plane equation *)

l[x_,y_]:=1-x-y;

(* Create plot *) 
pic=Plot3D[l[x,y],{x,0,1},{y,0,1},Mesh->False, ColorFunction->Function[{x,y,z},Hue[z]],
ViewPoint->{1,-1,1},BaseStyle->{"FontFamily"->"Helvetica","FontSize"->11}]

(* Output plot to postscript file *)
Export["plane.eps",pic];