Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский
Scilabヘルプ >> 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

  • Funcall — Create the converted pseudo-code representing a function call
  • Variable — Generates the Scilab internal code representing a variable (without its content)
  • Cste — Create a tree representing a constant
  • Infer — Create a tree containing inference data
  • Contents — Create a tree containing contents inference data
  • Type — Create a tree containing type inference data
  • Equal — Generates the Scilab internal code representing an instruction "LHS = RHS"

History

バージョン記述
6.1.1 out is now optional: default = list().
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:38:07 CET 2022