Syntax
FREE arg1 arg2
Description
The interpolation is not specified. The specified values apply, starting with the abscissa value up to the next table entry.
Arguments
Minimum quantity: 2
arg1
Value |
Dimension |
Meaning |
x |
DOUBLE |
Abscissa value. A table describes a functional relation. The abscissa values are to be given in ascending order. |
xexpr |
TEXT |
Abscissa value as mathematical expression |
arg2
Value |
Dimension |
Meaning |
y |
DOUBLE |
Ordinate value. A table describes a functional relation. |
yexpr |
TEXT |
Ordinate value as mathematical expression |
Scopes
CALC/CURVE
Examples
FREE 1.0 5.5
The table is constant starting at x = 1.0: y = f(x) = 5.5 up to next table entry.
FREE "\$pi" "3.0*cos(0.5*\$_x_)"
The table is not constant startting at x = p: y = f(x) = 3*cos(0.5*x) up to the next table entry. There are 2 predefined variables used, the number p and "_x_", which represents the current abscissa value.
Remark 1:
The formula interpreter contains a number of important, predefined variables and functions, which are generally applicable or applicable in different places.
Remark 2:
The evaluation is done by the mathematical interpreter of TCL. A common mistake is not noticing the difference between an integer operation and a double operation: For example, it results in the value 0 = "2/3" because it is an integer operation (both operands are integers). But we get 0.666667 = "2.0/3" because an operand is a floating point number.
|
(C) ALLPLAN GmbH |
Privacy policy |