| Alternative 1 | |
|---|---|
| Accuracy | 99.4% |
| Cost | 53312 |

(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))))
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(+
(+
(+
(/ 1.0 (+ (sqrt (+ 1.0 x)) (sqrt x)))
(/ (+ 1.0 (- y y)) (+ (sqrt y) (sqrt (+ 1.0 y)))))
(/ 1.0 (+ (sqrt (+ 1.0 z)) (sqrt z))))
(- (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));
}
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return (((1.0 / (sqrt((1.0 + x)) + sqrt(x))) + ((1.0 + (y - y)) / (sqrt(y) + sqrt((1.0 + y))))) + (1.0 / (sqrt((1.0 + z)) + sqrt(z)))) + (sqrt((1.0 + t)) - sqrt(t));
}
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
NOTE: x, y, z, and t should be sorted in increasing order before calling this 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
code = (((1.0d0 / (sqrt((1.0d0 + x)) + sqrt(x))) + ((1.0d0 + (y - y)) / (sqrt(y) + sqrt((1.0d0 + y))))) + (1.0d0 / (sqrt((1.0d0 + z)) + sqrt(z)))) + (sqrt((1.0d0 + t)) - sqrt(t))
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));
}
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return (((1.0 / (Math.sqrt((1.0 + x)) + Math.sqrt(x))) + ((1.0 + (y - y)) / (Math.sqrt(y) + Math.sqrt((1.0 + y))))) + (1.0 / (Math.sqrt((1.0 + z)) + Math.sqrt(z)))) + (Math.sqrt((1.0 + t)) - Math.sqrt(t));
}
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))
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return (((1.0 / (math.sqrt((1.0 + x)) + math.sqrt(x))) + ((1.0 + (y - y)) / (math.sqrt(y) + math.sqrt((1.0 + y))))) + (1.0 / (math.sqrt((1.0 + z)) + math.sqrt(z)))) + (math.sqrt((1.0 + t)) - math.sqrt(t))
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
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(Float64(Float64(Float64(1.0 / Float64(sqrt(Float64(1.0 + x)) + sqrt(x))) + Float64(Float64(1.0 + Float64(y - y)) / Float64(sqrt(y) + sqrt(Float64(1.0 + y))))) + Float64(1.0 / Float64(sqrt(Float64(1.0 + z)) + sqrt(z)))) + Float64(sqrt(Float64(1.0 + t)) - sqrt(t))) 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
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = (((1.0 / (sqrt((1.0 + x)) + sqrt(x))) + ((1.0 + (y - y)) / (sqrt(y) + sqrt((1.0 + y))))) + (1.0 / (sqrt((1.0 + z)) + sqrt(z)))) + (sqrt((1.0 + t)) - sqrt(t));
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]
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(N[(N[(N[(1.0 / N[(N[Sqrt[N[(1.0 + x), $MachinePrecision]], $MachinePrecision] + N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 + N[(y - y), $MachinePrecision]), $MachinePrecision] / N[(N[Sqrt[y], $MachinePrecision] + N[Sqrt[N[(1.0 + y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.0 / N[(N[Sqrt[N[(1.0 + z), $MachinePrecision]], $MachinePrecision] + N[Sqrt[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(1.0 + t), $MachinePrecision]], $MachinePrecision] - N[Sqrt[t], $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}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\left(\left(\frac{1}{\sqrt{1 + x} + \sqrt{x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{1}{\sqrt{1 + z} + \sqrt{z}}\right) + \left(\sqrt{1 + t} - \sqrt{t}\right)
\end{array}
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Results
| Original | 92.0% |
|---|---|
| Target | 99.4% |
| Herbie | 99.4% |
Initial program 91.1%
Applied egg-rr91.7%
[Start]91.1% | \[ \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)
\] |
|---|---|
flip-- [=>]91.2% | \[ \left(\left(\color{blue}{\frac{\sqrt{x + 1} \cdot \sqrt{x + 1} - \sqrt{x} \cdot \sqrt{x}}{\sqrt{x + 1} + \sqrt{x}}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]75.2% | \[ \left(\left(\frac{\color{blue}{\left(x + 1\right)} - \sqrt{x} \cdot \sqrt{x}}{\sqrt{x + 1} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]75.2% | \[ \left(\left(\frac{\color{blue}{\left(1 + x\right)} - \sqrt{x} \cdot \sqrt{x}}{\sqrt{x + 1} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]91.7% | \[ \left(\left(\frac{\left(1 + x\right) - \color{blue}{x}}{\sqrt{x + 1} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]91.7% | \[ \left(\left(\frac{\left(1 + x\right) - x}{\sqrt{\color{blue}{1 + x}} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Simplified92.9%
[Start]91.7% | \[ \left(\left(\frac{\left(1 + x\right) - x}{\sqrt{1 + x} + \sqrt{x}} + \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+ [=>]92.9% | \[ \left(\left(\frac{\color{blue}{1 + \left(x - x\right)}}{\sqrt{1 + x} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-inverses [=>]92.9% | \[ \left(\left(\frac{1 + \color{blue}{0}}{\sqrt{1 + x} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
metadata-eval [=>]92.9% | \[ \left(\left(\frac{\color{blue}{1}}{\sqrt{1 + x} + \sqrt{x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]92.9% | \[ \left(\left(\frac{1}{\color{blue}{\sqrt{x} + \sqrt{1 + x}}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Applied egg-rr93.5%
[Start]92.9% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \left(\sqrt{y + 1} - \sqrt{y}\right)\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
flip-- [=>]93.1% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \color{blue}{\frac{\sqrt{y + 1} \cdot \sqrt{y + 1} - \sqrt{y} \cdot \sqrt{y}}{\sqrt{y + 1} + \sqrt{y}}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]71.3% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{\color{blue}{\left(y + 1\right)} - \sqrt{y} \cdot \sqrt{y}}{\sqrt{y + 1} + \sqrt{y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]93.5% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{\left(y + 1\right) - \color{blue}{y}}{\sqrt{y + 1} + \sqrt{y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Simplified94.4%
[Start]93.5% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{\left(y + 1\right) - y}{\sqrt{y + 1} + \sqrt{y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
+-commutative [=>]93.5% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{\color{blue}{\left(1 + y\right)} - y}{\sqrt{y + 1} + \sqrt{y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
associate--l+ [=>]94.4% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{\color{blue}{1 + \left(y - y\right)}}{\sqrt{y + 1} + \sqrt{y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]94.4% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\color{blue}{\sqrt{y} + \sqrt{y + 1}}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]94.4% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{\color{blue}{1 + y}}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Applied egg-rr95.2%
[Start]94.4% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \left(\sqrt{z + 1} - \sqrt{z}\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
flip-- [=>]94.4% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \color{blue}{\frac{\sqrt{z + 1} \cdot \sqrt{z + 1} - \sqrt{z} \cdot \sqrt{z}}{\sqrt{z + 1} + \sqrt{z}}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]78.9% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{\color{blue}{\left(z + 1\right)} - \sqrt{z} \cdot \sqrt{z}}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
add-sqr-sqrt [<=]95.2% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{\left(z + 1\right) - \color{blue}{z}}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Simplified97.0%
[Start]95.2% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{\left(z + 1\right) - z}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
+-commutative [<=]95.2% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{\color{blue}{\left(1 + z\right)} - z}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
associate--l+ [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{\color{blue}{1 + \left(z - z\right)}}{\sqrt{z + 1} + \sqrt{z}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{1 + \left(z - z\right)}{\color{blue}{\sqrt{z} + \sqrt{z + 1}}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Applied egg-rr95.8%
[Start]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{1 + \left(z - z\right)}{\sqrt{z} + \sqrt{z + 1}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
expm1-log1p-u [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{1 + \left(z - z\right)}{\sqrt{z} + \sqrt{z + 1}}\right)\right)}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
expm1-udef [=>]95.8% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \color{blue}{\left(e^{\mathsf{log1p}\left(\frac{1 + \left(z - z\right)}{\sqrt{z} + \sqrt{z + 1}}\right)} - 1\right)}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-inverses [=>]95.8% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \left(e^{\mathsf{log1p}\left(\frac{1 + \color{blue}{0}}{\sqrt{z} + \sqrt{z + 1}}\right)} - 1\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
metadata-eval [=>]95.8% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \left(e^{\mathsf{log1p}\left(\frac{\color{blue}{1}}{\sqrt{z} + \sqrt{z + 1}}\right)} - 1\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]95.8% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \left(e^{\mathsf{log1p}\left(\frac{1}{\sqrt{z} + \sqrt{\color{blue}{1 + z}}}\right)} - 1\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Simplified97.0%
[Start]95.8% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \left(e^{\mathsf{log1p}\left(\frac{1}{\sqrt{z} + \sqrt{1 + z}}\right)} - 1\right)\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
|---|---|
expm1-def [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{1}{\sqrt{z} + \sqrt{1 + z}}\right)\right)}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
expm1-log1p [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \color{blue}{\frac{1}{\sqrt{z} + \sqrt{1 + z}}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
+-commutative [=>]97.0% | \[ \left(\left(\frac{1}{\sqrt{x} + \sqrt{1 + x}} + \frac{1 + \left(y - y\right)}{\sqrt{y} + \sqrt{1 + y}}\right) + \frac{1}{\color{blue}{\sqrt{1 + z} + \sqrt{z}}}\right) + \left(\sqrt{t + 1} - \sqrt{t}\right)
\] |
Final simplification97.0%
| Alternative 1 | |
|---|---|
| Accuracy | 99.4% |
| Cost | 53312 |
| Alternative 2 | |
|---|---|
| Accuracy | 99.2% |
| Cost | 92484 |
| Alternative 3 | |
|---|---|
| Accuracy | 98.5% |
| Cost | 65988 |
| Alternative 4 | |
|---|---|
| Accuracy | 98.4% |
| Cost | 47561 |
| Alternative 5 | |
|---|---|
| Accuracy | 98.5% |
| Cost | 47428 |
| Alternative 6 | |
|---|---|
| Accuracy | 98.2% |
| Cost | 47176 |
| Alternative 7 | |
|---|---|
| Accuracy | 97.6% |
| Cost | 40260 |
| Alternative 8 | |
|---|---|
| Accuracy | 98.2% |
| Cost | 40260 |
| Alternative 9 | |
|---|---|
| Accuracy | 97.2% |
| Cost | 39880 |
| Alternative 10 | |
|---|---|
| Accuracy | 96.5% |
| Cost | 26696 |
| Alternative 11 | |
|---|---|
| Accuracy | 90.1% |
| Cost | 26568 |
| Alternative 12 | |
|---|---|
| Accuracy | 90.1% |
| Cost | 26568 |
| Alternative 13 | |
|---|---|
| Accuracy | 95.4% |
| Cost | 26568 |
| Alternative 14 | |
|---|---|
| Accuracy | 90.0% |
| Cost | 20296 |
| Alternative 15 | |
|---|---|
| Accuracy | 89.8% |
| Cost | 19716 |
| Alternative 16 | |
|---|---|
| Accuracy | 89.8% |
| Cost | 13512 |
| Alternative 17 | |
|---|---|
| Accuracy | 85.0% |
| Cost | 13380 |
| Alternative 18 | |
|---|---|
| Accuracy | 85.0% |
| Cost | 13380 |
| Alternative 19 | |
|---|---|
| Accuracy | 61.9% |
| Cost | 13252 |
| Alternative 20 | |
|---|---|
| Accuracy | 64.8% |
| Cost | 13248 |
| Alternative 21 | |
|---|---|
| Accuracy | 61.4% |
| Cost | 6980 |
| Alternative 22 | |
|---|---|
| Accuracy | 43.7% |
| Cost | 6848 |
| Alternative 23 | |
|---|---|
| Accuracy | 4.5% |
| Cost | 192 |
herbie shell --seed 2023167
(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))))