| Alternative 1 | |
|---|---|
| Error | 1.3 |
| Cost | 7944 |
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))(FPCore (x y z)
:precision binary64
(if (<= x -2.6e+49)
(*
(- x 2.0)
(-
(+
(* 3451.550173699799 (/ 1.0 (pow x 2.0)))
(+ 4.16438922228 (- (/ (+ 124074.40615218398 (- y)) (pow x 3.0)))))
(* 101.7851458539211 (/ 1.0 x))))
(if (<= x 1.35e+16)
(*
(- x 2.0)
(/
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(-
(+
(+ (* x 4.16438922228) (* (/ 1.0 x) 3655.1204654076414))
(/ (+ (- y) 130977.50649958357) (- (pow x 2.0))))
110.1139242984811))))double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
double code(double x, double y, double z) {
double tmp;
if (x <= -2.6e+49) {
tmp = (x - 2.0) * (((3451.550173699799 * (1.0 / pow(x, 2.0))) + (4.16438922228 + -((124074.40615218398 + -y) / pow(x, 3.0)))) - (101.7851458539211 * (1.0 / x)));
} else if (x <= 1.35e+16) {
tmp = (x - 2.0) * (((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606));
} else {
tmp = (((x * 4.16438922228) + ((1.0 / x) * 3655.1204654076414)) + ((-y + 130977.50649958357) / -pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.6d+49)) then
tmp = (x - 2.0d0) * (((3451.550173699799d0 * (1.0d0 / (x ** 2.0d0))) + (4.16438922228d0 + -((124074.40615218398d0 + -y) / (x ** 3.0d0)))) - (101.7851458539211d0 * (1.0d0 / x)))
else if (x <= 1.35d+16) then
tmp = (x - 2.0d0) * (((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0))
else
tmp = (((x * 4.16438922228d0) + ((1.0d0 / x) * 3655.1204654076414d0)) + ((-y + 130977.50649958357d0) / -(x ** 2.0d0))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.6e+49) {
tmp = (x - 2.0) * (((3451.550173699799 * (1.0 / Math.pow(x, 2.0))) + (4.16438922228 + -((124074.40615218398 + -y) / Math.pow(x, 3.0)))) - (101.7851458539211 * (1.0 / x)));
} else if (x <= 1.35e+16) {
tmp = (x - 2.0) * (((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606));
} else {
tmp = (((x * 4.16438922228) + ((1.0 / x) * 3655.1204654076414)) + ((-y + 130977.50649958357) / -Math.pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
def code(x, y, z): tmp = 0 if x <= -2.6e+49: tmp = (x - 2.0) * (((3451.550173699799 * (1.0 / math.pow(x, 2.0))) + (4.16438922228 + -((124074.40615218398 + -y) / math.pow(x, 3.0)))) - (101.7851458539211 * (1.0 / x))) elif x <= 1.35e+16: tmp = (x - 2.0) * (((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) else: tmp = (((x * 4.16438922228) + ((1.0 / x) * 3655.1204654076414)) + ((-y + 130977.50649958357) / -math.pow(x, 2.0))) - 110.1139242984811 return tmp
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function code(x, y, z) tmp = 0.0 if (x <= -2.6e+49) tmp = Float64(Float64(x - 2.0) * Float64(Float64(Float64(3451.550173699799 * Float64(1.0 / (x ^ 2.0))) + Float64(4.16438922228 + Float64(-Float64(Float64(124074.40615218398 + Float64(-y)) / (x ^ 3.0))))) - Float64(101.7851458539211 * Float64(1.0 / x)))); elseif (x <= 1.35e+16) tmp = Float64(Float64(x - 2.0) * Float64(Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = Float64(Float64(Float64(Float64(x * 4.16438922228) + Float64(Float64(1.0 / x) * 3655.1204654076414)) + Float64(Float64(Float64(-y) + 130977.50649958357) / Float64(-(x ^ 2.0)))) - 110.1139242984811); end return tmp end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.6e+49) tmp = (x - 2.0) * (((3451.550173699799 * (1.0 / (x ^ 2.0))) + (4.16438922228 + -((124074.40615218398 + -y) / (x ^ 3.0)))) - (101.7851458539211 * (1.0 / x))); elseif (x <= 1.35e+16) tmp = (x - 2.0) * (((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = (((x * 4.16438922228) + ((1.0 / x) * 3655.1204654076414)) + ((-y + 130977.50649958357) / -(x ^ 2.0))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_] := If[LessEqual[x, -2.6e+49], N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(3451.550173699799 * N[(1.0 / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + (-N[(N[(124074.40615218398 + (-y)), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision] - N[(101.7851458539211 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+16], N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(N[(1.0 / x), $MachinePrecision] * 3655.1204654076414), $MachinePrecision]), $MachinePrecision] + N[(N[((-y) + 130977.50649958357), $MachinePrecision] / (-N[Power[x, 2.0], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\begin{array}{l}
\mathbf{if}\;x \leq -2.6 \cdot 10^{+49}:\\
\;\;\;\;\left(x - 2\right) \cdot \left(\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + \left(-\frac{124074.40615218398 + \left(-y\right)}{{x}^{3}}\right)\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+16}:\\
\;\;\;\;\left(x - 2\right) \cdot \frac{x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \frac{\left(-y\right) + 130977.50649958357}{-{x}^{2}}\right) - 110.1139242984811\\
\end{array}
Results
| Original | 27.5 |
|---|---|
| Target | 0.8 |
| Herbie | 1.3 |
if x < -2.59999999999999989e49Initial program 61.6
Simplified57.6
[Start]61.6 | \[ \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
|---|---|
rational_best-simplify-2 [=>]61.6 | \[ \frac{\color{blue}{\left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right) \cdot \left(x - 2\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-47 [=>]57.6 | \[ \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}}
\] |
rational_best-simplify-2 [=>]57.6 | \[ \left(x - 2\right) \cdot \frac{\color{blue}{x \cdot \left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right)} + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]57.6 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(\color{blue}{x \cdot \left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right)} + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]57.6 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(x \cdot \left(\color{blue}{x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)} + 137.519416416\right) + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
Taylor expanded in x around -inf 1.4
Simplified1.4
[Start]1.4 | \[ \left(x - 2\right) \cdot \left(\left(-1 \cdot \frac{124074.40615218398 + -1 \cdot y}{{x}^{3}} + \left(4.16438922228 + 3451.550173699799 \cdot \frac{1}{{x}^{2}}\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
|---|---|
rational_best-simplify-43 [=>]1.4 | \[ \left(x - 2\right) \cdot \left(\color{blue}{\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + -1 \cdot \frac{124074.40615218398 + -1 \cdot y}{{x}^{3}}\right)\right)} - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
rational_best-simplify-2 [=>]1.4 | \[ \left(x - 2\right) \cdot \left(\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + \color{blue}{\frac{124074.40615218398 + -1 \cdot y}{{x}^{3}} \cdot -1}\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
rational_best-simplify-12 [=>]1.4 | \[ \left(x - 2\right) \cdot \left(\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + \color{blue}{\left(-\frac{124074.40615218398 + -1 \cdot y}{{x}^{3}}\right)}\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
rational_best-simplify-2 [=>]1.4 | \[ \left(x - 2\right) \cdot \left(\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + \left(-\frac{124074.40615218398 + \color{blue}{y \cdot -1}}{{x}^{3}}\right)\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
rational_best-simplify-12 [=>]1.4 | \[ \left(x - 2\right) \cdot \left(\left(3451.550173699799 \cdot \frac{1}{{x}^{2}} + \left(4.16438922228 + \left(-\frac{124074.40615218398 + \color{blue}{\left(-y\right)}}{{x}^{3}}\right)\right)\right) - 101.7851458539211 \cdot \frac{1}{x}\right)
\] |
if -2.59999999999999989e49 < x < 1.35e16Initial program 1.0
Simplified0.5
[Start]1.0 | \[ \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
|---|---|
rational_best-simplify-2 [=>]1.0 | \[ \frac{\color{blue}{\left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right) \cdot \left(x - 2\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-47 [=>]0.5 | \[ \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}}
\] |
rational_best-simplify-2 [=>]0.5 | \[ \left(x - 2\right) \cdot \frac{\color{blue}{x \cdot \left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right)} + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]0.5 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(\color{blue}{x \cdot \left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right)} + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]0.5 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(x \cdot \left(\color{blue}{x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)} + 137.519416416\right) + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
if 1.35e16 < x Initial program 56.1
Simplified52.0
[Start]56.1 | \[ \frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
|---|---|
rational_best-simplify-2 [=>]56.1 | \[ \frac{\color{blue}{\left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right) \cdot \left(x - 2\right)}}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-47 [=>]52.0 | \[ \color{blue}{\left(x - 2\right) \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}}
\] |
rational_best-simplify-2 [=>]52.0 | \[ \left(x - 2\right) \cdot \frac{\color{blue}{x \cdot \left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right)} + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]52.0 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(\color{blue}{x \cdot \left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right)} + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
rational_best-simplify-2 [=>]52.0 | \[ \left(x - 2\right) \cdot \frac{x \cdot \left(x \cdot \left(\color{blue}{x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)} + 137.519416416\right) + y\right) + z}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\] |
Taylor expanded in x around -inf 2.8
Simplified2.8
[Start]2.8 | \[ \left(-1 \cdot \frac{130977.50649958357 + -1 \cdot y}{{x}^{2}} + \left(4.16438922228 \cdot x + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811
\] |
|---|---|
rational_best-simplify-1 [=>]2.8 | \[ \color{blue}{\left(\left(4.16438922228 \cdot x + 3655.1204654076414 \cdot \frac{1}{x}\right) + -1 \cdot \frac{130977.50649958357 + -1 \cdot y}{{x}^{2}}\right)} - 110.1139242984811
\] |
rational_best-simplify-2 [=>]2.8 | \[ \left(\left(\color{blue}{x \cdot 4.16438922228} + 3655.1204654076414 \cdot \frac{1}{x}\right) + -1 \cdot \frac{130977.50649958357 + -1 \cdot y}{{x}^{2}}\right) - 110.1139242984811
\] |
rational_best-simplify-2 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \color{blue}{\frac{1}{x} \cdot 3655.1204654076414}\right) + -1 \cdot \frac{130977.50649958357 + -1 \cdot y}{{x}^{2}}\right) - 110.1139242984811
\] |
rational_best-simplify-2 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \color{blue}{\frac{130977.50649958357 + -1 \cdot y}{{x}^{2}} \cdot -1}\right) - 110.1139242984811
\] |
rational_best-simplify-12 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \color{blue}{\left(-\frac{130977.50649958357 + -1 \cdot y}{{x}^{2}}\right)}\right) - 110.1139242984811
\] |
rational_best-simplify-9 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \color{blue}{\frac{\frac{130977.50649958357 + -1 \cdot y}{{x}^{2}}}{-1}}\right) - 110.1139242984811
\] |
rational_best-simplify-45 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \color{blue}{\frac{\frac{130977.50649958357 + -1 \cdot y}{-1}}{{x}^{2}}}\right) - 110.1139242984811
\] |
rational_best-simplify-48 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \color{blue}{\frac{130977.50649958357 + -1 \cdot y}{{x}^{2} \cdot -1}}\right) - 110.1139242984811
\] |
rational_best-simplify-1 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \frac{\color{blue}{-1 \cdot y + 130977.50649958357}}{{x}^{2} \cdot -1}\right) - 110.1139242984811
\] |
rational_best-simplify-2 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \frac{\color{blue}{y \cdot -1} + 130977.50649958357}{{x}^{2} \cdot -1}\right) - 110.1139242984811
\] |
rational_best-simplify-12 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \frac{\color{blue}{\left(-y\right)} + 130977.50649958357}{{x}^{2} \cdot -1}\right) - 110.1139242984811
\] |
rational_best-simplify-12 [=>]2.8 | \[ \left(\left(x \cdot 4.16438922228 + \frac{1}{x} \cdot 3655.1204654076414\right) + \frac{\left(-y\right) + 130977.50649958357}{\color{blue}{-{x}^{2}}}\right) - 110.1139242984811
\] |
Final simplification1.3
| Alternative 1 | |
|---|---|
| Error | 1.3 |
| Cost | 7944 |
| Alternative 2 | |
|---|---|
| Error | 1.4 |
| Cost | 2632 |
| Alternative 3 | |
|---|---|
| Error | 1.4 |
| Cost | 2632 |
| Alternative 4 | |
|---|---|
| Error | 2.8 |
| Cost | 2504 |
| Alternative 5 | |
|---|---|
| Error | 3.6 |
| Cost | 2120 |
| Alternative 6 | |
|---|---|
| Error | 5.0 |
| Cost | 1736 |
| Alternative 7 | |
|---|---|
| Error | 5.0 |
| Cost | 1480 |
| Alternative 8 | |
|---|---|
| Error | 5.1 |
| Cost | 1224 |
| Alternative 9 | |
|---|---|
| Error | 6.8 |
| Cost | 1096 |
| Alternative 10 | |
|---|---|
| Error | 6.7 |
| Cost | 1096 |
| Alternative 11 | |
|---|---|
| Error | 15.6 |
| Cost | 848 |
| Alternative 12 | |
|---|---|
| Error | 15.6 |
| Cost | 848 |
| Alternative 13 | |
|---|---|
| Error | 15.6 |
| Cost | 848 |
| Alternative 14 | |
|---|---|
| Error | 15.5 |
| Cost | 848 |
| Alternative 15 | |
|---|---|
| Error | 6.7 |
| Cost | 712 |
| Alternative 16 | |
|---|---|
| Error | 6.7 |
| Cost | 712 |
| Alternative 17 | |
|---|---|
| Error | 14.7 |
| Cost | 456 |
| Alternative 18 | |
|---|---|
| Error | 34.6 |
| Cost | 192 |
| Alternative 19 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |
herbie shell --seed 2023096
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))