<< Infer internals Type >>

Scilab Help >> Code Matlab => Scilab > internals > Operation

Operation

Generates the Scilab pseudo-code representing an operation

Syntax

op = Operation(operator, operands, out)

Arguments

op
Tlist of type "operation", with fields operator, operands, and out.

operator
operator symbol (character string). Supported codes are: "''", ".''", "~", ":", "+", "-", "*", ".*", ".*.", ".^", "/", "./", "\", "==", "<>", "<", "<=", ">", ">=", "|", "||", "&", "&&", "cc" (Columns horizontal Concatenation [,]), "rc" (Rows vertical concatenation [;]), "ccc" (Cells horizontal concatenation {,}), "crc" (Cells vertical concatenation {;}), "ins" (insertion), "ext" (extraction).

operands
List of Tlists representing operands, of type "cste" (ex: 1.23), "variable" (ex: A), "funcall" (ex: gcf()), or "operation" (ex: (1+3)).

out
List of TLists representing the operation result(s) (most often unique). Each result is represented as a M2SCI tlist. Default value: list().

Description

This function creates a tlist representing an operation when using M2SCI. All input parameters values are verified to be compatible with "M2SCI tlists".

See also

History

VersionDescription
6.1.1 out is now optional: default = list().

Report an issue
<< Infer internals Type >>