You may also use DPlot's built-in function generator. Using this function generator you can create functions of the form y=f(x), for example:
Trigonometric functions |
y=sin(x) y=cos(x) y=tan(x) etc. |
Bessel functions: |
BESSELJ (first kind) and BESSELY (second kind) |
Distribution functions: |
CDF, NORMDIST, NORMDISTCDF, NORMINV, NORMRAND |
Date functions: |
DATE, DAY, MONTH, YEAR, WEEKDAY, WEEKNUM |
Other functions: |
ERF, FACT, rounding functions, CEIL, FLOOR, FPOWER, GCD, LCM, MAX, MIN, MOD, PMT |
When using these functions you do not have to compute the function values by yourself, DPlot will do so for you instead.
The following example shows how to use the BESSELJ function of the first kind for order 0:
Dummy=FNDplot_send_cmd("[FunctionOfXY1Y2(""f=BESSELJ(x,0)"",0.01,10,0.1)]")
It creates a new curve with the Bessel function of the first kind where x ranges from 0.01 to 10 with spacing 0.1. The x range as well as the spacing are optional (see description of the DPlot macro command FunctionOfXY1Y2 in the DPlot manual).
The next example demonstrates how to create a normal distribution function for x with mean=5 and standard deviation=1.2, using the x range 0..10 and an x spacing of 0.1
Dummy=FNDplot_send_cmd("[FunctionOfXY1Y2(""f=NORMDIST(x,5,1.2)"",0,10,0.1)]")
|