Navigation:  Menu Commands > Generate Menu >

X=f(T), Y=g(T), Z=h(T) command (Generate menu)

JR   Viewer

Print this Topic Previous pageReturn to chapter overviewNext page

Generates X,Y,Z triplets that are all functions of an independent parameter T. 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 3D scatter 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 T > 5 then Z=T^2, otherwise Z=(10-T)^2" can be expressed with if(T<5,T^2,(10-T)^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 "2T" as "2*T".

Example:

With radians selected,

X=sin(2*T)

Y=sin(3*T)

Z=T

from T=0 to 6.28 results in:

Prevent divide by zero errors
If this box is unchecked, DPlot will trap divide by zero and many other math errors (e.g. logarithm of a non-positive value), report the value of X and Y where the error occurred, and will not generate a surface. If this box is checked, when DPlot traps a math error it will shift T 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 T.

Constants

You can specify up to 10 constants to use in place of numerical values in your equation. Often the use of constants will make your equation more readable and less error-prone.

Expand constants in legend/title

If unchecked, the legend entry will generally match the equation as entered (plus a few formatting changes for subscripts and superscripts). If checked, any constants in the equation will be replaced by their numeric values. You can hide the legend by right-clicking and selecting Hide Legend. Move the legend by clicking and dragging. Other legend parameters are accessible via the right-click menu, or by selecting the Legend/Labels command on the Text menu.)

 

 


Page url: https://www.dplot.com/help/index.htm?helpid_xyz_of_t.htm