
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
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 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
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 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
(FPCore (x y z t) :precision binary64 (if (or (<= z -1e+86) (not (<= z 6.5e+49))) (/ (+ x (/ y t)) (+ x 1.0)) (/ (+ x (/ (- (* z y) x) (- (* z t) x))) (+ x 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1e+86) || !(z <= 6.5e+49)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (x + 1.0);
}
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
real(8) :: tmp
if ((z <= (-1d+86)) .or. (.not. (z <= 6.5d+49))) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1e+86) || !(z <= 6.5e+49)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = (x + (((z * y) - x) / ((z * t) - x))) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1e+86) or not (z <= 6.5e+49): tmp = (x + (y / t)) / (x + 1.0) else: tmp = (x + (((z * y) - x) / ((z * t) - x))) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1e+86) || !(z <= 6.5e+49)) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = Float64(Float64(x + Float64(Float64(Float64(z * y) - x) / Float64(Float64(z * t) - x))) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1e+86) || ~((z <= 6.5e+49))) tmp = (x + (y / t)) / (x + 1.0); else tmp = (x + (((z * y) - x) / ((z * t) - x))) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1e+86], N[Not[LessEqual[z, 6.5e+49]], $MachinePrecision]], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(N[(z * y), $MachinePrecision] - x), $MachinePrecision] / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+86} \lor \neg \left(z \leq 6.5 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{z \cdot y - x}{z \cdot t - x}}{x + 1}\\
\end{array}
\end{array}
if z < -1e86 or 6.5000000000000005e49 < z Initial program 74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in z around inf 92.6%
if -1e86 < z < 6.5000000000000005e49Initial program 99.8%
Final simplification96.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* z t) x))
(t_2 (/ (+ x (/ (* z y) t_1)) (+ x 1.0)))
(t_3 (/ (+ x (/ y t)) (+ x 1.0))))
(if (<= z -6.7e+84)
t_3
(if (<= z -2.3e-106)
t_2
(if (<= z 1.15e-183)
(/ (- x (/ x t_1)) (+ x 1.0))
(if (<= z 6.5e+49) t_2 t_3))))))
double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + ((z * y) / t_1)) / (x + 1.0);
double t_3 = (x + (y / t)) / (x + 1.0);
double tmp;
if (z <= -6.7e+84) {
tmp = t_3;
} else if (z <= -2.3e-106) {
tmp = t_2;
} else if (z <= 1.15e-183) {
tmp = (x - (x / t_1)) / (x + 1.0);
} else if (z <= 6.5e+49) {
tmp = t_2;
} else {
tmp = t_3;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (z * t) - x
t_2 = (x + ((z * y) / t_1)) / (x + 1.0d0)
t_3 = (x + (y / t)) / (x + 1.0d0)
if (z <= (-6.7d+84)) then
tmp = t_3
else if (z <= (-2.3d-106)) then
tmp = t_2
else if (z <= 1.15d-183) then
tmp = (x - (x / t_1)) / (x + 1.0d0)
else if (z <= 6.5d+49) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + ((z * y) / t_1)) / (x + 1.0);
double t_3 = (x + (y / t)) / (x + 1.0);
double tmp;
if (z <= -6.7e+84) {
tmp = t_3;
} else if (z <= -2.3e-106) {
tmp = t_2;
} else if (z <= 1.15e-183) {
tmp = (x - (x / t_1)) / (x + 1.0);
} else if (z <= 6.5e+49) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t): t_1 = (z * t) - x t_2 = (x + ((z * y) / t_1)) / (x + 1.0) t_3 = (x + (y / t)) / (x + 1.0) tmp = 0 if z <= -6.7e+84: tmp = t_3 elif z <= -2.3e-106: tmp = t_2 elif z <= 1.15e-183: tmp = (x - (x / t_1)) / (x + 1.0) elif z <= 6.5e+49: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z * t) - x) t_2 = Float64(Float64(x + Float64(Float64(z * y) / t_1)) / Float64(x + 1.0)) t_3 = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)) tmp = 0.0 if (z <= -6.7e+84) tmp = t_3; elseif (z <= -2.3e-106) tmp = t_2; elseif (z <= 1.15e-183) tmp = Float64(Float64(x - Float64(x / t_1)) / Float64(x + 1.0)); elseif (z <= 6.5e+49) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z * t) - x; t_2 = (x + ((z * y) / t_1)) / (x + 1.0); t_3 = (x + (y / t)) / (x + 1.0); tmp = 0.0; if (z <= -6.7e+84) tmp = t_3; elseif (z <= -2.3e-106) tmp = t_2; elseif (z <= 1.15e-183) tmp = (x - (x / t_1)) / (x + 1.0); elseif (z <= 6.5e+49) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(z * y), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.7e+84], t$95$3, If[LessEqual[z, -2.3e-106], t$95$2, If[LessEqual[z, 1.15e-183], N[(N[(x - N[(x / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+49], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{z \cdot y}{t_1}}{x + 1}\\
t_3 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;z \leq -6.7 \cdot 10^{+84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-106}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-183}:\\
\;\;\;\;\frac{x - \frac{x}{t_1}}{x + 1}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+49}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -6.70000000000000041e84 or 6.5000000000000005e49 < z Initial program 74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in z around inf 92.6%
if -6.70000000000000041e84 < z < -2.3000000000000001e-106 or 1.15000000000000008e-183 < z < 6.5000000000000005e49Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 84.6%
*-commutative84.6%
Simplified84.6%
if -2.3000000000000001e-106 < z < 1.15000000000000008e-183Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 79.9%
Final simplification86.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (+ x (/ y t)) (+ x 1.0))))
(if (<= z -6.6e+67)
t_1
(if (<= z -3.5e-8)
(/ (+ (- x (/ y (/ x z))) 1.0) (+ x 1.0))
(if (or (<= z -1.75e-102) (not (<= z 9e+20)))
t_1
(/ (- x (/ x (- (* z t) x))) (+ x 1.0)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x + (y / t)) / (x + 1.0);
double tmp;
if (z <= -6.6e+67) {
tmp = t_1;
} else if (z <= -3.5e-8) {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
} else if ((z <= -1.75e-102) || !(z <= 9e+20)) {
tmp = t_1;
} else {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
}
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
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (y / t)) / (x + 1.0d0)
if (z <= (-6.6d+67)) then
tmp = t_1
else if (z <= (-3.5d-8)) then
tmp = ((x - (y / (x / z))) + 1.0d0) / (x + 1.0d0)
else if ((z <= (-1.75d-102)) .or. (.not. (z <= 9d+20))) then
tmp = t_1
else
tmp = (x - (x / ((z * t) - x))) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x + (y / t)) / (x + 1.0);
double tmp;
if (z <= -6.6e+67) {
tmp = t_1;
} else if (z <= -3.5e-8) {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
} else if ((z <= -1.75e-102) || !(z <= 9e+20)) {
tmp = t_1;
} else {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): t_1 = (x + (y / t)) / (x + 1.0) tmp = 0 if z <= -6.6e+67: tmp = t_1 elif z <= -3.5e-8: tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0) elif (z <= -1.75e-102) or not (z <= 9e+20): tmp = t_1 else: tmp = (x - (x / ((z * t) - x))) / (x + 1.0) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)) tmp = 0.0 if (z <= -6.6e+67) tmp = t_1; elseif (z <= -3.5e-8) tmp = Float64(Float64(Float64(x - Float64(y / Float64(x / z))) + 1.0) / Float64(x + 1.0)); elseif ((z <= -1.75e-102) || !(z <= 9e+20)) tmp = t_1; else tmp = Float64(Float64(x - Float64(x / Float64(Float64(z * t) - x))) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x + (y / t)) / (x + 1.0); tmp = 0.0; if (z <= -6.6e+67) tmp = t_1; elseif (z <= -3.5e-8) tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0); elseif ((z <= -1.75e-102) || ~((z <= 9e+20))) tmp = t_1; else tmp = (x - (x / ((z * t) - x))) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.6e+67], t$95$1, If[LessEqual[z, -3.5e-8], N[(N[(N[(x - N[(y / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.75e-102], N[Not[LessEqual[z, 9e+20]], $MachinePrecision]], t$95$1, N[(N[(x - N[(x / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{if}\;z \leq -6.6 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-8}:\\
\;\;\;\;\frac{\left(x - \frac{y}{\frac{x}{z}}\right) + 1}{x + 1}\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-102} \lor \neg \left(z \leq 9 \cdot 10^{+20}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\end{array}
\end{array}
if z < -6.6000000000000006e67 or -3.50000000000000024e-8 < z < -1.74999999999999993e-102 or 9e20 < z Initial program 78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in z around inf 90.3%
if -6.6000000000000006e67 < z < -3.50000000000000024e-8Initial program 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 85.0%
mul-1-neg85.0%
unsub-neg85.0%
associate-/l*85.0%
Simplified85.0%
if -1.74999999999999993e-102 < z < 9e20Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 76.4%
Final simplification83.5%
(FPCore (x y z t)
:precision binary64
(if (<= x -2.4e-51)
1.0
(if (<= x -1.75e-81)
(* z (/ y (- (* z t) x)))
(if (<= x -1.6e-83)
1.0
(if (<= x -5.8e-105)
(- x (/ (/ x t) z))
(if (<= x 9.8e-60) (/ y (* t (+ x 1.0))) 1.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.4e-51) {
tmp = 1.0;
} else if (x <= -1.75e-81) {
tmp = z * (y / ((z * t) - x));
} else if (x <= -1.6e-83) {
tmp = 1.0;
} else if (x <= -5.8e-105) {
tmp = x - ((x / t) / z);
} else if (x <= 9.8e-60) {
tmp = y / (t * (x + 1.0));
} else {
tmp = 1.0;
}
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
real(8) :: tmp
if (x <= (-2.4d-51)) then
tmp = 1.0d0
else if (x <= (-1.75d-81)) then
tmp = z * (y / ((z * t) - x))
else if (x <= (-1.6d-83)) then
tmp = 1.0d0
else if (x <= (-5.8d-105)) then
tmp = x - ((x / t) / z)
else if (x <= 9.8d-60) then
tmp = y / (t * (x + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.4e-51) {
tmp = 1.0;
} else if (x <= -1.75e-81) {
tmp = z * (y / ((z * t) - x));
} else if (x <= -1.6e-83) {
tmp = 1.0;
} else if (x <= -5.8e-105) {
tmp = x - ((x / t) / z);
} else if (x <= 9.8e-60) {
tmp = y / (t * (x + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.4e-51: tmp = 1.0 elif x <= -1.75e-81: tmp = z * (y / ((z * t) - x)) elif x <= -1.6e-83: tmp = 1.0 elif x <= -5.8e-105: tmp = x - ((x / t) / z) elif x <= 9.8e-60: tmp = y / (t * (x + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.4e-51) tmp = 1.0; elseif (x <= -1.75e-81) tmp = Float64(z * Float64(y / Float64(Float64(z * t) - x))); elseif (x <= -1.6e-83) tmp = 1.0; elseif (x <= -5.8e-105) tmp = Float64(x - Float64(Float64(x / t) / z)); elseif (x <= 9.8e-60) tmp = Float64(y / Float64(t * Float64(x + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2.4e-51) tmp = 1.0; elseif (x <= -1.75e-81) tmp = z * (y / ((z * t) - x)); elseif (x <= -1.6e-83) tmp = 1.0; elseif (x <= -5.8e-105) tmp = x - ((x / t) / z); elseif (x <= 9.8e-60) tmp = y / (t * (x + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.4e-51], 1.0, If[LessEqual[x, -1.75e-81], N[(z * N[(y / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e-83], 1.0, If[LessEqual[x, -5.8e-105], N[(x - N[(N[(x / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.8e-60], N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-51}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-81}:\\
\;\;\;\;z \cdot \frac{y}{z \cdot t - x}\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-83}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-105}:\\
\;\;\;\;x - \frac{\frac{x}{t}}{z}\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{-60}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -2.4e-51 or -1.74999999999999993e-81 < x < -1.6000000000000001e-83 or 9.79999999999999977e-60 < x Initial program 89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in x around inf 81.8%
if -2.4e-51 < x < -1.74999999999999993e-81Initial program 72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around inf 58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in y around inf 58.6%
*-commutative58.6%
+-commutative58.6%
*-commutative58.6%
fma-neg58.6%
times-frac71.8%
fma-neg71.8%
Simplified71.8%
Taylor expanded in x around 0 71.8%
if -1.6000000000000001e-83 < x < -5.80000000000000007e-105Initial program 80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around inf 80.0%
Taylor expanded in x around inf 80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around 0 80.3%
metadata-eval80.3%
associate-*r/80.3%
cancel-sign-sub-inv80.3%
metadata-eval80.3%
*-lft-identity80.3%
distribute-rgt-in80.3%
*-lft-identity80.3%
associate-*l/80.3%
associate-*r/80.3%
mul-1-neg80.3%
unsub-neg80.3%
associate-/r*80.3%
Simplified80.3%
if -5.80000000000000007e-105 < x < 9.79999999999999977e-60Initial program 92.0%
*-commutative92.0%
Simplified92.0%
Taylor expanded in y around inf 53.7%
Taylor expanded in z around inf 53.0%
+-commutative53.0%
Simplified53.0%
Final simplification70.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -3.7e+65) (not (<= z 9e-124))) (/ (+ x (/ y t)) (+ x 1.0)) (/ (+ (- x (/ y (/ x z))) 1.0) (+ x 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3.7e+65) || !(z <= 9e-124)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
}
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
real(8) :: tmp
if ((z <= (-3.7d+65)) .or. (.not. (z <= 9d-124))) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = ((x - (y / (x / z))) + 1.0d0) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3.7e+65) || !(z <= 9e-124)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -3.7e+65) or not (z <= 9e-124): tmp = (x + (y / t)) / (x + 1.0) else: tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -3.7e+65) || !(z <= 9e-124)) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = Float64(Float64(Float64(x - Float64(y / Float64(x / z))) + 1.0) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -3.7e+65) || ~((z <= 9e-124))) tmp = (x + (y / t)) / (x + 1.0); else tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3.7e+65], N[Not[LessEqual[z, 9e-124]], $MachinePrecision]], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - N[(y / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+65} \lor \neg \left(z \leq 9 \cdot 10^{-124}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - \frac{y}{\frac{x}{z}}\right) + 1}{x + 1}\\
\end{array}
\end{array}
if z < -3.69999999999999995e65 or 8.9999999999999992e-124 < z Initial program 81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in z around inf 85.7%
if -3.69999999999999995e65 < z < 8.9999999999999992e-124Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 71.0%
mul-1-neg71.0%
unsub-neg71.0%
associate-/l*71.0%
Simplified71.0%
Final simplification79.4%
(FPCore (x y z t)
:precision binary64
(if (<= x -6.2e-51)
(/ (- x (/ x (- (* z t) x))) (+ x 1.0))
(if (<= x 1.45e-51)
(/ (- x (/ (- (/ x z) y) t)) (+ x 1.0))
(/ (+ (- x (/ y (/ x z))) 1.0) (+ x 1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.2e-51) {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
} else if (x <= 1.45e-51) {
tmp = (x - (((x / z) - y) / t)) / (x + 1.0);
} else {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
}
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
real(8) :: tmp
if (x <= (-6.2d-51)) then
tmp = (x - (x / ((z * t) - x))) / (x + 1.0d0)
else if (x <= 1.45d-51) then
tmp = (x - (((x / z) - y) / t)) / (x + 1.0d0)
else
tmp = ((x - (y / (x / z))) + 1.0d0) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.2e-51) {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
} else if (x <= 1.45e-51) {
tmp = (x - (((x / z) - y) / t)) / (x + 1.0);
} else {
tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -6.2e-51: tmp = (x - (x / ((z * t) - x))) / (x + 1.0) elif x <= 1.45e-51: tmp = (x - (((x / z) - y) / t)) / (x + 1.0) else: tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -6.2e-51) tmp = Float64(Float64(x - Float64(x / Float64(Float64(z * t) - x))) / Float64(x + 1.0)); elseif (x <= 1.45e-51) tmp = Float64(Float64(x - Float64(Float64(Float64(x / z) - y) / t)) / Float64(x + 1.0)); else tmp = Float64(Float64(Float64(x - Float64(y / Float64(x / z))) + 1.0) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -6.2e-51) tmp = (x - (x / ((z * t) - x))) / (x + 1.0); elseif (x <= 1.45e-51) tmp = (x - (((x / z) - y) / t)) / (x + 1.0); else tmp = ((x - (y / (x / z))) + 1.0) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -6.2e-51], N[(N[(x - N[(x / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e-51], N[(N[(x - N[(N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - N[(y / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{-51}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-51}:\\
\;\;\;\;\frac{x - \frac{\frac{x}{z} - y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - \frac{y}{\frac{x}{z}}\right) + 1}{x + 1}\\
\end{array}
\end{array}
if x < -6.1999999999999995e-51Initial program 89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in y around 0 87.6%
if -6.1999999999999995e-51 < x < 1.44999999999999986e-51Initial program 90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in t around -inf 82.9%
mul-1-neg82.9%
distribute-lft-out--82.9%
Simplified82.9%
if 1.44999999999999986e-51 < x Initial program 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in t around 0 81.7%
mul-1-neg81.7%
unsub-neg81.7%
associate-/l*92.4%
Simplified92.4%
Final simplification86.7%
(FPCore (x y z t) :precision binary64 (if (<= x -9.6e+36) 1.0 (if (<= x 3.4e-24) (/ (+ x (/ y t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -9.6e+36) {
tmp = 1.0;
} else if (x <= 3.4e-24) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
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
real(8) :: tmp
if (x <= (-9.6d+36)) then
tmp = 1.0d0
else if (x <= 3.4d-24) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -9.6e+36) {
tmp = 1.0;
} else if (x <= 3.4e-24) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -9.6e+36: tmp = 1.0 elif x <= 3.4e-24: tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -9.6e+36) tmp = 1.0; elseif (x <= 3.4e-24) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -9.6e+36) tmp = 1.0; elseif (x <= 3.4e-24) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -9.6e+36], 1.0, If[LessEqual[x, 3.4e-24], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.6 \cdot 10^{+36}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-24}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -9.5999999999999997e36 or 3.39999999999999992e-24 < x Initial program 88.4%
*-commutative88.4%
Simplified88.4%
Taylor expanded in y around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in x around inf 90.9%
if -9.5999999999999997e36 < x < 3.39999999999999992e-24Initial program 90.6%
*-commutative90.6%
Simplified90.6%
Taylor expanded in z around inf 64.8%
Final simplification77.0%
(FPCore (x y z t) :precision binary64 (if (<= x -3.4e+37) (/ (- x (/ y (/ x z))) (+ x 1.0)) (if (<= x 7.2e-25) (/ (+ x (/ y t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e+37) {
tmp = (x - (y / (x / z))) / (x + 1.0);
} else if (x <= 7.2e-25) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
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
real(8) :: tmp
if (x <= (-3.4d+37)) then
tmp = (x - (y / (x / z))) / (x + 1.0d0)
else if (x <= 7.2d-25) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e+37) {
tmp = (x - (y / (x / z))) / (x + 1.0);
} else if (x <= 7.2e-25) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.4e+37: tmp = (x - (y / (x / z))) / (x + 1.0) elif x <= 7.2e-25: tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.4e+37) tmp = Float64(Float64(x - Float64(y / Float64(x / z))) / Float64(x + 1.0)); elseif (x <= 7.2e-25) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.4e+37) tmp = (x - (y / (x / z))) / (x + 1.0); elseif (x <= 7.2e-25) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.4e+37], N[(N[(x - N[(y / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-25], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+37}:\\
\;\;\;\;\frac{x - \frac{y}{\frac{x}{z}}}{x + 1}\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-25}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3.40000000000000006e37Initial program 89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in y around inf 89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in x around inf 89.9%
mul-1-neg89.9%
unsub-neg89.9%
associate-/l*96.8%
Simplified96.8%
if -3.40000000000000006e37 < x < 7.1999999999999998e-25Initial program 90.6%
*-commutative90.6%
Simplified90.6%
Taylor expanded in z around inf 64.8%
if 7.1999999999999998e-25 < x Initial program 87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in y around inf 79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in x around inf 87.1%
Final simplification77.4%
(FPCore (x y z t) :precision binary64 (if (<= x -3.9e-51) 1.0 (if (<= x 9.8e-60) (/ y (* t (+ x 1.0))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.9e-51) {
tmp = 1.0;
} else if (x <= 9.8e-60) {
tmp = y / (t * (x + 1.0));
} else {
tmp = 1.0;
}
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
real(8) :: tmp
if (x <= (-3.9d-51)) then
tmp = 1.0d0
else if (x <= 9.8d-60) then
tmp = y / (t * (x + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.9e-51) {
tmp = 1.0;
} else if (x <= 9.8e-60) {
tmp = y / (t * (x + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.9e-51: tmp = 1.0 elif x <= 9.8e-60: tmp = y / (t * (x + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.9e-51) tmp = 1.0; elseif (x <= 9.8e-60) tmp = Float64(y / Float64(t * Float64(x + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.9e-51) tmp = 1.0; elseif (x <= 9.8e-60) tmp = y / (t * (x + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.9e-51], 1.0, If[LessEqual[x, 9.8e-60], N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.9 \cdot 10^{-51}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{-60}:\\
\;\;\;\;\frac{y}{t \cdot \left(x + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3.8999999999999997e-51 or 9.79999999999999977e-60 < x Initial program 89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in x around inf 81.7%
if -3.8999999999999997e-51 < x < 9.79999999999999977e-60Initial program 90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in y around inf 51.3%
Taylor expanded in z around inf 52.1%
+-commutative52.1%
Simplified52.1%
Final simplification68.6%
(FPCore (x y z t) :precision binary64 (if (<= x -2.4e-51) 1.0 (if (<= x 6.1e-52) (/ y t) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.4e-51) {
tmp = 1.0;
} else if (x <= 6.1e-52) {
tmp = y / t;
} else {
tmp = 1.0;
}
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
real(8) :: tmp
if (x <= (-2.4d-51)) then
tmp = 1.0d0
else if (x <= 6.1d-52) then
tmp = y / t
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.4e-51) {
tmp = 1.0;
} else if (x <= 6.1e-52) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.4e-51: tmp = 1.0 elif x <= 6.1e-52: tmp = y / t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.4e-51) tmp = 1.0; elseif (x <= 6.1e-52) tmp = Float64(y / t); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2.4e-51) tmp = 1.0; elseif (x <= 6.1e-52) tmp = y / t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.4e-51], 1.0, If[LessEqual[x, 6.1e-52], N[(y / t), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-51}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 6.1 \cdot 10^{-52}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -2.4e-51 or 6.0999999999999999e-52 < x Initial program 89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in x around inf 81.7%
if -2.4e-51 < x < 6.0999999999999999e-52Initial program 90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in z around inf 68.6%
Taylor expanded in x around 0 52.1%
Final simplification68.6%
(FPCore (x y z t) :precision binary64 1.0)
double code(double x, double y, double z, double t) {
return 1.0;
}
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
end function
public static double code(double x, double y, double z, double t) {
return 1.0;
}
def code(x, y, z, t): return 1.0
function code(x, y, z, t) return 1.0 end
function tmp = code(x, y, z, t) tmp = 1.0; end
code[x_, y_, z_, t_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in y around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around inf 50.9%
Final simplification50.9%
(FPCore (x y z t) :precision binary64 (/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0);
}
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 = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0);
}
def code(x, y, z, t): return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(y / Float64(t - Float64(x / z))) - Float64(x / Float64(Float64(t * z) - x)))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(y / N[(t - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \left(\frac{y}{t - \frac{x}{z}} - \frac{x}{t \cdot z - x}\right)}{x + 1}
\end{array}
herbie shell --seed 2023305
(FPCore (x y z t)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0))
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))