?

Average Error: 5.4 → 0.1
Time: 32.2s
Precision: binary64
Cost: 65988

?

\[ \begin{array}{c}[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \end{array} \]
\[\left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]
\[\begin{array}{l} t_1 := \sqrt{1 + y}\\ t_2 := \sqrt{1 + z}\\ t_3 := t_2 - \sqrt{z}\\ t_4 := \sqrt{1 + x}\\ \mathbf{if}\;t_3 \leq 0.01:\\ \;\;\;\;\left(\frac{1}{t_1 + \sqrt{y}} + \frac{1}{\sqrt{x} + t_4}\right) + \frac{1}{t_2 + \sqrt{z}}\\ \mathbf{else}:\\ \;\;\;\;\left(t_4 - \sqrt{x}\right) + \left(\left(t_1 - \sqrt{y}\right) + \left(t_3 + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\ \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+
  (+
   (+ (- (sqrt (+ x 1.0)) (sqrt x)) (- (sqrt (+ y 1.0)) (sqrt y)))
   (- (sqrt (+ z 1.0)) (sqrt z)))
  (- (sqrt (+ t 1.0)) (sqrt t))))
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (sqrt (+ 1.0 y)))
        (t_2 (sqrt (+ 1.0 z)))
        (t_3 (- t_2 (sqrt z)))
        (t_4 (sqrt (+ 1.0 x))))
   (if (<= t_3 0.01)
     (+
      (+ (/ 1.0 (+ t_1 (sqrt y))) (/ 1.0 (+ (sqrt x) t_4)))
      (/ 1.0 (+ t_2 (sqrt z))))
     (+
      (- t_4 (sqrt x))
      (+ (- t_1 (sqrt y)) (+ t_3 (/ 1.0 (+ (sqrt (+ 1.0 t)) (sqrt t)))))))))
