gnuplot:平方根の計算

gnuplot:平方根の計算

私が入力すると、sqrt(4)私は得ます。

^
invalid command

gnuplotを使って正の実数の平方根を計算するには?

ベストアンサー1

gnuplot平方根の結果を表示するには、print()次のいずれかの方法で関数を使用します。

> print(sqrt(4));

または

> a=sqrt(4);print(a);

または

> a=4;print(sqrt(a));

おすすめ記事