function

PAWでは、色々な関数(1次元・2次元)をplotすることができます。関数は FORTRANの関数で入力します。まずは1変数の関数から書きます。

PAW> fun/plot x*sin(x)*exp(-0.1*x) -10 10

関数

f(x) = x sin(x) e-0.1 x

のplotを-10から10までの範囲で描きます。

次に、2変数関数を描きます。

PAW> fun2 200 abs(sin(x)/x)*(cos(y)*y) 40 -6 6 40 -6 6

関数

f(x,y) = |sin(x)/x| y cos(y)

のplotをhistの時と同様にx軸方向に-6から6まで40個ずつ、y軸方向に-6から6まで 40個ずつ描きます。

PAW> hist/plot 200
PAW> hist/plot 200 contour
PAW> hist/plot 200 surf
PAW> hist/plot 200 lego
PAW> hist/plot 200 box

などはhistの時と同様に書けます。

目次