Average Error: 13.6 → 11.7
Time: 15.3s
Precision: binary64
Cost: 26369
\[10^{-150} < \left|x\right| \land \left|x\right| < 10^{+150}\]
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}\]
\[\begin{array}{l} \mathbf{if}\;x \leq -3.9489225518133:\\ \;\;\;\;\sqrt{\left|\frac{p}{x}\right|} \cdot \sqrt{\left|\frac{p}{x}\right|}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{p \cdot \left(p \cdot 4\right) + x \cdot x}}\right)}\\ \end{array}\]
\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}
\begin{array}{l}
\mathbf{if}\;x \leq -3.9489225518133:\\
\;\;\;\;\sqrt{\left|\frac{p}{x}\right|} \cdot \sqrt{\left|\frac{p}{x}\right|}\\

\mathbf{else}:\\
\;\;\;\;\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{p \cdot \left(p \cdot 4\right) + x \cdot x}}\right)}\\

\end{array}
(FPCore (p x)
 :precision binary64
 (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))))))
(FPCore (p x)
 :precision binary64
 (if (<= x -3.9489225518133)
   (* (sqrt (fabs (/ p x))) (sqrt (fabs (/ p x))))
   (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* p (* p 4.0)) (* x x)))))))))
double code(double p, double x) {
	return sqrt(0.5 * (1.0 + (x / sqrt(((4.0 * p) * p) + (x * x)))));
}
double code(double p, double x) {
	double tmp;
	if (x <= -3.9489225518133) {
		tmp = sqrt(fabs(p / x)) * sqrt(fabs(p / x));
	} else {
		tmp = sqrt(0.5 * (1.0 + (x / sqrt((p * (p * 4.0)) + (x * x)))));
	}
	return tmp;
}

Error

