NLA-lib Explorer

Rounded roots of order a power of two

Library · Source module

Rounded roots of order a power of two

A k-th root of a nonnegative scalar with k = 2^m is computed by m rounded square roots, with relative error at most 3\boldsymbol{u}: the square root halves the relative error of its input and adds \boldsymbol{u}. No root-finding routine is needed for such k; for example, [BanksGarzaVargasSrivastava2022, Lemma 2.1] assumes a Newton routine for general k, with unspecified constants c_{\mathrm{root}}, C_{\mathrm{root}}.

Main definitions

* NLAlib.sqrtIter: m square roots on the machine.

Main results

* NLAlib.Ops.StdModel.abs_sqrtIter_sub_le: the relative error of m rounded square roots. * NLAlib.abs_rpow_inv_sub_le_of_abs_sub_pow_le: a k-th root keeps a relative error.

Declarations