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

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

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

Scilabヘルプ >> Elementary Functions > Complex > isreal

isreal

変数が実数または複素数のエントリかどうかを調べるc

呼び出し手順

t = isreal(x)
t = isreal(x,eps)

引数

x

浮動小数点数のエントリまたは係数を有するベクトルまたは行列

eps

a positive or null real number (default value = 0)

t

論理値

説明

isreal(x) は, xが実数変数として保持されている場合に真, xに虚部(0の場合もある)を保持する変数の場合に偽 を返します.

isreal(x,eps)xが実数変数として保持されているか, 虚部の浮動小数点数の絶対値の最大値が eps以下の場合に 真を返します.

isreal([1 2])
isreal(1+0*%i)
isreal(1+0*%i,0)

// Sparse complex matrix:
isreal(sparse([1-%i -3+4*%i]))

// Complex polynomial:
p = (1-2*%s)^2
isreal(p)

// Complex rational fraction:
r = [ (%i-%s)/%s^2 %s/(2-%s)]
isreal(r)

履歴

VersionDescription
6.0 Extension to rationals
Report an issue
<< imult Complex real >>

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:53:18 CET 2020