Bits error versus p

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error32.4
Cost26560
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\log \left(e^{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}}\right)}\right)}\]
Alternative 2
Error31.7
Cost6976
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{p \cdot -2}\right)}\]
Alternative 3
Error46.6
Cost19392
\[e^{\log \left(\left|\frac{p}{x}\right|\right)}\]
Alternative 4
Error28.5
Cost7488
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{p \cdot 2 + 0.25 \cdot \frac{x \cdot x}{p}}\right)}\]
Alternative 5
Error31.7
Cost6976
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{p \cdot 2}\right)}\]
Alternative 6
Error51.7
Cost7232
\[\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{1}{\frac{p}{x \cdot x}}}\right)}\]
Alternative 7
Error55.8
Cost13248
\[\frac{\sqrt{p}}{\sqrt{\frac{x \cdot x}{p}}}\]
Alternative 8
Error14.7
Cost33600
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}} \cdot \sqrt{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}}}\right)}\]
Alternative 9
Error51.7
Cost7104
\[\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{x}{\frac{p}{x}}}\right)}\]
Alternative 10
Error51.7
Cost7104
\[\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{x \cdot \frac{x}{p}}\right)}\]
Alternative 11
Error45.7
Cost39104
\[\left(\sqrt[3]{\left|\frac{p}{x}\right|} \cdot \sqrt[3]{\left|\frac{p}{x}\right|}\right) \cdot \sqrt[3]{\left|\frac{p}{x}\right|}\]
Alternative 12
Error16.2
Cost7360
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{x + 2 \cdot \frac{p \cdot p}{x}}\right)}\]
Alternative 13
Error41.2
Cost6848
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{x}\right)}\]
Alternative 14
Error15.1
Cost34240
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(\sqrt[3]{p \cdot \left(4 \cdot p\right) + x \cdot x} \cdot \sqrt[3]{p \cdot \left(4 \cdot p\right) + x \cdot x}\right) \cdot \sqrt[3]{p \cdot \left(4 \cdot p\right) + x \cdot x}}}\right)}\]
Alternative 15
Error28.8
Cost6464
\[\sqrt{0.5}\]
Alternative 16
Error54.7
Cost19456
\[\sqrt[3]{{\left(\left|\frac{p}{x}\right|\right)}^{3}}\]
Alternative 17
Error53.3
Cost256
\[\frac{-p}{x}\]
Alternative 18
Error54.1
Cost33152
\[3 \cdot \left(\frac{\sqrt{0.5}}{\sqrt{2}} \cdot {\left(\frac{p}{x}\right)}^{3}\right) - \frac{\sqrt{0.5} \cdot \sqrt{2}}{\frac{x}{p}}\]
Alternative 19
Error15.5
Cost47040
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\left(\sqrt[3]{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}} \cdot \sqrt[3]{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}}\right) \cdot \sqrt[3]{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}}}\right)}\]
Alternative 20
Error51.7
Cost7104
\[\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{x \cdot x}{p}}\right)}\]
Alternative 21
Error41.2
Cost6592
\[\sqrt{0.5 \cdot 2}\]
Alternative 22
Error28.8
Cost6592
\[\sqrt{0.5 \cdot 1}\]
Alternative 23
Error59.9
Cost6912
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{-x}\right)}\]
Alternative 24
Error51.7
Cost13504
\[\sqrt{0.5} \cdot \sqrt{2 \cdot \frac{p}{\frac{x \cdot x}{p}}}\]
Alternative 25
Error13.6
Cost13760
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}\]
Alternative 26
Error26.4
Cost26624
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\sqrt[3]{{\left(p \cdot \left(4 \cdot p\right) + x \cdot x\right)}^{3}}}}\right)}\]
Alternative 27
Error28.5
Cost7488
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{p \cdot -2 - 0.25 \cdot \frac{x \cdot x}{p}}\right)}\]
Alternative 28
Error19.9
Cost26624
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt[3]{{\left(\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}\right)}^{3}}}\right)}\]
Alternative 29
Error51.7
Cost7104
\[\sqrt{0.5 \cdot \left(2 \cdot \left(\frac{p}{x} \cdot \frac{p}{x}\right)\right)}\]
Alternative 30
Error53.1
Cost192
\[\frac{p}{x}\]
Alternative 31
Error16.5
Cost26560
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{e^{\log \left(p \cdot \left(4 \cdot p\right) + x \cdot x\right)}}}\right)}\]
Alternative 32
Error29.0
Cost14784
\[\sqrt{0.5 \cdot \frac{1 - \frac{x \cdot x}{p \cdot \left(4 \cdot p\right) + x \cdot x}}{1 - \frac{x}{\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}}}}\]
Alternative 33
Error16.5
Cost26560
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{e^{\log \left(\sqrt{p \cdot \left(4 \cdot p\right) + x \cdot x}\right)}}\right)}\]
Alternative 34
Error58.1
Cost19904
\[\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{e^{\log \left(\frac{x \cdot x}{p}\right)}}\right)}\]
Alternative 35
Error45.5
Cost26048
\[\sqrt{\left|\frac{p}{x}\right|} \cdot \sqrt{\left|\frac{p}{x}\right|}\]
Alternative 36
Error15.0
Cost33600
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\left|\sqrt[3]{p \cdot \left(4 \cdot p\right) + x \cdot x}\right| \cdot \sqrt{\sqrt[3]{p \cdot \left(4 \cdot p\right) + x \cdot x}}}\right)}\]
Alternative 37
Error53.5
Cost13312
\[-\frac{\sqrt{0.5} \cdot \sqrt{2}}{\frac{x}{p}}\]
Alternative 38
Error58.4
Cost26112
\[1 - \log \left(e^{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right)\]
Alternative 39
Error58.4
Cost58624
\[1 - {\left(\sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)}^{5} \cdot \sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\]
Alternative 40
Error58.4
Cost45696
\[1 - \sqrt{0.5 + \frac{\frac{0.5}{\sqrt[3]{\mathsf{hypot}\left(1, x\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(1, x\right)}}}{\sqrt[3]{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 41
Error58.4
Cost39360
\[1 - \left|\sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right| \cdot \sqrt{\sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 42
Error58.4
Cost26112
\[e^{\log \left(1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}\]
Alternative 43
Error58.4
Cost45824
\[1 - \sqrt{0.5 + \frac{1}{\sqrt[3]{\mathsf{hypot}\left(1, x\right)} \cdot \sqrt[3]{\mathsf{hypot}\left(1, x\right)}} \cdot \frac{0.5}{\sqrt[3]{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 44
Error58.4
Cost39360
\[1 - \sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}} \cdot \sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 45
Error58.4
Cost32960
\[1 - \sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}} \cdot \sqrt[3]{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 46
Error58.4
Cost84672
\[1 - \left(\sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}} \cdot \sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right) \cdot {\left(\sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)}^{4}\]
Alternative 47
Error58.4
Cost32832
\[1 - \sqrt{0.5 + \sqrt{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}} \cdot \sqrt{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 48
Error58.4
Cost45952
\[1 - \sqrt{0.5 + \left(\sqrt[3]{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}} \cdot \sqrt[3]{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right) \cdot \sqrt[3]{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 49
Error58.4
Cost26112
\[1 - \sqrt{0.5 + \log \left(e^{\frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}\]
Alternative 50
Error59.4
Cost65600
\[1 - \frac{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}} \cdot \sqrt{\sqrt{0.25 - \frac{0.25}{\mathsf{hypot}\left(1, x\right) \cdot \mathsf{hypot}\left(1, x\right)}}}}{\sqrt{\sqrt{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\]
Alternative 51
Error58.4
Cost72064
\[\log \left(e^{\left(\sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}} \cdot \sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right) \cdot \sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)\]
Alternative 52
Error58.4
Cost26176
\[1 - \sqrt{\sqrt[3]{{\left(0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}\right)}^{3}}}\]
Alternative 53
Error58.4
Cost32960
\[\log \left(e^{\frac{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}{1 + \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)\]
Alternative 54
Error58.4
Cost39424
\[1 + \left(-\left|\sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right|\right) \cdot \sqrt{\sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 55
Error58.4
Cost26112
\[\log \left(e^{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right)\]
Alternative 56
Error58.4
Cost52224
\[1 - {\left(\sqrt[3]{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)}^{4} \cdot \sqrt[3]{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 57
Error58.4
Cost39488
\[\left(1 + \sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right) \cdot \left(1 - \sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right)\]
Alternative 58
Error58.4
Cost65088
\[\log \left(\sqrt{e^{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right) + \log \left(\sqrt{e^{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)\]
Alternative 59
Error58.4
Cost20160
\[\frac{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}{1 + \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 60
Error58.4
Cost39872
\[\frac{1 - {\left(\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}^{3}}{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}} + \left(\frac{0.5}{\mathsf{hypot}\left(1, x\right)} + 1.5\right)}\]
Alternative 61
Error58.4
Cost59264
\[\left(\sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}} \cdot \sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right) \cdot \sqrt[3]{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 62
Error58.4
Cost26176
\[\sqrt[3]{{\left(1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}^{3}}\]
Alternative 63
Error58.4
Cost65216
\[\log \left(\sqrt[3]{e^{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right) \cdot 2 + \log \left(\sqrt[3]{e^{1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)\]
Alternative 64
Error58.4
Cost58624
\[1 - \sqrt{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}} \cdot {\left(\sqrt{\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)}^{3}\]
Alternative 65
Error59.5
Cost33152
\[1 - \frac{\sqrt{0.25 - \frac{0.25}{\mathsf{hypot}\left(1, x\right) \cdot \mathsf{hypot}\left(1, x\right)}}}{\sqrt{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 66
Error58.4
Cost39744
\[1 - \frac{\sqrt{{\left(\frac{0.5}{\mathsf{hypot}\left(1, x\right)}\right)}^{3} + 0.125}}{\sqrt{0.25 + \frac{\frac{0.25}{\mathsf{hypot}\left(1, x\right)} + -0.25}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 67
Error59.5
Cost45952
\[\log \left(e^{1 - \frac{\sqrt{0.25 - \frac{0.25}{\mathsf{hypot}\left(1, x\right) \cdot \mathsf{hypot}\left(1, x\right)}}}{\sqrt{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}}\right)\]
Alternative 68
Error58.4
Cost38976
\[\log \left(e^{1 - \sqrt[3]{{\left(\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}^{3}}}\right)\]
Alternative 69
Error58.4
Cost26176
\[1 - \sqrt[3]{{\left(\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\right)}^{3}}\]
Alternative 70
Error59.5
Cost26752
\[1 - \sqrt{\frac{0.25 - \frac{0.25}{\mathsf{hypot}\left(1, x\right) \cdot \mathsf{hypot}\left(1, x\right)}}{0.5 - \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 71
Error58.4
Cost33344
\[1 - \sqrt{\frac{{\left(\frac{0.5}{\mathsf{hypot}\left(1, x\right)}\right)}^{3} + 0.125}{0.25 + \frac{\frac{0.25}{\mathsf{hypot}\left(1, x\right)} + -0.25}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 72
Error58.4
Cost45824
\[1 - \sqrt{{\left(\sqrt[3]{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right)}^{4} \cdot \sqrt[3]{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\]
Alternative 73
Error58.4
Cost26176
\[1 - {\left(\sqrt{\sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}}\right)}^{2}\]
Alternative 74
Error58.4
Cost13312
\[1 - \sqrt{0.5 + \frac{0.5}{\mathsf{hypot}\left(1, x\right)}}\]
Alternative 75
Error58.4
Cost13440
\[1 - \sqrt{0.5 \cdot \left(1 + \frac{1}{\mathsf{hypot}\left(1, x\right)}\right)}\]

Error

Derivation

  1. Split input into 2 regimes
  2. if x < -3.94892255181329999

    1. Initial program 30.5

      \[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}\]
    2. Taylor expanded around -inf 38.6

      \[\leadsto \sqrt{0.5 \cdot \color{blue}{\left(2 \cdot \frac{{p}^{2}}{{x}^{2}}\right)}}\]
    3. Simplified38.2

      \[\leadsto \sqrt{0.5 \cdot \color{blue}{\left(2 \cdot \frac{p}{\frac{x \cdot x}{p}}\right)}}\]
    4. Using strategy rm
    5. Applied add-sqr-sqrt_binary64_10038.3

      \[\leadsto \color{blue}{\sqrt{\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{x \cdot x}{p}}\right)}} \cdot \sqrt{\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{x \cdot x}{p}}\right)}}}\]
    6. Simplified38.2

      \[\leadsto \color{blue}{\sqrt{\left|\frac{p}{x}\right|}} \cdot \sqrt{\sqrt{0.5 \cdot \left(2 \cdot \frac{p}{\frac{x \cdot x}{p}}\right)}}\]
    7. Simplified23.2

      \[\leadsto \sqrt{\left|\frac{p}{x}\right|} \cdot \color{blue}{\sqrt{\left|\frac{p}{x}\right|}}\]

    if -3.94892255181329999 < x

    1. Initial program 7.7

      \[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification11.7

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.9489225518133:\\ \;\;\;\;\sqrt{\left|\frac{p}{x}\right|} \cdot \sqrt{\left|\frac{p}{x}\right|}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{p \cdot \left(p \cdot 4\right) + x \cdot x}}\right)}\\ \end{array}\]

Reproduce

herbie shell --seed 2021042 
(FPCore (p x)
  :name "Given's Rotation SVD example"
  :precision binary64
  :pre (< 1e-150 (fabs x) 1e+150)
  (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))))))