Analysis: Mathematics: Simple Curve Math
Perform simple arithmetic on a curve or XY data range.
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | iy1 |
Input XYRange |
|
Input XY data range or curve |
Operator | operator |
Input int |
|
Operator
|
Operand | operand |
Input int |
|
The operand type.
|
Reference Data | iy2 |
Input XYRange |
|
Specifies a curve (XY Range) as operand. This option is available when you select Reference Data from the Operand drop-down. When the two datasets' coordinates differ, the two curves will be interpolated or extrapolated with linear interpolation before the specified operation is performed. |
Constant | const |
Input double |
|
Specifies a constant as operand. This option is available when select Const from Operand drop-down. |
Formula | formula |
Input string |
|
Specifies the formula to calculate, in which y1 means Input1 and y2 means Reference data. This option is available when Custom is selected from Operator drop-down list. |
Use Common Range Only | common |
Input int |
|
Operate on the common range between the two curves. This checkbox is available when select Reference Data from Operand drop-down. |
Rescale Source Graph | rescale |
Input int |
|
Specify whether to rescale the source graph after arithmetic operation. |
Output | oy |
Output XYRange |
Specifies the output data range. In script, the default option is <input>, while in GUI, defult is <new>. See the syntax here. | |
X Minimum | xmin |
Output double |
|
Minimum X value of output curve |
X Maximum | xmax |
Output double |
|
Maximum X value of output curve |
X Mean | xmean |
Output double |
|
Mean X value of output curve |
Y Minimum | ymin |
Output double |
|
Minimum Y value of output curve |
Y Maximum | ymax |
Output double |
|
Maximum Y value of output curve |
Y Mean | ymean |
Output double |
|
Mean Y value of output curve
|
mathtool -d;
The original curve will be subtracted. The result should show as follows:
Please refer to this page in the User Guide for more information.