double code(double x, double y, double z, double t) {
	return (((sqrt((x + 1.0)) - sqrt(x)) + (sqrt((y + 1.0)) - sqrt(y))) + (sqrt((z + 1.0)) - sqrt(z))) + (sqrt((t + 1.0)) - sqrt(t));
}
double code(double x, double y, double z, double t) {
	double t_1 = sqrt((1.0 + y));
	double t_2 = sqrt((1.0 + z));
	double t_3 = t_2 - sqrt(z);
	double t_4 = sqrt((1.0 + x));
	double tmp;
	if (t_3 <= 0.01) {
		tmp = ((1.0 / (t_1 + sqrt(y))) + (1.0 / (sqrt(x) + t_4))) + (1.0 / (t_2 + sqrt(z)));
	} else {
		tmp = (t_4 - sqrt(x)) + ((t_1 - sqrt(y)) + (t_3 + (1.0 / (sqrt((1.0 + t)) + sqrt(t)))));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (((sqrt((x + 1.0d0)) - sqrt(x)) + (sqrt((y + 1.0d0)) - sqrt(y))) + (sqrt((z + 1.0d0)) - sqrt(z))) + (sqrt((t + 1.0d0)) - sqrt(t))
end function
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = sqrt((1.0d0 + y))
    t_2 = sqrt((1.0d0 + z))
    t_3 = t_2 - sqrt(z)
    t_4 = sqrt((1.0d0 + x))
    if (t_3 <= 0.01d0) then
        tmp = ((1.0d0 / (t_1 + sqrt(y))) + (1.0d0 / (sqrt(x) + t_4))) + (1.0d0 / (t_2 + sqrt(z)))
    else
        tmp = (t_4 - sqrt(x)) + ((t_1 - sqrt(y)) + (t_3 + (1.0d0 / (sqrt((1.0d0 + t)) + sqrt(t)))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	return (((Math.sqrt((x + 1.0)) - Math.sqrt(x)) + (Math.sqrt((y + 1.0)) - Math.sqrt(y))) + (Math.sqrt((z + 1.0)) - Math.sqrt(z))) + (Math.sqrt((t + 1.0)) - Math.sqrt(t));
}
public static double code(double x, double y, double z, double t) {
	double t_1 = Math.sqrt((1.0 + y));
	double t_2 = Math.sqrt((1.0 + z));
	double t_3 = t_2 - Math.sqrt(z);
	double t_4 = Math.sqrt((1.0 + x));
	double tmp;
	if (t_3 <= 0.01) {
		tmp = ((1.0 / (t_1 + Math.sqrt(y))) + (1.0 / (Math.sqrt(x) + t_4))) + (1.0 / (t_2 + Math.sqrt(z)));
	} else {
		tmp = (t_4 - Math.sqrt(x)) + ((t_1 - Math.sqrt(y)) + (t_3 + (1.0 / (Math.sqrt((1.0 + t)) + Math.sqrt(t)))));
	}
	return tmp;
}
def code(x, y, z, t):
	return (((math.sqrt((x + 1.0)) - math.sqrt(x)) + (math.sqrt((y + 1.0)) - math.sqrt(y))) + (math.sqrt((z + 1.0)) - math.sqrt(z))) + (math.sqrt((t + 1.0)) - math.sqrt(t))
def code(x, y, z, t):
	t_1 = math.sqrt((1.0 + y))
	t_2 = math.sqrt((1.0 + z))
	t_3 = t_2 - math.sqrt(z)
	t_4 = math.sqrt((1.0 + x))
	tmp = 0
	if t_3 <= 0.01:
		tmp = ((1.0 / (t_1 + math.sqrt(y))) + (1.0 / (math.sqrt(x) + t_4))) + (1.0 / (t_2 + math.sqrt(z)))
	else:
		tmp = (t_4 - math.sqrt(x)) + ((t_1 - math.sqrt(y)) + (t_3 + (1.0 / (math.sqrt((1.0 + t)) + math.sqrt(t)))))
	return tmp
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(sqrt(Float64(x + 1.0)) - sqrt(x)) + Float64(sqrt(Float64(y + 1.0)) - sqrt(y))) + Float64(sqrt(Float64(z + 1.0)) - sqrt(z))) + Float64(sqrt(Float64(t + 1.0)) - sqrt(t)))
end
function code(x, y, z, t)
	t_1 = sqrt(Float64(1.0 + y))
	t_2 = sqrt(Float64(1.0 + z))
	t_3 = Float64(t_2 - sqrt(z))
	t_4 = sqrt(Float64(1.0 + x))
	tmp = 0.0
	if (t_3 <= 0.01)
		tmp = Float64(Float64(Float64(1.0 / Float64(t_1 + sqrt(y))) + Float64(1.0 / Float64(sqrt(x) + t_4))) + Float64(1.0 / Float64(t_2 + sqrt(z))));
	else
		tmp = Float64(Float64(t_4 - sqrt(x)) + Float64(Float64(t_1 - sqrt(y)) + Float64(t_3 + Float64(1.0 / Float64(sqrt(Float64(1.0 + t)) + sqrt(t))))));
	end
	return tmp
end
function tmp = code(x, y, z, t)
	tmp = (((sqrt((x + 1.0)) - sqrt(x)) + (sqrt((y + 1.0)) - sqrt(y))) + (sqrt((z + 1.0)) - sqrt(z))) + (sqrt((t + 1.0)) - sqrt(t));
