Scilab-Branch-5.3-GIT
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
isreal
変数が実数または複素数のエントリかどうかを調べるc
呼び出し手順
t=isreal(x) t=isreal(x,eps)
パラメータ
- x
 浮動小数点数のエントリまたは係数を有するベクトルまたは行列
- t
 論理値
説明
isreal(x) は,
	xが実数変数として保持されている場合に真,
	xに虚部(0の場合もある)を保持する変数の場合に偽
	を返します.
isreal(x,eps) は
	xが実数変数として保持されているか,
	虚部の浮動小数点数の絶対値の最大値が eps以下の場合に
	真を返します.
例
isreal([1 2]) isreal(1+0*%i) isreal(1+0*%i,0) isreal(1+%s) isreal(sprand(3,3,0.1))
| << imult | Complex | real >> |