Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Scilab > Scilab palavra-chave > percent

percent

caractere especial (%)

Descrição

Alguns nomes de variáveis predefinidas começam com ' %', tais como %i (para sqrt(-1)), %inf (para Infinity), %pi (para 3.14...), %T (para a constante booleana"true"),...

Ainda, funções cujo nome começa com % são especiais : elas são usadas para primitivas e overloading ("sobrecarga") de operadores (ver overloading).

Por exemplo, a função %rmr realiza a operação de multiplicação (m) x*y para x e y matrizes de razões de polinômios (r). As convenções de codificação são fornecidas pelo arquivo "leia-me" no diretório SCI/modules/overloading/macros.

Exemplos

x1=tlist('x',1,2);
x2=tlist('x',2,3);
deff('x=%xmx(x1,x2)','x=list(''x'',x1(2)*x2(2),x2(3)*x2(3))');
x1*x2

Ver Também

Report an issue
<< Scilab palavra-chave Scilab palavra-chave backslash >>

Copyright (c) 2022-2023 (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:
Tue Feb 25 08:52:27 CET 2020