sqrt B (should all be same)

Percentage Accurate: 54.9% → 99.3%
Time: 4.7s
Alternatives: 7
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \sqrt{\left(2 \cdot x\right) \cdot x} \end{array} \]
(FPCore (x) :precision binary64 (sqrt (* (* 2.0 x) x)))
double code(double x) {
	return sqrt(((2.0 * x) * x));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = sqrt(((2.0d0 * x) * x))
end function
public static double code(double x) {
	return Math.sqrt(((2.0 * x) * x));
}
def code(x):
	return math.sqrt(((2.0 * x) * x))
function code(x)
	return sqrt(Float64(Float64(2.0 * x) * x))
end
function tmp = code(x)
	tmp = sqrt(((2.0 * x) * x));
end
code[x_] := N[Sqrt[N[(N[(2.0 * x), $MachinePrecision] * x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
\sqrt{\left(2 \cdot x\right) \cdot x}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 7 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 54.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{\left(2 \cdot x\right) \cdot x} \end{array} \]
(FPCore (x) :precision binary64 (sqrt (* (* 2.0 x) x)))
double code(double x) {
	return sqrt(((2.0 * x) * x));
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = sqrt(((2.0d0 * x) * x))
end function
public static double code(double x) {
	return Math.sqrt(((2.0 * x) * x));
}
def code(x):
	return math.sqrt(((2.0 * x) * x))
function code(x)
	return sqrt(Float64(Float64(2.0 * x) * x))
end
function tmp = code(x)
	tmp = sqrt(((2.0 * x) * x));
end
code[x_] := N[Sqrt[N[(N[(2.0 * x), $MachinePrecision] * x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
\sqrt{\left(2 \cdot x\right) \cdot x}
\end{array}

Alternative 1: 99.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{-310}:\\ \;\;\;\;\sqrt{2} \cdot \left(-x\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \sqrt{2}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= x -4e-310) (* (sqrt 2.0) (- x)) (* x (sqrt 2.0))))
double code(double x) {
	double tmp;
	if (x <= -4e-310) {
		tmp = sqrt(2.0) * -x;
	} else {
		tmp = x * sqrt(2.0);
	}
	return tmp;
}
real(8) function code(x)
    real(8), intent (in) :: x
    real(8) :: tmp
    if (x <= (-4d-310)) then
        tmp = sqrt(2.0d0) * -x
    else
        tmp = x * sqrt(2.0d0)
    end if
    code = tmp
end function
public static double code(double x) {
	double tmp;
	if (x <= -4e-310) {
		tmp = Math.sqrt(2.0) * -x;
	} else {
		tmp = x * Math.sqrt(2.0);
	}
	return tmp;
}
def code(x):
	tmp = 0
	if x <= -4e-310:
		tmp = math.sqrt(2.0) * -x
	else:
		tmp = x * math.sqrt(2.0)
	return tmp
function code(x)
	tmp = 0.0
	if (x <= -4e-310)
		tmp = Float64(sqrt(2.0) * Float64(-x));
	else
		tmp = Float64(x * sqrt(2.0));
	end
	return tmp
end
function tmp_2 = code(x)
	tmp = 0.0;
	if (x <= -4e-310)
		tmp = sqrt(2.0) * -x;
	else
		tmp = x * sqrt(2.0);
	end
	tmp_2 = tmp;
end
code[x_] := If[LessEqual[x, -4e-310], N[(N[Sqrt[2.0], $MachinePrecision] * (-x)), $MachinePrecision], N[(x * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{-310}:\\
\;\;\;\;\sqrt{2} \cdot \left(-x\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \sqrt{2}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -3.999999999999988e-310

    1. Initial program 58.5%

      \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
    2. Taylor expanded in x around -inf 99.3%

      \[\leadsto \color{blue}{-1 \cdot \left(\sqrt{2} \cdot x\right)} \]
    3. Step-by-step derivation
      1. mul-1-neg99.3%

        \[\leadsto \color{blue}{-\sqrt{2} \cdot x} \]
      2. distribute-rgt-neg-in99.3%

        \[\leadsto \color{blue}{\sqrt{2} \cdot \left(-x\right)} \]
    4. Simplified99.3%

      \[\leadsto \color{blue}{\sqrt{2} \cdot \left(-x\right)} \]

    if -3.999999999999988e-310 < x

    1. Initial program 58.4%

      \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
    2. Taylor expanded in x around 0 99.3%

      \[\leadsto \color{blue}{\sqrt{2} \cdot x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{-310}:\\ \;\;\;\;\sqrt{2} \cdot \left(-x\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \sqrt{2}\\ \end{array} \]

Alternative 2: 97.8% accurate, 0.3× speedup?

\[\begin{array}{l} \\ {\left({\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{2}\right)}^{1.5} \end{array} \]
(FPCore (x) :precision binary64 (pow (pow (cbrt (* x (sqrt 2.0))) 2.0) 1.5))
double code(double x) {
	return pow(pow(cbrt((x * sqrt(2.0))), 2.0), 1.5);
}
public static double code(double x) {
	return Math.pow(Math.pow(Math.cbrt((x * Math.sqrt(2.0))), 2.0), 1.5);
}
function code(x)
	return (cbrt(Float64(x * sqrt(2.0))) ^ 2.0) ^ 1.5
end
code[x_] := N[Power[N[Power[N[Power[N[(x * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision], 1.5], $MachinePrecision]
\begin{array}{l}

\\
{\left({\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{2}\right)}^{1.5}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt57.7%

      \[\leadsto \sqrt{\color{blue}{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}\right) \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    2. sqrt-prod57.8%

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    3. pow257.8%

      \[\leadsto \sqrt{\color{blue}{{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x}\right)}^{2}}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    4. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    5. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}} \]
  3. Applied egg-rr57.8%

    \[\leadsto \color{blue}{\sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \]
  4. Step-by-step derivation
    1. unpow257.8%

      \[\leadsto \sqrt{\color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    2. rem-sqrt-square57.8%

      \[\leadsto \color{blue}{\left|\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right|} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    3. rem-square-sqrt57.6%

      \[\leadsto \left|\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    4. unpow1/257.6%

      \[\leadsto \left|\color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    5. unpow1/257.6%

      \[\leadsto \left|{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    6. fabs-sqr57.6%

      \[\leadsto \color{blue}{\left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right)} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    7. unpow1/257.6%

      \[\leadsto \left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right) \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \]
    8. pow-sqr57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(2 \cdot 0.5\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    9. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    10. unpow157.8%

      \[\leadsto \color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    11. *-commutative57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    12. pow-plus57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(0.5 + 1\right)}} \]
    13. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1.5}} \]
  5. Simplified57.8%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{1.5}} \]
  6. Step-by-step derivation
    1. add-sqr-sqrt57.8%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right)} \cdot \left(x \cdot x\right)}\right)}^{1.5} \]
    2. swap-sqr57.8%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot x\right) \cdot \left(\sqrt{2} \cdot x\right)}}\right)}^{1.5} \]
    3. cbrt-unprod97.9%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{\sqrt{2} \cdot x} \cdot \sqrt[3]{\sqrt{2} \cdot x}\right)}}^{1.5} \]
    4. pow297.9%

      \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{\sqrt{2} \cdot x}\right)}^{2}\right)}}^{1.5} \]
    5. *-commutative97.9%

      \[\leadsto {\left({\left(\sqrt[3]{\color{blue}{x \cdot \sqrt{2}}}\right)}^{2}\right)}^{1.5} \]
  7. Applied egg-rr97.9%

    \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{2}\right)}}^{1.5} \]
  8. Final simplification97.9%

    \[\leadsto {\left({\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{2}\right)}^{1.5} \]

Alternative 3: 97.9% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \sqrt{2} \cdot {\left(\left|\sqrt[3]{x}\right|\right)}^{3} \end{array} \]
(FPCore (x) :precision binary64 (* (sqrt 2.0) (pow (fabs (cbrt x)) 3.0)))
double code(double x) {
	return sqrt(2.0) * pow(fabs(cbrt(x)), 3.0);
}
public static double code(double x) {
	return Math.sqrt(2.0) * Math.pow(Math.abs(Math.cbrt(x)), 3.0);
}
function code(x)
	return Float64(sqrt(2.0) * (abs(cbrt(x)) ^ 3.0))
