算術関数

　REXXにはあまり算術関数がありません。そこで、平方根、対数、三角関数を作成してみました。近似ですので正確な訳ではありませんが、そこそこ使えると思います。
　実はこのソースは、元々IBMの大型計算機環境で開発したものです。それがそのままパソコンでも動いている訳ですから、REXXの移植性はすばらしいです。

    算術関数群：算術関数をまとめてあります。 
	
	
--
 算術関数群

＜概要＞
　算術関数を集めてみました。近似ですので正確な訳ではありません。ご注意ください。
　COS（コサイン）、EXP（eのべき乗）、LOG（自然対数）、LOG10（常用対数）、SIN（サイン）、SQR（平方根）、TAN（タンジェント）があります。

＜前提条件・制限＞
　特になし。

＜インストール＞

    ソースをパスの通ったディレクトリにデータファイルとしてコピーします。SINやTANからSQR（平方根）を使用していますので一緒にコピーしてください。 

＜パラメータ＞
　数値を括弧で囲んで指定します。各関数ごとの注意点を参照してください。

＜実行＞
　関数ですのでREXXプログラムから使用する必要があります。あるいはOS/2コマンドプロンプトからなら、rexxtryコマンドでテストできます。
例：

[F:\]rexxtry say sqr(2)
1.41421356
  ................................................ REXXTRY.CMD on OS/2

[F:\]



ENGLISH TRANSLATION WITH GOOGLE
---------------------------------

Arithmetic Functions

REXX doesn't have many arithmetic functions. So I tried creating square root, logarithm and trigonometric functions. It's an approximation, so it's not an exact translation, but I think it works.
In fact, this source was originally developed on IBM's large computer environment. The portability of REXX is wonderful because it runs on a personal computer as it is.

     Arithmetic Function Group: A collection of arithmetic functions.
	 
Arithmetic function group

<Overview>
I collected arithmetic functions. It is an approximation and not an exact translation. Please be careful.
There are COS (cosine), EXP (power of e), LOG (natural logarithm), LOG10 (common logarithm), SIN (sine), SQR (square root), and TAN (tangent).

<Prerequisites and Restrictions>
 nothing special.

<Installation>

    Copy the source to a directory in your path as a data file. Since SQR (square root) is used from SIN and TAN, please copy them together.

<Parameter>
　Specify the value by enclosing it in parentheses. Please refer to the notes for each function.

<Execute>
Since it is a function, it must be used from the REXX program. Or from an OS/2 command prompt you can test with the rexxtry command.
example:

[F:\]rexxtry say sqr(2)
1.41421356
  ................................................ REXXTRY. CMD on OS/2

[F:\]


LINK
https://web.archive.org/web/20041117033241/http://www2u.biglobe.ne.jp/~gwm01021/rexx4-1.htm