 多倍長計算：平方根

＜概要＞
　平方根を多倍長で計算します。ニュートン法で計算しています。

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

＜インストール＞

    ソースを適当なディレクトリにデータファイルとしてコピーします。 

＜パラメータ＞
　平方根を計算する数値と桁数を指定します。有効桁を確保するために指定した数字に５を足した桁数が計算されます。デフォルトは2と10です。TRACEコマンド用のパラメータが指定できます。

＜実行＞
　ソースをコピーしたディレクトリでコマンドラインから起動します。何桁まで計算したかを表示した後、平方根が表示されます。

例：
[F:\]sqr1 3 20
SQUARE ROOT OF 3 : 25 DIGITS
ANS = 1.732050807568877293527446

[F:\]


ENGLISH TRANSLATION WITH GOOGLE
--------------------------------
Multiple Precision Arithmetic: Square Root

<Overview>
　Calculate the square root in multiple precision. Calculated using Newton's method.

<Prerequisites and Restrictions>
 nothing special.

<Installation>

     Copy the source to a suitable directory as a data file.

<Parameter>
Specify the numerical value and the number of digits to calculate the square root. The number of digits is calculated by adding 5 to the specified number to ensure significant digits. Defaults are 2 and 10. You can specify parameters for the TRACE command.

<Execute>
　Start from the command line in the directory where the source was copied. After displaying the number of digits calculated, the square root is displayed.

example:
[F:\]sqr1 3 20
SQUARE ROOT OF 3:25 DIGITS
ANS = 1.732050807568877293527446

[F:\]


LINK
https://web.archive.org/web/20041118052418/http://www2u.biglobe.ne.jp/~gwm01021/rexx5-3.htm