Defines a math function to plot. Note that there only two ways to define the data to plot: AddFunction and AddDataArray. Only one of these should be used in each graph.
a function of the x- and y-values, ie of the form z = f(x, y). See Demo1 as an example. The function uses conventional
syntax, the main math operators + - * / ^, logical operators, and some internal functions
Parentheses: ( ) ,
Basic operators: + - * / ^ with conventional operator precedence
Integer operators: \ mod
Logical operators: = < <= > >= <> not or xor
Internal functions: abs int fix sgn rnd sqr log ln exp sin asin cos acos tan atn
sinh asinh cosh acosh tahn atanh fact min max nCr nPr iif
Constants: pi=3.14159265358979, deg (convert radians to degrees)
Example: "iif(x>1, 2*y, 0)" --> if x is greater than one return "2*y" else return "0"
z0 setting then bar graphs will be split with higher values pointing up and lower values down. See Demo2 as an example.
Parameter | Type | Description |
---|---|---|
Func$ |
String |
A text string that defines the math function to plot. The math function give the z-value as |
nX |
Integer |
Number of elements along the x-axis |
x0 |
Single |
Minimum value on x-axis |
X1 |
Single |
Maximum value on x-axis |
nY |
Integer |
Number of elements along the y-axis |
y0 |
Single |
Minimum value on y-axis |
Y1 |
Single |
Maximum value on y-axis |
z0 |
Single |
Optional 0-value on z-axis. The default is z0 = 0. When z values occur both above and below this |
ecGraph3D Copyright © 2008, Encore Consulting Pty Ltd