Scilab 6.0.0
Scilabヘルプ >> Elementary Functions > Discrete mathematics > primes
primes
素数関数
呼び出し手順
[y]=primes(x)
引数
- x
実数のスカラー
- y
ベクトル
説明
実数 x
を指定すると, primes(x)
は,1 と x
の間の全ての素数を含む
ベクトルy
を返します.
x<2
の場合,
primes(x)
は空の行列を返します.
例
x=35 y=primes(x)
参照
- factor — 素因数分解関数
Comments
Add a comment:
Please login to comment this page.