end
code[x_] := N[(N[Sqrt[2.0], $MachinePrecision] * N[Power[N[Abs[N[Power[x, 1/3], $MachinePrecision]], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\sqrt{2} \cdot {\left(\left|\sqrt[3]{x}\right|\right)}^{3}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt57.4%

      \[\leadsto \color{blue}{\left(\sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}} \cdot \sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}\right) \cdot \sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}} \]
    2. pow357.5%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}\right)}^{3}} \]
    3. associate-*l*57.5%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    4. sqrt-prod57.4%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{2} \cdot \sqrt{x \cdot x}}}\right)}^{3} \]
    5. sqrt-unprod46.9%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}\right)}^{3} \]
    6. add-sqr-sqrt48.0%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{x}}\right)}^{3} \]
  3. Applied egg-rr48.0%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{\sqrt{2} \cdot x}\right)}^{3}} \]
  4. Step-by-step derivation
    1. add-sqr-sqrt46.9%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}\right)}^{3} \]
    2. associate-*r*47.0%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot \sqrt{x}\right) \cdot \sqrt{x}}}\right)}^{3} \]
    3. sqrt-prod46.7%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{2 \cdot x}} \cdot \sqrt{x}}\right)}^{3} \]
    4. sqrt-unprod57.5%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{\left(2 \cdot x\right) \cdot x}}}\right)}^{3} \]
    5. associate-*r*57.5%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    6. add-cube-cbrt57.2%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}\right) \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right)}^{3} \]
    7. sqrt-prod57.2%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right)}^{3} \]
    8. sqrt-unprod57.2%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right)} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    9. add-cbrt-cube57.6%

      \[\leadsto {\color{blue}{\left(\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right)}}^{3} \]
    10. cbrt-prod57.4%

      \[\leadsto {\left(\sqrt{\color{blue}{\sqrt[3]{2} \cdot \sqrt[3]{x \cdot x}}}\right)}^{3} \]
    11. sqrt-prod57.6%

      \[\leadsto {\color{blue}{\left(\sqrt{\sqrt[3]{2}} \cdot \sqrt{\sqrt[3]{x \cdot x}}\right)}}^{3} \]
    12. cbrt-prod97.7%

      \[\leadsto {\left(\sqrt{\sqrt[3]{2}} \cdot \sqrt{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}}\right)}^{3} \]
    13. pow297.7%

      \[\leadsto {\left(\sqrt{\sqrt[3]{2}} \cdot \sqrt{\color{blue}{{\left(\sqrt[3]{x}\right)}^{2}}}\right)}^{3} \]
  5. Applied egg-rr97.7%

    \[\leadsto {\color{blue}{\left(\sqrt{\sqrt[3]{2}} \cdot \sqrt{{\left(\sqrt[3]{x}\right)}^{2}}\right)}}^{3} \]
  6. Step-by-step derivation
    1. unpow297.7%

      \[\leadsto {\left(\sqrt{\sqrt[3]{2}} \cdot \sqrt{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}}\right)}^{3} \]
    2. rem-sqrt-square97.7%

      \[\leadsto {\left(\sqrt{\sqrt[3]{2}} \cdot \color{blue}{\left|\sqrt[3]{x}\right|}\right)}^{3} \]
  7. Simplified97.7%

    \[\leadsto {\color{blue}{\left(\sqrt{\sqrt[3]{2}} \cdot \left|\sqrt[3]{x}\right|\right)}}^{3} \]
  8. Taylor expanded in x around 0 43.1%

    \[\leadsto \color{blue}{\sqrt{2} \cdot {\left(\left|{x}^{0.3333333333333333}\right|\right)}^{3}} \]
  9. Simplified97.7%

    \[\leadsto \color{blue}{\sqrt{2} \cdot {\left(\left|\sqrt[3]{x}\right|\right)}^{3}} \]
  10. Final simplification97.7%

    \[\leadsto \sqrt{2} \cdot {\left(\left|\sqrt[3]{x}\right|\right)}^{3} \]

