AngouriMath
SqrtByIntegerRoot(PeterO.Numbers.EDecimal,PeterO.Numbers.EContext)
Method (no overloads)
Summary
The square root of a nonnegative finite x to
context , correctly rounded in its rounding mode, as PeterO's
Sqrt(PeterO.Numbers.EContext) is: the mantissa, made a whole number of
twice the digits and more by an even power of ten, has its integer square root
taken -- exactly floored, so the true root lies within one unit above it -- and a
sticky digit appended, 1 where the root was inexact, so that the rounding to the
context decides every tie as the true root would. PeterO's is Newton's iteration
in decimal; this is the integer one, faster by the same factor as the series above
it are. Zero, a negative, an infinity and NaN are PeterO's answers.
https://github.com/asc-community/AngouriMath/issues/1338
Sqrt(PeterO.Numbers.EContext) is: the mantissa, made a whole number of
twice the digits and more by an even power of ten, has its integer square root
taken -- exactly floored, so the true root lies within one unit above it -- and a
sticky digit appended, 1 where the root was inexact, so that the rounding to the
context decides every tie as the true root would. PeterO's is Newton's iteration
in decimal; this is the integer one, faster by the same factor as the series above
it are. Zero, a negative, an infinity and NaN are PeterO's answers.
https://github.com/asc-community/AngouriMath/issues/1338
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online