end
function tmp_2 = code(x, y, z, t)
	t_1 = sqrt((1.0 + y));
	t_2 = sqrt((1.0 + z));
	t_3 = t_2 - sqrt(z);
	t_4 = sqrt((1.0 + x));
	tmp = 0.0;
	if (t_3 <= 0.01)
		tmp = ((1.0 / (t_1 + sqrt(y))) + (1.0 / (sqrt(x) + t_4))) + (1.0 / (t_2 + sqrt(z)));
	else
		tmp = (t_4 - sqrt(x)) + ((t_1 - sqrt(y)) + (t_3 + (1.0 / (sqrt((1.0 + t)) + sqrt(t)))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(N[Sqrt[N[(x + 1.0), $MachinePrecision]], $MachinePrecision] - N[Sqrt[x], $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(y + 1.0), $MachinePrecision]], $MachinePrecision] - N[Sqrt[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(z + 1.0), $MachinePrecision]], $MachinePrecision] - N[Sqrt[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + 1.0), $MachinePrecision]], $MachinePrecision] - N[Sqrt[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(1.0 + y), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(1.0 + z), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 - N[Sqrt[z], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(1.0 + x), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.01], N[(N[(N[(1.0 / N[(t$95$1 + N[Sqrt[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.0 / N[(N[Sqrt[x], $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.0 / N[(t$95$2 + N[Sqrt[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$4 - N[Sqrt[x], $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$1 - N[Sqrt[y], $MachinePrecision]), $MachinePrecision] + N[(t$95$3 + N[(1.0 / N[(N[Sqrt[N[(1.0 + t), $MachinePrecision]], $MachinePrecision] + N[Sqrt[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\begin{array}{l}
t_1 := \sqrt{1 + y}\\
t_2 := \sqrt{1 + z}\\
t_3 := t_2 - \sqrt{z}\\
t_4 := \sqrt{1 + x}\\
\mathbf{if}\;t_3 \leq 0.01:\\
\;\;\;\;\left(\frac{1}{t_1 + \sqrt{y}} + \frac{1}{\sqrt{x} + t_4}\right) + \frac{1}{t_2 + \sqrt{z}}\\

\mathbf{else}:\\
\;\;\;\;\left(t_4 - \sqrt{x}\right) + \left(\left(t_1 - \sqrt{y}\right) + \left(t_3 + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.4
Target0.4
Herbie0.1
\[\left(\left(\frac{1}{\sqrt{x + 1} + \sqrt{x}} + \frac{1}{\sqrt{y + 1} + \sqrt{y}}\right) + \frac{1}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]

Derivation?

  1. Split input into 2 regimes
  2. if (-.f64 (sqrt.f64 (+.f64 z 1)) (sqrt.f64 z)) < 0.0100000000000000002

    1. Initial program 7.6

      \[\left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]
    2. Simplified7.6

      \[\leadsto \color{blue}{\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right)} \]
      Proof

      [Start]7.6

      \[ \left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]

      associate-+l+ [=>]7.6

      \[ \color{blue}{\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right)\right)} + \left(\sqrt{t + 1} - \sqrt{t}\right) \]

      associate-+l+ [=>]7.6

      \[ \color{blue}{\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)} \]

      associate-+r+ [<=]7.6

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \color{blue}{\left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\left(\sqrt{z + 1} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right)} \]

      +-commutative [=>]7.6

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{\color{blue}{1 + y}} - \sqrt{y}\right) + \left(\left(\sqrt{z + 1} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]7.6

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{\color{blue}{1 + z}} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]7.6

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{\color{blue}{1 + t}} - \sqrt{t}\right)\right)\right) \]
    3. Applied egg-rr3.3

      \[\leadsto \color{blue}{\left(1 + \left(x - x\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    4. Simplified3.3

      \[\leadsto \color{blue}{\frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
      Proof

      [Start]3.3

      \[ \left(1 + \left(x - x\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]3.3

      \[ \color{blue}{\left(\left(x - x\right) + 1\right)} \cdot \frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-inverses [=>]3.3

      \[ \left(\color{blue}{0} + 1\right) \cdot \frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      metadata-eval [=>]3.3

      \[ \color{blue}{1} \cdot \frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      *-lft-identity [=>]3.3

      \[ \color{blue}{\frac{1}{\mathsf{hypot}\left(1, \sqrt{x}\right) + \sqrt{x}}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]3.3

      \[ \frac{1}{\color{blue}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)}} + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    5. Applied egg-rr2.7

      \[\leadsto \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\color{blue}{\left(y + \left(1 - y\right)\right) \cdot \frac{1}{\sqrt{1 + y} + \sqrt{y}}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    6. Simplified1.4

      \[\leadsto \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\color{blue}{\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
      Proof

      [Start]2.7

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\left(y + \left(1 - y\right)\right) \cdot \frac{1}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      associate-*r/ [=>]2.7

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\color{blue}{\frac{\left(y + \left(1 - y\right)\right) \cdot 1}{\sqrt{1 + y} + \sqrt{y}}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      *-rgt-identity [=>]2.7

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{\color{blue}{y + \left(1 - y\right)}}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      associate-+r- [=>]2.7

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{\color{blue}{\left(y + 1\right) - y}}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-commutative [<=]2.7

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{\color{blue}{\left(1 + y\right)} - y}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      associate--l+ [=>]1.4

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{\color{blue}{1 + \left(y - y\right)}}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    7. Applied egg-rr0.2

      \[\leadsto \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\color{blue}{\left(1 + \left(z - z\right)\right) \cdot \frac{1}{\sqrt{1 + z} + \sqrt{z}}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    8. Simplified0.2

      \[\leadsto \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\color{blue}{\frac{1}{\sqrt{1 + z} + \sqrt{z}}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
      Proof

      [Start]0.2

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(1 + \left(z - z\right)\right) \cdot \frac{1}{\sqrt{1 + z} + \sqrt{z}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]0.2

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\color{blue}{\left(\left(z - z\right) + 1\right)} \cdot \frac{1}{\sqrt{1 + z} + \sqrt{z}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      +-inverses [=>]0.2

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\color{blue}{0} + 1\right) \cdot \frac{1}{\sqrt{1 + z} + \sqrt{z}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      metadata-eval [=>]0.2

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\color{blue}{1} \cdot \frac{1}{\sqrt{1 + z} + \sqrt{z}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]

      *-lft-identity [=>]0.2

      \[ \frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\color{blue}{\frac{1}{\sqrt{1 + z} + \sqrt{z}}} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right) \]
    9. Taylor expanded in t around inf 0.2

      \[\leadsto \color{blue}{\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1}{\sqrt{z} + \sqrt{1 + z}}\right)} \]
    10. Simplified0.2

      \[\leadsto \color{blue}{\left(\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \frac{1}{\sqrt{x} + \sqrt{1 + x}}\right) + \frac{1}{\sqrt{z} + \sqrt{1 + z}}} \]
      Proof

      [Start]0.2

      \[ \frac{1}{\sqrt{1 + y} + \sqrt{y}} + \left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1}{\sqrt{z} + \sqrt{1 + z}}\right) \]

      associate-+r+ [=>]0.2

      \[ \color{blue}{\left(\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \frac{1}{\sqrt{x} + \sqrt{1 + x}}\right) + \frac{1}{\sqrt{z} + \sqrt{1 + z}}} \]

    if 0.0100000000000000002 < (-.f64 (sqrt.f64 (+.f64 z 1)) (sqrt.f64 z))

    1. Initial program 1.0

      \[\left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]
    2. Simplified1.0

      \[\leadsto \color{blue}{\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)\right)\right)} \]
      Proof

      [Start]1.0

      \[ \left(\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right) \]

      associate-+l+ [=>]1.0

      \[ \color{blue}{\left(\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right)\right)} + \left(\sqrt{t + 1} - \sqrt{t}\right) \]

      associate-+l+ [=>]1.0

      \[ \color{blue}{\left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)} \]

      associate-+r+ [<=]1.0

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \color{blue}{\left(\left(\sqrt{y + 1} - \sqrt{y}\right) + \left(\left(\sqrt{z + 1} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right)} \]

      +-commutative [=>]1.0

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{\color{blue}{1 + y}} - \sqrt{y}\right) + \left(\left(\sqrt{z + 1} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]1.0

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{\color{blue}{1 + z}} - \sqrt{z}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)\right)\right) \]

      +-commutative [=>]1.0

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\sqrt{\color{blue}{1 + t}} - \sqrt{t}\right)\right)\right) \]
    3. Applied egg-rr0.1

      \[\leadsto \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \color{blue}{\left(1 + \left(t - t\right)\right) \cdot \frac{1}{\sqrt{1 + t} + \sqrt{t}}}\right)\right) \]
    4. Simplified0.1

      \[\leadsto \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \color{blue}{\frac{1}{\sqrt{1 + t} + \sqrt{t}}}\right)\right) \]
      Proof

      [Start]0.1

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(1 + \left(t - t\right)\right) \cdot \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right) \]

      +-commutative [=>]0.1

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \color{blue}{\left(\left(t - t\right) + 1\right)} \cdot \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right) \]

      +-inverses [=>]0.1

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \left(\color{blue}{0} + 1\right) \cdot \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right) \]

      metadata-eval [=>]0.1

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \color{blue}{1} \cdot \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right) \]

      *-lft-identity [=>]0.1

      \[ \left(\sqrt{x + 1} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \color{blue}{\frac{1}{\sqrt{1 + t} + \sqrt{t}}}\right)\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification0.1

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt{1 + z} - \sqrt{z} \leq 0.01:\\ \;\;\;\;\left(\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \frac{1}{\sqrt{x} + \sqrt{1 + x}}\right) + \frac{1}{\sqrt{1 + z} + \sqrt{z}}\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{1 + x} - \sqrt{x}\right) + \left(\left(\sqrt{1 + y} - \sqrt{y}\right) + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Error0.4
Cost59648
\[\frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + t} - \sqrt{t}\right) + \frac{1}{\sqrt{1 + z} + \sqrt{z}}\right)\right) \]
Alternative 2
Error1.2
Cost59520
\[\frac{1}{\sqrt{x} + \mathsf{hypot}\left(1, \sqrt{x}\right)} + \left(\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} + \left(\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} - \sqrt{z}\right)\right)\right) \]
Alternative 3
Error0.2
Cost40004
\[\begin{array}{l} t_1 := \sqrt{1 + z}\\ t_2 := \sqrt{1 + x}\\ \mathbf{if}\;t \leq 2 \cdot 10^{+25}:\\ \;\;\;\;\left(t_2 - \sqrt{x}\right) + \left(1 + \left(\left(t_1 - \sqrt{z}\right) + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \frac{1}{\sqrt{x} + t_2}\right) + \frac{1}{t_1 + \sqrt{z}}\\ \end{array} \]
Alternative 4
Error5.1
Cost39880
\[\begin{array}{l} t_1 := \sqrt{1 + z}\\ t_2 := \sqrt{1 + x}\\ t_3 := \sqrt{1 + y} - \sqrt{y}\\ \mathbf{if}\;z \leq 3.6 \cdot 10^{-11}:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(t_1 + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;t_2 + \left(t_3 + \left(\frac{1}{t_1 + \sqrt{z}} - \sqrt{x}\right)\right)\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_2}\\ \mathbf{else}:\\ \;\;\;\;1 + t_3\\ \end{array} \]
Alternative 5
Error2.2
Cost39876
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ \mathbf{if}\;y \leq 5.2 \cdot 10^{-20}:\\ \;\;\;\;\left(t_1 - \sqrt{x}\right) + \left(1 + \left(\left(\sqrt{1 + z} - \sqrt{z}\right) + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\ \mathbf{elif}\;y \leq 4.8 \cdot 10^{+30}:\\ \;\;\;\;t_1 + \log \left(e^{\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} - \sqrt{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \end{array} \]
Alternative 6
Error1.0
Cost39876
\[\begin{array}{l} t_1 := \sqrt{1 + z} - \sqrt{z}\\ t_2 := \sqrt{1 + x}\\ \mathbf{if}\;y \leq 5 \cdot 10^{-40}:\\ \;\;\;\;\left(t_2 - \sqrt{x}\right) + \left(1 + \left(t_1 + \frac{1}{\sqrt{1 + t} + \sqrt{t}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{1 + y} + \sqrt{y}} + \left(t_1 + \frac{1}{\sqrt{x} + t_2}\right)\\ \end{array} \]
Alternative 7
Error5.7
Cost39752
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ \mathbf{if}\;z \leq 200000000000:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;t_1 + \log \left(e^{\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} - \sqrt{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \end{array} \]
Alternative 8
Error2.5
Cost39752
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ \mathbf{if}\;y \leq 9.5 \cdot 10^{-19}:\\ \;\;\;\;\left(t_1 - \sqrt{x}\right) + \left(1 + \left(\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} - \sqrt{z}\right)\right)\right)\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{+31}:\\ \;\;\;\;t_1 + \log \left(e^{\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} - \sqrt{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \end{array} \]
Alternative 9
Error2.5
Cost39752
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ \mathbf{if}\;y \leq 1.05 \cdot 10^{-19}:\\ \;\;\;\;\left(t_1 + \left(1 + \left(\left(\sqrt{1 + z} + \left(\sqrt{1 + t} - \sqrt{t}\right)\right) - \sqrt{z}\right)\right)\right) - \sqrt{x}\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{+30}:\\ \;\;\;\;t_1 + \log \left(e^{\frac{1 + \left(y - y\right)}{\sqrt{1 + y} + \sqrt{y}} - \sqrt{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \end{array} \]
Alternative 10
Error6.9
Cost39624
\[\begin{array}{l} t_1 := \sqrt{1 + z} - \sqrt{z}\\ \mathbf{if}\;t_1 \leq 10^{-6}:\\ \;\;\;\;1 + \left(\sqrt{1 + y} - \sqrt{y}\right)\\ \mathbf{elif}\;t_1 \leq 0.999999999999999:\\ \;\;\;\;t_1 + 2\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + 3\\ \end{array} \]
Alternative 11
Error6.0
Cost39624
\[\begin{array}{l} t_1 := {\left(1 + x\right)}^{0.25}\\ t_2 := \sqrt{1 + y} - \sqrt{y}\\ \mathbf{if}\;z \leq 250000000000:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;\mathsf{fma}\left(t_1, t_1, t_2 - \sqrt{x}\right)\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \mathbf{else}:\\ \;\;\;\;1 + t_2\\ \end{array} \]
Alternative 12
Error6.4
Cost39368
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ t_2 := \sqrt{1 + y} - \sqrt{y}\\ \mathbf{if}\;z \leq 250000000000:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;t_1 + \log \left(e^{t_2 - \sqrt{x}}\right)\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \mathbf{else}:\\ \;\;\;\;1 + t_2\\ \end{array} \]
Alternative 13
Error6.5
Cost39368
\[\begin{array}{l} t_1 := \sqrt{1 + x}\\ t_2 := \sqrt{1 + y} - \sqrt{y}\\ \mathbf{if}\;z \leq 250000000000:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;t_1 + \mathsf{log1p}\left(\mathsf{expm1}\left(t_2 - \sqrt{x}\right)\right)\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{1}{\sqrt{x} + t_1}\\ \mathbf{else}:\\ \;\;\;\;1 + t_2\\ \end{array} \]
Alternative 14
Error6.6
Cost26760
\[\begin{array}{l} t_1 := \sqrt{1 + z}\\ t_2 := \sqrt{1 + y}\\ \mathbf{if}\;z \leq 2.6 \cdot 10^{-10}:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(t_1 + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254}:\\ \;\;\;\;1 + \left(t_2 + \left(\left(t_1 - {z}^{0.5}\right) - \sqrt{y}\right)\right)\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \mathbf{else}:\\ \;\;\;\;1 + \left(t_2 - \sqrt{y}\right)\\ \end{array} \]
Alternative 15
Error6.8
Cost26696
\[\begin{array}{l} t_1 := \sqrt{1 + y}\\ \mathbf{if}\;z \leq 5.2 \cdot 10^{-33}:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + 3\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+25}:\\ \;\;\;\;1 + \left(t_1 + \left(\sqrt{1 + z} - \left(\sqrt{y} + \sqrt{z}\right)\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254} \lor \neg \left(z \leq 4.5 \cdot 10^{+285}\right):\\ \;\;\;\;1 + \left(t_1 - \sqrt{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \end{array} \]
Alternative 16
Error6.9
Cost26696
\[\begin{array}{l} t_1 := \sqrt{1 + y}\\ t_2 := \sqrt{1 + z}\\ \mathbf{if}\;z \leq 4.8 \cdot 10^{-18}:\\ \;\;\;\;2 + \left(t_2 + \left(\left(\sqrt{1 + t} - \sqrt{z}\right) - \sqrt{t}\right)\right)\\ \mathbf{elif}\;z \leq 2.5 \cdot 10^{+25}:\\ \;\;\;\;1 + \left(t_1 + \left(t_2 - \left(\sqrt{y} + \sqrt{z}\right)\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254} \lor \neg \left(z \leq 4.5 \cdot 10^{+285}\right):\\ \;\;\;\;1 + \left(t_1 - \sqrt{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \end{array} \]
Alternative 17
Error6.8
Cost26564
\[\begin{array}{l} \mathbf{if}\;z \leq 250000000000:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + \left(\sqrt{1 + z} + \left(2 - \sqrt{z}\right)\right)\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254} \lor \neg \left(z \leq 4.5 \cdot 10^{+285}\right):\\ \;\;\;\;1 + \left(\sqrt{1 + y} - \sqrt{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \end{array} \]
Alternative 18
Error10.1
Cost26436
\[\begin{array}{l} t_1 := \sqrt{1 + z} - \sqrt{z}\\ \mathbf{if}\;t_1 \leq 10^{-6}:\\ \;\;\;\;1 + \left(\sqrt{1 + y} - \sqrt{y}\right)\\ \mathbf{else}:\\ \;\;\;\;t_1 + 2\\ \end{array} \]
Alternative 19
Error7.0
Cost13777
\[\begin{array}{l} \mathbf{if}\;z \leq 9 \cdot 10^{-33}:\\ \;\;\;\;\left(\sqrt{1 + t} - \sqrt{t}\right) + 3\\ \mathbf{elif}\;z \leq 250000000000:\\ \;\;\;\;\left(\sqrt{1 + z} - \sqrt{z}\right) + 2\\ \mathbf{elif}\;z \leq 3.05 \cdot 10^{+254} \lor \neg \left(z \leq 4.5 \cdot 10^{+285}\right):\\ \;\;\;\;1 + \left(\sqrt{1 + y} - \sqrt{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sqrt{x} + \sqrt{1 + x}}\\ \end{array} \]
Alternative 20
Error23.1
Cost13248
\[1 + \left(\sqrt{1 + y} - \sqrt{y}\right) \]
Alternative 21
Error42.0
Cost13120
\[\sqrt{1 + x} - \sqrt{x} \]
Alternative 22
Error42.3
Cost6848
\[\left(1 + x \cdot 0.5\right) - \sqrt{x} \]
Alternative 23
Error42.6
Cost64
\[1 \]

Error

Reproduce?

herbie shell --seed 2023032 
(FPCore (x y z t)
  :name "Main:z from "
  :precision binary64

  :herbie-target
  (+ (+ (+ (/ 1.0 (+ (sqrt (+ x 1.0)) (sqrt x))) (/ 1.0 (+ (sqrt (+ y 1.0)) (sqrt y)))) (/ 1.0 (+ (sqrt (+ z 1.0)) (sqrt z)))) (- (sqrt (+ t 1.0)) (sqrt t)))

  (+ (+ (+ (- (sqrt (+ x 1.0)) (sqrt x)) (- (sqrt (+ y 1.0)) (sqrt y))) (- (sqrt (+ z 1.0)) (sqrt z))) (- (sqrt (+ t 1.0)) (sqrt t))))