Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought


msqrt()           Multiple-Precision Mathematics          msqrt()




Compute square root of multiple-precision integer

#include <mprec.h>
void msqrt(a, b, r)
mint *a, *b, *r;

The COHERENT  system includes a suite of  routines that allow you
to  perform multiple-precision  mathematics.  The  function msqrt
sets the multiple-precision integer  (or mint) pointed to by b to
the  integral portion  of the  positive square  root of  the mint
pointed  to by  a.   It sets  the  mint pointed  to by  r to  the
remainder.  The value pointed to  by a must not be negative.  The
result of the operation is defined by the condition


             a = b * b + r.


***** See Also *****

multiple-precision mathematics



































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026