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