Alternative 4: 97.9% accurate, 0.3× speedup?

\[\begin{array}{l} \\ {\left(\left|\sqrt[3]{x \cdot \sqrt{2}}\right|\right)}^{3} \end{array} \]
(FPCore (x) :precision binary64 (pow (fabs (cbrt (* x (sqrt 2.0)))) 3.0))
double code(double x) {
	return pow(fabs(cbrt((x * sqrt(2.0)))), 3.0);
}
public static double code(double x) {
	return Math.pow(Math.abs(Math.cbrt((x * Math.sqrt(2.0)))), 3.0);
}
function code(x)
	return abs(cbrt(Float64(x * sqrt(2.0)))) ^ 3.0
end
code[x_] := N[Power[N[Abs[N[Power[N[(x * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]], $MachinePrecision], 3.0], $MachinePrecision]
\begin{array}{l}

\\
{\left(\left|\sqrt[3]{x \cdot \sqrt{2}}\right|\right)}^{3}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt57.4%

      \[\leadsto \color{blue}{\left(\sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}} \cdot \sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}\right) \cdot \sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}} \]
    2. pow357.5%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{\sqrt{\left(2 \cdot x\right) \cdot x}}\right)}^{3}} \]
    3. associate-*l*57.5%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    4. sqrt-prod57.4%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{2} \cdot \sqrt{x \cdot x}}}\right)}^{3} \]
    5. sqrt-unprod46.9%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}\right)}^{3} \]
    6. add-sqr-sqrt48.0%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{x}}\right)}^{3} \]
  3. Applied egg-rr48.0%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{\sqrt{2} \cdot x}\right)}^{3}} \]
  4. Step-by-step derivation
    1. add-sqr-sqrt46.9%

      \[\leadsto {\left(\sqrt[3]{\sqrt{2} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}\right)}^{3} \]
    2. associate-*r*47.0%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot \sqrt{x}\right) \cdot \sqrt{x}}}\right)}^{3} \]
    3. sqrt-prod46.7%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{2 \cdot x}} \cdot \sqrt{x}}\right)}^{3} \]
    4. sqrt-unprod57.5%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{\left(2 \cdot x\right) \cdot x}}}\right)}^{3} \]
    5. associate-*r*57.5%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    6. add-cube-cbrt57.2%

      \[\leadsto {\left(\sqrt[3]{\sqrt{\color{blue}{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}\right) \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right)}^{3} \]
    7. sqrt-prod57.2%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right)}^{3} \]
    8. sqrt-unprod57.2%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right)} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}\right)}^{3} \]
    9. add-cbrt-cube57.6%

      \[\leadsto {\color{blue}{\left(\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right)}}^{3} \]
    10. add-sqr-sqrt57.6%

      \[\leadsto {\left(\sqrt{\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right)}^{3} \]
    11. rem-sqrt-square57.6%

      \[\leadsto {\color{blue}{\left(\left|\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right|\right)}}^{3} \]
    12. add-cbrt-cube57.2%

      \[\leadsto {\left(\left|\color{blue}{\sqrt[3]{\left(\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right) \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}}\right|\right)}^{3} \]
  5. Applied egg-rr97.8%

    \[\leadsto {\color{blue}{\left(\left|\sqrt[3]{x \cdot \sqrt{2}}\right|\right)}}^{3} \]
  6. Final simplification97.8%

    \[\leadsto {\left(\left|\sqrt[3]{x \cdot \sqrt{2}}\right|\right)}^{3} \]

Alternative 5: 97.9% accurate, 0.3× speedup?

\[\begin{array}{l} \\ {\left(\sqrt[3]{x} \cdot \sqrt[3]{x + x}\right)}^{1.5} \end{array} \]
(FPCore (x) :precision binary64 (pow (* (cbrt x) (cbrt (+ x x))) 1.5))
double code(double x) {
	return pow((cbrt(x) * cbrt((x + x))), 1.5);
}
public static double code(double x) {
	return Math.pow((Math.cbrt(x) * Math.cbrt((x + x))), 1.5);
}
function code(x)
	return Float64(cbrt(x) * cbrt(Float64(x + x))) ^ 1.5
end
code[x_] := N[Power[N[(N[Power[x, 1/3], $MachinePrecision] * N[Power[N[(x + x), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 1.5], $MachinePrecision]
\begin{array}{l}

\\
{\left(\sqrt[3]{x} \cdot \sqrt[3]{x + x}\right)}^{1.5}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt57.7%

      \[\leadsto \sqrt{\color{blue}{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}\right) \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    2. sqrt-prod57.8%

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    3. pow257.8%

      \[\leadsto \sqrt{\color{blue}{{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x}\right)}^{2}}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    4. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    5. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}} \]
  3. Applied egg-rr57.8%

    \[\leadsto \color{blue}{\sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \]
  4. Step-by-step derivation
    1. unpow257.8%

      \[\leadsto \sqrt{\color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    2. rem-sqrt-square57.8%

      \[\leadsto \color{blue}{\left|\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right|} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    3. rem-square-sqrt57.6%

      \[\leadsto \left|\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    4. unpow1/257.6%

      \[\leadsto \left|\color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    5. unpow1/257.6%

      \[\leadsto \left|{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    6. fabs-sqr57.6%

      \[\leadsto \color{blue}{\left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right)} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    7. unpow1/257.6%

      \[\leadsto \left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right) \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \]
    8. pow-sqr57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(2 \cdot 0.5\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    9. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    10. unpow157.8%

      \[\leadsto \color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    11. *-commutative57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    12. pow-plus57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(0.5 + 1\right)}} \]
    13. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1.5}} \]
  5. Simplified57.8%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{1.5}} \]
  6. Step-by-step derivation
    1. associate-*r*57.8%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(2 \cdot x\right) \cdot x}}\right)}^{1.5} \]
    2. cbrt-prod97.6%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{2 \cdot x} \cdot \sqrt[3]{x}\right)}}^{1.5} \]
    3. add-log-exp7.2%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\log \left(e^{2 \cdot x}\right)}} \cdot \sqrt[3]{x}\right)}^{1.5} \]
    4. *-commutative7.2%

      \[\leadsto {\left(\sqrt[3]{\log \left(e^{\color{blue}{x \cdot 2}}\right)} \cdot \sqrt[3]{x}\right)}^{1.5} \]
    5. exp-lft-sqr7.1%

      \[\leadsto {\left(\sqrt[3]{\log \color{blue}{\left(e^{x} \cdot e^{x}\right)}} \cdot \sqrt[3]{x}\right)}^{1.5} \]
    6. log-prod7.1%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\log \left(e^{x}\right) + \log \left(e^{x}\right)}} \cdot \sqrt[3]{x}\right)}^{1.5} \]
    7. add-log-exp13.5%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{x} + \log \left(e^{x}\right)} \cdot \sqrt[3]{x}\right)}^{1.5} \]
    8. add-log-exp97.6%

      \[\leadsto {\left(\sqrt[3]{x + \color{blue}{x}} \cdot \sqrt[3]{x}\right)}^{1.5} \]
  7. Applied egg-rr97.6%

    \[\leadsto {\color{blue}{\left(\sqrt[3]{x + x} \cdot \sqrt[3]{x}\right)}}^{1.5} \]
  8. Final simplification97.6%

    \[\leadsto {\left(\sqrt[3]{x} \cdot \sqrt[3]{x + x}\right)}^{1.5} \]

