Download EES User`s Manual

Transcript
Built-in Functions
Chapter 4
'ColumnName' is a integer value, string constant or string variable the identifies the
column. If an integer value is provided, it is taken to be the column number in the Lookup
table. If a string constant is provided, it is assumed to be the name of the variable for the
column in the Lookup table. The single quotes that normally identify a string constant are
not required. If a string variable is provided, it must contain the name of one of the
columns in the Lookup table.
sumParametric ('TableName', 'ColumnName', RowStart, RowStop) provides the same
capability as described above for sumLookup, but for the Parametric table.
tableName$ returns the name of Parametric Table that is currently being used in the
calculations. Parametric table names are seen on the tabs at the top of the Parametric Table
Window. The name of a Parametric Table can be changed by right-clicking on the tab.
This function has no arguments and it should only be used only when calculations are
initiated with the Solve Table or Min/Max Table command in the Calculate menu.
tableRun# returns the Parametric Table run number, i.e., the current row in the Parametric
Table or zero, if the Parametric Table is not being used in the calculations. This function
should only be used with the Solve Table or Min/Max Table command in the Calculate menu.
tableValue(Row, Column) or tableValue(Row, ‘VariableName’) returns the value stored in a
specified row and column of the Parametric Table. The column number may be either
entered directly as an integer number or indirectly by supplying the variable name for the
desired column, enclosed by the single quotes, e.g., TableValue(6,’ABC’)7. An error
message will be generated if the row or column (or corresponding variable name) does not
exist in the Parametric Table or if the referenced cell does not have a value. The
tableValue function is useful in the solution of some 'marching-solution' type problems in
which the current value of a variable depends on its value in previous calculations.
tan(X) will return the tangent of the angle provided as the argument. The required units
(degrees or radians) of the angle is controlled by the unit choice made for trigonometric
functions with the Unit System command.
tanh(X) will return the hyperbolic tangent of the value provided as the argument.
trunc(X) will return a value equal to the integer value corresponding to the argument rounded
toward zero.
7
For compatibility with earlier versions, EES will also accept the #symbol preceding the variable name in place
of enclosing it within single quotes, e.g., TableValue(6, #ABC).
175