Generates X,Y,Z triplets on a rectangular grid. If the active document contains a 3D scatter plot, a new data set will be created by this command and added to this document. For all other plot types, this command automatically opens a new window (if the current window contains a plot) and generates a contour plot of the generated data.
Function (sin, cos, etc.) arguments must be in parentheses. See the list of available functions.
You can use placeholder codes for certain data parameters. For example “$ZMAX” will be replaced with the maximum Z value of the surface. For more information on placeholder codes click here.
You can create conditional equations with the if function. The if function takes the form if(test,if_true,if_false), where test is the condition you want to check, if_true is the value the equation takes if test is true, and if_false is the value taken if test is false. For example, "if x > 5 then z=x^2, otherwise z=(10-x)^2" can be expressed with if(x<5,x^2,(10-x)^2).
By default, angular input values are in radians. You can set angles to degrees by clicking the degrees option button.
DPlot will automatically substitute the value of pi (3.141592653589793...) for "PI", "pi", or "Pi"
NOTE: Be specific. DPlot does not interpret "2X" as "2*X".
Example:
With radians selected, Z=cos(X)*sin(Y)
from X=-3.14 to 3.14 and Y=-3.14 to 3.14 results in:

This command makes use of the RunicSoft Function Parser from Andreas Hartl (FParser.dll in the DPlot folder).
Prevent divide by zero errors
If this box is unchecked, DPlot will trap divide by zero errors, report the value of X and Y where the error occurred, and will not generate a curve. If this box is checked, when DPlot traps a divide by zero it will shift X and/or Y by a very small number and attempt the calculation again. This feature might be useful for generating curves of certain functions that would normally fail at specific values of X and Y.
Note: As far as DPlot is concerned, the grid produced by this operation retains the same constant spacing in X and Y, though X and/or Y may be shifted by a small value at one or more grid intersections.
Overwite existing surface
If checked, the existing surface is deleted and replaced with the surface produced by this command, in the same document window. If unchecked, a new document is created. This box is hidden if the currently active document has no plot or if the plot for the active document is anything other than 3D points on a rectangular grid. For existing 3D scatter plots, the new data will be added to the existing graph as a new data set. For all other data types a new document will be created.
Page url: http://www.dplot.com/help/index.htm?helpid_functionz.htm