next up previous contents
Next: 非線型方程式 Up: Octave メモ Previous: 常微分方程式系

関数

octave:1> function y=f(x)
> y = x * x;
> endfunction 
octave:2> f(1)
ans = 1
octave:3> f(2)
ans = 4
octave:4> f(3)
ans = 9



Toru Sasaki
2001-07-23