Alternative 6: 50.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x \cdot \sqrt{2} \end{array} \]
(FPCore (x) :precision binary64 (* x (sqrt 2.0)))
double code(double x) {
	return x * sqrt(2.0);
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = x * sqrt(2.0d0)
end function
public static double code(double x) {
	return x * Math.sqrt(2.0);
}
def code(x):
	return x * math.sqrt(2.0)
function code(x)
	return Float64(x * sqrt(2.0))
end
function tmp = code(x)
	tmp = x * sqrt(2.0);
end
code[x_] := N[(x * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \sqrt{2}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Taylor expanded in x around 0 48.7%

    \[\leadsto \color{blue}{\sqrt{2} \cdot x} \]
  3. Final simplification48.7%

    \[\leadsto x \cdot \sqrt{2} \]

Alternative 7: 3.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{x} \end{array} \]
(FPCore (x) :precision binary64 (sqrt x))
double code(double x) {
	return sqrt(x);
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = sqrt(x)
end function
public static double code(double x) {
	return Math.sqrt(x);
}
def code(x):
	return math.sqrt(x)
function code(x)
	return sqrt(x)
end
function tmp = code(x)
	tmp = sqrt(x);
end
code[x_] := N[Sqrt[x], $MachinePrecision]
\begin{array}{l}

\\
\sqrt{x}
\end{array}
Derivation
  1. Initial program 58.4%

    \[\sqrt{\left(2 \cdot x\right) \cdot x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt57.7%

      \[\leadsto \sqrt{\color{blue}{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}\right) \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    2. sqrt-prod57.8%

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x} \cdot \sqrt[3]{\left(2 \cdot x\right) \cdot x}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}}} \]
    3. pow257.8%

      \[\leadsto \sqrt{\color{blue}{{\left(\sqrt[3]{\left(2 \cdot x\right) \cdot x}\right)}^{2}}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    4. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\left(2 \cdot x\right) \cdot x}} \]
    5. associate-*l*57.8%

      \[\leadsto \sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{\color{blue}{2 \cdot \left(x \cdot x\right)}}} \]
  3. Applied egg-rr57.8%

    \[\leadsto \color{blue}{\sqrt{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{2}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \]
  4. Step-by-step derivation
    1. unpow257.8%

      \[\leadsto \sqrt{\color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    2. rem-sqrt-square57.8%

      \[\leadsto \color{blue}{\left|\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right|} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    3. rem-square-sqrt57.6%

      \[\leadsto \left|\color{blue}{\sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    4. unpow1/257.6%

      \[\leadsto \left|\color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    5. unpow1/257.6%

      \[\leadsto \left|{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}}\right| \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    6. fabs-sqr57.6%

      \[\leadsto \color{blue}{\left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right)} \cdot \sqrt{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    7. unpow1/257.6%

      \[\leadsto \left({\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}\right) \cdot \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5}} \]
    8. pow-sqr57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(2 \cdot 0.5\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    9. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    10. unpow157.8%

      \[\leadsto \color{blue}{\sqrt[3]{2 \cdot \left(x \cdot x\right)}} \cdot {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \]
    11. *-commutative57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{0.5} \cdot \sqrt[3]{2 \cdot \left(x \cdot x\right)}} \]
    12. pow-plus57.8%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\left(0.5 + 1\right)}} \]
    13. metadata-eval57.8%

      \[\leadsto {\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{\color{blue}{1.5}} \]
  5. Simplified57.8%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{2 \cdot \left(x \cdot x\right)}\right)}^{1.5}} \]
  6. Step-by-step derivation
    1. add-sqr-sqrt57.8%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right)} \cdot \left(x \cdot x\right)}\right)}^{1.5} \]
    2. swap-sqr57.8%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(\sqrt{2} \cdot x\right) \cdot \left(\sqrt{2} \cdot x\right)}}\right)}^{1.5} \]
    3. cbrt-unprod97.9%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{\sqrt{2} \cdot x} \cdot \sqrt[3]{\sqrt{2} \cdot x}\right)}}^{1.5} \]
    4. pow297.9%

      \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{\sqrt{2} \cdot x}\right)}^{2}\right)}}^{1.5} \]
    5. *-commutative97.9%

      \[\leadsto {\left({\left(\sqrt[3]{\color{blue}{x \cdot \sqrt{2}}}\right)}^{2}\right)}^{1.5} \]
  7. Applied egg-rr97.9%

    \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{2}\right)}}^{1.5} \]
  8. Step-by-step derivation
    1. pow-pow48.0%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{\left(2 \cdot 1.5\right)}} \]
    2. metadata-eval48.0%

      \[\leadsto {\left(\sqrt[3]{x \cdot \sqrt{2}}\right)}^{\color{blue}{3}} \]
    3. rem-cube-cbrt48.7%

      \[\leadsto \color{blue}{x \cdot \sqrt{2}} \]
    4. *-commutative48.7%

      \[\leadsto \color{blue}{\sqrt{2} \cdot x} \]
    5. pow1/248.7%

      \[\leadsto \color{blue}{{2}^{0.5}} \cdot x \]
    6. metadata-eval48.7%

      \[\leadsto {2}^{\color{blue}{\left(0.3333333333333333 \cdot 1.5\right)}} \cdot x \]
    7. pow-pow48.7%

      \[\leadsto \color{blue}{{\left({2}^{0.3333333333333333}\right)}^{1.5}} \cdot x \]
    8. pow1/348.1%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{2}\right)}}^{1.5} \cdot x \]
    9. add-sqr-sqrt47.2%

      \[\leadsto {\left(\sqrt[3]{2}\right)}^{1.5} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)} \]
    10. associate-*r*47.1%

      \[\leadsto \color{blue}{\left({\left(\sqrt[3]{2}\right)}^{1.5} \cdot \sqrt{x}\right) \cdot \sqrt{x}} \]
  9. Applied egg-rr0.0%

    \[\leadsto \color{blue}{\frac{0}{0} \cdot \sqrt{x}} \]
  10. Simplified3.3%

    \[\leadsto \color{blue}{\sqrt{x}} \]
  11. Final simplification3.3%

    \[\leadsto \sqrt{x} \]

Reproduce

?
herbie shell --seed 2023189 
(FPCore (x)
  :name "sqrt B (should all be same)"
  :precision binary64
  (sqrt (* (* 2.0 x) x)))