28#include <l_interval.hpp>
35 int stagsave = stagprec, stagmax = 19, stagcalc;
38 cxscthrow(ERROR_LREAL_STD_FKT_OUT_OF_DEF(
"l_real sqrt(const l_real &x)"));
39 else if (zero_(x) || x == 1.0 )
50 if (stagprec < stagmax) stagcalc = stagprec+1;
51 else stagcalc = stagmax+1;
54 while (stagprec < stagcalc)
57 if (stagprec > stagcalc) stagprec = stagcalc;
77 int stagsave = stagprec, stagcalc, stagmax = 19;
86 ex = exa; exa = exb; exb = ex;
88 if (sign(a[1]) < 0) a = -a;
89 if (sign(b[1]==0))
return a;
93 if (6*exb < 5*exa-1071)
109 if (stagcalc > stagmax) stagcalc = stagmax;
138 int stagsave, stagmax=19;
140 if (stagprec > stagmax) stagprec = stagmax;
141 if (expo(x[1]) > 260)
147 }
else y =
sqrt(1+x*x);
155 int stagsave = stagprec, stagmax = 19;
163 y = adjust(_l_real(1.0));
166 if (stagprec < stagmax)
The Data Type dotprecision.
The Multiple-Precision Data Type l_real.
The namespace cxsc, providing all functionality of the class library C-XSC.
l_interval Sqrt3r_l_interval() noexcept
Enclosure-Interval for .
l_interval SqrtPi_l_interval() noexcept
Enclosure-Interval for .
l_real Sqrt3r_l_real() noexcept
Approximation of .
l_interval Ep2r_l_interval() noexcept
Enclosure-Interval for .
l_real Ln2_l_real() noexcept
Approximation of .
l_real Pid3_l_real() noexcept
Approximation of .
l_real E_l_real() noexcept
Approximation of .
l_interval Pi2_l_interval() noexcept
Enclosure-Interval for .
l_interval Sqrt2Pir_l_interval() noexcept
Enclosure-Interval for .
l_real Er_l_real() noexcept
Approximation of .
l_real SqrtPir_l_real() noexcept
Approximation of .
l_real LnPi_l_real() noexcept
Approximation of .
l_interval Sqrt2Pi_l_interval() noexcept
Enclosure-Interval for .
l_interval Pi_l_interval() noexcept
Enclosure-Interval for .
l_interval Sqrt2_l_interval() noexcept
Enclosure-Interval for .
cinterval power(const cinterval &z, int n) noexcept
Calculates .
l_interval Ln10r_l_interval() noexcept
Enclosure-Interval for .
l_interval Ep2_l_interval() noexcept
Enclosure-Interval for .
l_interval EpPi_l_interval() noexcept
Enclosure-Interval for .
l_real Pip2_l_real() noexcept
Approximation of .
l_real Ln10r_l_real() noexcept
Approximation of .
l_real Ln10_l_real() noexcept
Approximation of .
l_interval LnPi_l_interval() noexcept
Enclosure-Interval for .
l_real Catalan_l_real() noexcept
Approximation of Catalan Numbers.
l_interval Ep2Pi_l_interval() noexcept
Enclosure-Interval for .
l_real EpPid2_l_real() noexcept
Approximation of .
l_interval Pir_l_interval() noexcept
Enclosure-Interval for .
l_real SqrtPi_l_real() noexcept
Approximation of .
l_interval Pip2_l_interval() noexcept
Enclosure-Interval for .
l_real EulerGa_l_real() noexcept
Approximation of Euler Gamma.
l_real Pi2r_l_real() noexcept
Approximation of .
l_interval Catalan_l_interval() noexcept
Enclosure-Interval for Catalan Numbers.
l_interval Pid2_l_interval() noexcept
Enclosure-Interval for .
l_interval Sqrt7_l_interval() noexcept
Enclosure-Interval for .
l_real Ln2Pi_l_real() noexcept
Approximation of .
l_real Sqrt2Pir_l_real() noexcept
Approximation of .
l_real EpPi_l_real() noexcept
Approximation of .
l_interval E_l_interval() noexcept
Enclosure-Interval for .
l_interval Sqrt2r_l_interval() noexcept
Enclosure-Interval for .
l_real Sqrt2Pi_l_real() noexcept
Approximation of .
l_interval EulerGa_l_interval() noexcept
Enclosure-Interval for Euler Gamma.
l_real Sqrt3_l_real() noexcept
Approximation of .
l_interval Pid3_l_interval() noexcept
Enclosure-Interval for .
l_real Ep2_l_real() noexcept
Approximation of .
l_interval Sqrt3_l_interval() noexcept
Enclosure-Interval for .
l_interval SqrtPir_l_interval() noexcept
Enclosure-Interval for .
l_real Pir_l_real() noexcept
Approximation of .
l_interval Ln2r_l_interval() noexcept
Enclosure-Interval for .
l_interval EpPid2_l_interval() noexcept
Enclosure-Interval for .
l_interval Pid4_l_interval() noexcept
Enclosure-Interval for .
cinterval sqrt1px2(const cinterval &z) noexcept
Calculates .
l_interval Sqrt3d2_l_interval() noexcept
Enclosure-Interval for .
l_real Sqrt5_l_real() noexcept
Approximation of .
l_real Ep2Pi_l_real() noexcept
Approximation of .
l_interval EpPid4_l_interval() noexcept
Enclosure-Interval for .
l_real Sqrt2_l_real() noexcept
Approximation of .
l_real Ep2r_l_real() noexcept
Approximation of .
l_interval Er_l_interval() noexcept
Enclosure-Interval for .
ivector abs(const cimatrix_subv &mv) noexcept
Returns the absolute value of the matrix.
cinterval sqrt(const cinterval &z) noexcept
Calculates .
void times2pown(cinterval &x, int n) noexcept
Fast multiplication of reference parameter [z] with .
l_real Sqrt2r_l_real() noexcept
Approximation of .
l_interval Ln2Pi_l_interval() noexcept
Enclosure-Interval for .
l_interval Sqrt5_l_interval() noexcept
Enclosure-Interval for .
l_interval Ln2_l_interval() noexcept
Enclosure-Interval for .
l_real Pi2_l_real() noexcept
Approximation of .
l_real Sqrt7_l_real() noexcept
Approximation of .
cvector mid(const cimatrix_subv &mv) noexcept
Returns the middle of the matrix.
l_real Sqrt3d2_l_real() noexcept
Approximation of .
l_real Pi_l_real() noexcept
Approximation of .
l_real Pid4_l_real() noexcept
Approximation of .
l_interval Ln10_l_interval() noexcept
Enclosure-Interval for .
l_real Pid2_l_real() noexcept
Approximation of .
interval sqrtx2y2(const interval &x, const interval &y) noexcept
Calculates .
l_real EpPid4_l_real() noexcept
Approximation of .
l_real Ln2r_l_real() noexcept
Approximation of .
l_interval Pi2r_l_interval() noexcept
Enclosure-Interval for .