Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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ヘルプ >> Differential Equations, Integration > feval

feval

関数(または外部ルーチン)を評価する

呼び出し手順

[z]=feval(x,y,f)
[z]=feval(x,f)

パラメータ

x,y

ベクトル

f

関数または文字列 (Fortran または C コール用)

説明

ベクトル型の1つまたは2つの引数をとる関数について,以下のように 複数回の評価を行ないます :

z=feval(x,f)

z(i)=f(x(i))で定義される ベクトル z を返します.

z=feval(x,y,f)

z(i,j)=f(x(i),y(j)) となる 行列 z を返します.

f は外部(関数またはルーチン)で, 1つまたは2つの実数の引数をとります. f により返される結果は,実数または複素数となります. Fortran コールの場合,関数 'f' を (ディレクトリSCI/modules/differential_equations/src/cの) サブルーチンfevaltable.cの中で 定義する必要があります.

deff('[z]=f(x,y)','z=x^2+y^2');
feval(1:10,1:5,f)
deff('[z]=f(x,y)','z=x+%i*y');
feval(1:10,1:5,f)
feval(1:10,1:5,'parab')   //See ffeval.f file
feval(1:10,'parab')
// For dynamic link (see example ftest in ffeval.f)
// you can use the link command (the parameters depend on the machine):
// unix('make ftest.o');link('ftest.o','ftest'); feval(1:10,1:5,'ftest')

参照

  • evstr — 式の評価
  • horner — 多項式/有理数の評価
  • execstr — 文字列中のScilabコードを実行
  • external — Scilabオブジェクト, 外部関数またはルーチン
  • link — dynamic linker
Report an issue
<< diff Differential Equations, Integration impl >>

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:
Fri Apr 11 14:18:54 CEST 2014