Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

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().
Report an issue
<< Infer internals Type >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
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