## Example in Note 3

Maxima has a powerful graphics function`draw3d`. In order to use it we must first load the "draw" package.

--> load(draw)In a 3D plot a function is described in the format

Here we introduce the density function

`:=`"

--> f(x,y) := if x < y then lmd^2 * exp(-lmd * y) else 0;Also, we have to set the parameter with the symbol "

`:`" as follows:

--> lmd: 2Now we can draw a surface when "

`enhanced3d=true`" is specified.

--> draw3d(enhanced3d=true, explicit(f(x,y),x,0,1,y,0,1), user_preamble="unset colorbox")

The following wxm file contains the above code:

© TTU Mathematics