Module Function
Generate a grid based on a functional expression.
The function interpreter uses an expression parser that offers the folowing operators:
+ Addition
- Subtraction
* Multiplication
/ Division
^ power
sin(a)
cos(a)
tan(a)
asin(a)
acos(a)
atan(a)
atan2(a,b)
abs(a)
int(a)
sqrt(a)
int(a)
mod(a,b)
gt(a,b) returns 1 if a greater b
lt(a,b) returns 1 if a lower b
eq(a,b) returns 1 if a equal b
The Variablen are x and y
Example: sin(x*x+y*y)/(x*x+y*y)
- Author: Copyrights (c) 2003 by Andre Ringeler
 
- Specification: grid
 
- Menu: Grid|Calculus|Grid Generation
 
Parameters
|   | Name | Type | Identifier | Description | Constraints | 
| Output | Function | Grid (output) | RESULT | - | - | 
| Options | xmin | Floating point | XMIN | - | Default: -5.000000 | 
 | xmax | Floating point | XMAX | - | Default: 5.000000 | 
 | ymin | Floating point | YMIN | - | Default: -5.000000 | 
 | ymax | Floating point | YMAX | - | Default: 5.000000 | 
 | Formula | Text | FORMUL | - | Default: sin(x*x + y*y) | 
Command-line
Usage: saga_cmd grid_calculus 4 [-RESULT <str>] [-XMIN <str>] [-XMAX <str>] [-YMIN <str>] [-YMAX <str>] [-FORMUL <str>]
  -RESULT:<str>	Function
	Grid (output)
  -XMIN:<str>  	xmin
	Floating point
	Default: -5.000000
  -XMAX:<str>  	xmax
	Floating point
	Default: 5.000000
  -YMIN:<str>  	ymin
	Floating point
	Default: -5.000000
  -YMAX:<str>  	ymax
	Floating point
	Default: 5.000000
  -FORMUL:<str>	Formula
	Text
	Default: sin(x*x + y*y)