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
- 浮動小数点数のエントリまたは係数を有するベクトルまたは行列 
- 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)
履歴
| バージョン | 記述 | 
| 6.0 | Extension to rationals | 
| Report an issue | ||
| << imult | Complex | real >> |