
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Initial program 98.9%
Final simplification98.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (- 1.0 (/ t z))))) (t_2 (+ x (* y (/ t a)))))
(if (<= a -7.6e+44)
t_2
(if (<= a -8.2e-24)
t_1
(if (<= a -1e-55)
(* y (/ (- t) (- z a)))
(if (<= a -5.3e-174) (+ x y) (if (<= a 2.6e-117) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (1.0 - (t / z)));
double t_2 = x + (y * (t / a));
double tmp;
if (a <= -7.6e+44) {
tmp = t_2;
} else if (a <= -8.2e-24) {
tmp = t_1;
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= -5.3e-174) {
tmp = x + y;
} else if (a <= 2.6e-117) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (1.0d0 - (t / z)))
t_2 = x + (y * (t / a))
if (a <= (-7.6d+44)) then
tmp = t_2
else if (a <= (-8.2d-24)) then
tmp = t_1
else if (a <= (-1d-55)) then
tmp = y * (-t / (z - a))
else if (a <= (-5.3d-174)) then
tmp = x + y
else if (a <= 2.6d-117) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (1.0 - (t / z)));
double t_2 = x + (y * (t / a));
double tmp;
if (a <= -7.6e+44) {
tmp = t_2;
} else if (a <= -8.2e-24) {
tmp = t_1;
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= -5.3e-174) {
tmp = x + y;
} else if (a <= 2.6e-117) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (1.0 - (t / z))) t_2 = x + (y * (t / a)) tmp = 0 if a <= -7.6e+44: tmp = t_2 elif a <= -8.2e-24: tmp = t_1 elif a <= -1e-55: tmp = y * (-t / (z - a)) elif a <= -5.3e-174: tmp = x + y elif a <= 2.6e-117: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))) t_2 = Float64(x + Float64(y * Float64(t / a))) tmp = 0.0 if (a <= -7.6e+44) tmp = t_2; elseif (a <= -8.2e-24) tmp = t_1; elseif (a <= -1e-55) tmp = Float64(y * Float64(Float64(-t) / Float64(z - a))); elseif (a <= -5.3e-174) tmp = Float64(x + y); elseif (a <= 2.6e-117) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (1.0 - (t / z))); t_2 = x + (y * (t / a)); tmp = 0.0; if (a <= -7.6e+44) tmp = t_2; elseif (a <= -8.2e-24) tmp = t_1; elseif (a <= -1e-55) tmp = y * (-t / (z - a)); elseif (a <= -5.3e-174) tmp = x + y; elseif (a <= 2.6e-117) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.6e+44], t$95$2, If[LessEqual[a, -8.2e-24], t$95$1, If[LessEqual[a, -1e-55], N[(y * N[((-t) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.3e-174], N[(x + y), $MachinePrecision], If[LessEqual[a, 2.6e-117], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \left(1 - \frac{t}{z}\right)\\
t_2 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \frac{-t}{z - a}\\
\mathbf{elif}\;a \leq -5.3 \cdot 10^{-174}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.6000000000000004e44 or 2.59999999999999983e-117 < a Initial program 99.5%
Taylor expanded in z around 0 82.3%
if -7.6000000000000004e44 < a < -8.20000000000000029e-24 or -5.2999999999999996e-174 < a < 2.59999999999999983e-117Initial program 97.7%
Taylor expanded in a around 0 92.7%
div-sub92.7%
*-inverses92.7%
Simplified92.7%
if -8.20000000000000029e-24 < a < -9.99999999999999995e-56Initial program 99.2%
Taylor expanded in t around inf 99.6%
associate-*r/99.6%
mul-1-neg99.6%
distribute-lft-neg-out99.6%
*-commutative99.6%
Simplified99.6%
div-inv99.2%
add-sqr-sqrt24.6%
sqrt-unprod25.2%
sqr-neg25.2%
sqrt-unprod0.6%
add-sqr-sqrt0.7%
remove-double-neg0.7%
distribute-rgt-neg-out0.7%
cancel-sign-sub-inv0.7%
div-inv0.7%
add-sqr-sqrt0.1%
sqrt-unprod74.7%
sqr-neg74.7%
sqrt-unprod73.8%
add-sqr-sqrt99.6%
Applied egg-rr99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
associate-*r/99.2%
associate-*r*99.2%
neg-mul-199.2%
Simplified99.2%
if -9.99999999999999995e-56 < a < -5.2999999999999996e-174Initial program 100.0%
Taylor expanded in z around inf 97.2%
+-commutative97.2%
Simplified97.2%
Final simplification86.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z (- z a))))) (t_2 (+ x (* y (/ t a)))))
(if (<= a -1.9e+42)
t_2
(if (<= a -9e-9)
t_1
(if (<= a -3.3e-61)
(* y (/ (- t) (- z a)))
(if (<= a -5.3e-174)
t_1
(if (<= a 1.9e-117) (+ x (* y (- 1.0 (/ t z)))) t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / (z - a)));
double t_2 = x + (y * (t / a));
double tmp;
if (a <= -1.9e+42) {
tmp = t_2;
} else if (a <= -9e-9) {
tmp = t_1;
} else if (a <= -3.3e-61) {
tmp = y * (-t / (z - a));
} else if (a <= -5.3e-174) {
tmp = t_1;
} else if (a <= 1.9e-117) {
tmp = x + (y * (1.0 - (t / z)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / (z - a)))
t_2 = x + (y * (t / a))
if (a <= (-1.9d+42)) then
tmp = t_2
else if (a <= (-9d-9)) then
tmp = t_1
else if (a <= (-3.3d-61)) then
tmp = y * (-t / (z - a))
else if (a <= (-5.3d-174)) then
tmp = t_1
else if (a <= 1.9d-117) then
tmp = x + (y * (1.0d0 - (t / z)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / (z - a)));
double t_2 = x + (y * (t / a));
double tmp;
if (a <= -1.9e+42) {
tmp = t_2;
} else if (a <= -9e-9) {
tmp = t_1;
} else if (a <= -3.3e-61) {
tmp = y * (-t / (z - a));
} else if (a <= -5.3e-174) {
tmp = t_1;
} else if (a <= 1.9e-117) {
tmp = x + (y * (1.0 - (t / z)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / (z - a))) t_2 = x + (y * (t / a)) tmp = 0 if a <= -1.9e+42: tmp = t_2 elif a <= -9e-9: tmp = t_1 elif a <= -3.3e-61: tmp = y * (-t / (z - a)) elif a <= -5.3e-174: tmp = t_1 elif a <= 1.9e-117: tmp = x + (y * (1.0 - (t / z))) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / Float64(z - a)))) t_2 = Float64(x + Float64(y * Float64(t / a))) tmp = 0.0 if (a <= -1.9e+42) tmp = t_2; elseif (a <= -9e-9) tmp = t_1; elseif (a <= -3.3e-61) tmp = Float64(y * Float64(Float64(-t) / Float64(z - a))); elseif (a <= -5.3e-174) tmp = t_1; elseif (a <= 1.9e-117) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (z / (z - a))); t_2 = x + (y * (t / a)); tmp = 0.0; if (a <= -1.9e+42) tmp = t_2; elseif (a <= -9e-9) tmp = t_1; elseif (a <= -3.3e-61) tmp = y * (-t / (z - a)); elseif (a <= -5.3e-174) tmp = t_1; elseif (a <= 1.9e-117) tmp = x + (y * (1.0 - (t / z))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+42], t$95$2, If[LessEqual[a, -9e-9], t$95$1, If[LessEqual[a, -3.3e-61], N[(y * N[((-t) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.3e-174], t$95$1, If[LessEqual[a, 1.9e-117], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{z - a}\\
t_2 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-61}:\\
\;\;\;\;y \cdot \frac{-t}{z - a}\\
\mathbf{elif}\;a \leq -5.3 \cdot 10^{-174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-117}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.8999999999999999e42 or 1.89999999999999986e-117 < a Initial program 99.5%
Taylor expanded in z around 0 82.3%
if -1.8999999999999999e42 < a < -8.99999999999999953e-9 or -3.29999999999999996e-61 < a < -5.2999999999999996e-174Initial program 100.0%
Taylor expanded in t around 0 98.2%
if -8.99999999999999953e-9 < a < -3.29999999999999996e-61Initial program 99.4%
Taylor expanded in t around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
distribute-lft-neg-out99.2%
*-commutative99.2%
Simplified99.2%
div-inv99.1%
add-sqr-sqrt37.3%
sqrt-unprod25.8%
sqr-neg25.8%
sqrt-unprod0.6%
add-sqr-sqrt13.4%
remove-double-neg13.4%
distribute-rgt-neg-out13.4%
cancel-sign-sub-inv13.4%
div-inv13.4%
add-sqr-sqrt12.7%
sqrt-unprod62.7%
sqr-neg62.7%
sqrt-unprod61.5%
add-sqr-sqrt99.2%
Applied egg-rr99.2%
Taylor expanded in x around 0 87.2%
*-commutative87.2%
associate-*r/87.4%
associate-*r*87.4%
neg-mul-187.4%
Simplified87.4%
if -5.2999999999999996e-174 < a < 1.89999999999999986e-117Initial program 97.3%
Taylor expanded in a around 0 94.4%
div-sub94.4%
*-inverses94.4%
Simplified94.4%
Final simplification87.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ t a)))))
(if (<= a -1.5e+44)
t_1
(if (<= a -5.4e-9)
(+ x (* y (/ z (- z a))))
(if (<= a -1e-55)
(* y (/ (- t) (- z a)))
(if (<= a 2.7e-117) (+ x (- y (/ (* y t) z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (t / a));
double tmp;
if (a <= -1.5e+44) {
tmp = t_1;
} else if (a <= -5.4e-9) {
tmp = x + (y * (z / (z - a)));
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= 2.7e-117) {
tmp = x + (y - ((y * t) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * (t / a))
if (a <= (-1.5d+44)) then
tmp = t_1
else if (a <= (-5.4d-9)) then
tmp = x + (y * (z / (z - a)))
else if (a <= (-1d-55)) then
tmp = y * (-t / (z - a))
else if (a <= 2.7d-117) then
tmp = x + (y - ((y * t) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (t / a));
double tmp;
if (a <= -1.5e+44) {
tmp = t_1;
} else if (a <= -5.4e-9) {
tmp = x + (y * (z / (z - a)));
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= 2.7e-117) {
tmp = x + (y - ((y * t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (t / a)) tmp = 0 if a <= -1.5e+44: tmp = t_1 elif a <= -5.4e-9: tmp = x + (y * (z / (z - a))) elif a <= -1e-55: tmp = y * (-t / (z - a)) elif a <= 2.7e-117: tmp = x + (y - ((y * t) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(t / a))) tmp = 0.0 if (a <= -1.5e+44) tmp = t_1; elseif (a <= -5.4e-9) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); elseif (a <= -1e-55) tmp = Float64(y * Float64(Float64(-t) / Float64(z - a))); elseif (a <= 2.7e-117) tmp = Float64(x + Float64(y - Float64(Float64(y * t) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (t / a)); tmp = 0.0; if (a <= -1.5e+44) tmp = t_1; elseif (a <= -5.4e-9) tmp = x + (y * (z / (z - a))); elseif (a <= -1e-55) tmp = y * (-t / (z - a)); elseif (a <= 2.7e-117) tmp = x + (y - ((y * t) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5e+44], t$95$1, If[LessEqual[a, -5.4e-9], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-55], N[(y * N[((-t) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-117], N[(x + N[(y - N[(N[(y * t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-9}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \frac{-t}{z - a}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-117}:\\
\;\;\;\;x + \left(y - \frac{y \cdot t}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.49999999999999993e44 or 2.70000000000000003e-117 < a Initial program 99.5%
Taylor expanded in z around 0 82.3%
if -1.49999999999999993e44 < a < -5.4000000000000004e-9Initial program 100.0%
Taylor expanded in t around 0 100.0%
if -5.4000000000000004e-9 < a < -9.99999999999999995e-56Initial program 99.4%
Taylor expanded in t around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
distribute-lft-neg-out99.2%
*-commutative99.2%
Simplified99.2%
div-inv99.1%
add-sqr-sqrt37.3%
sqrt-unprod25.8%
sqr-neg25.8%
sqrt-unprod0.6%
add-sqr-sqrt13.4%
remove-double-neg13.4%
distribute-rgt-neg-out13.4%
cancel-sign-sub-inv13.4%
div-inv13.4%
add-sqr-sqrt12.7%
sqrt-unprod62.7%
sqr-neg62.7%
sqrt-unprod61.5%
add-sqr-sqrt99.2%
Applied egg-rr99.2%
Taylor expanded in x around 0 87.2%
*-commutative87.2%
associate-*r/87.4%
associate-*r*87.4%
neg-mul-187.4%
Simplified87.4%
if -9.99999999999999995e-56 < a < 2.70000000000000003e-117Initial program 97.8%
Taylor expanded in a around 0 92.9%
Taylor expanded in z around 0 94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Final simplification86.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ y (/ a (- z t))))))
(if (<= a -1.15e+42)
t_1
(if (<= a -3.8e-8)
(+ x (* y (/ z (- z a))))
(if (<= a -1e-55)
(* y (/ (- t) (- z a)))
(if (<= a 3.2e-117) (+ x (- y (/ (* y t) z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y / (a / (z - t)));
double tmp;
if (a <= -1.15e+42) {
tmp = t_1;
} else if (a <= -3.8e-8) {
tmp = x + (y * (z / (z - a)));
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= 3.2e-117) {
tmp = x + (y - ((y * t) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y / (a / (z - t)))
if (a <= (-1.15d+42)) then
tmp = t_1
else if (a <= (-3.8d-8)) then
tmp = x + (y * (z / (z - a)))
else if (a <= (-1d-55)) then
tmp = y * (-t / (z - a))
else if (a <= 3.2d-117) then
tmp = x + (y - ((y * t) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y / (a / (z - t)));
double tmp;
if (a <= -1.15e+42) {
tmp = t_1;
} else if (a <= -3.8e-8) {
tmp = x + (y * (z / (z - a)));
} else if (a <= -1e-55) {
tmp = y * (-t / (z - a));
} else if (a <= 3.2e-117) {
tmp = x + (y - ((y * t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y / (a / (z - t))) tmp = 0 if a <= -1.15e+42: tmp = t_1 elif a <= -3.8e-8: tmp = x + (y * (z / (z - a))) elif a <= -1e-55: tmp = y * (-t / (z - a)) elif a <= 3.2e-117: tmp = x + (y - ((y * t) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -1.15e+42) tmp = t_1; elseif (a <= -3.8e-8) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); elseif (a <= -1e-55) tmp = Float64(y * Float64(Float64(-t) / Float64(z - a))); elseif (a <= 3.2e-117) tmp = Float64(x + Float64(y - Float64(Float64(y * t) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y / (a / (z - t))); tmp = 0.0; if (a <= -1.15e+42) tmp = t_1; elseif (a <= -3.8e-8) tmp = x + (y * (z / (z - a))); elseif (a <= -1e-55) tmp = y * (-t / (z - a)); elseif (a <= 3.2e-117) tmp = x + (y - ((y * t) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.15e+42], t$95$1, If[LessEqual[a, -3.8e-8], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-55], N[(y * N[((-t) / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-117], N[(x + N[(y - N[(N[(y * t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -1.15 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-55}:\\
\;\;\;\;y \cdot \frac{-t}{z - a}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-117}:\\
\;\;\;\;x + \left(y - \frac{y \cdot t}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.15e42 or 3.19999999999999995e-117 < a Initial program 99.5%
Taylor expanded in a around inf 79.9%
mul-1-neg79.9%
unsub-neg79.9%
associate-/l*84.1%
Simplified84.1%
if -1.15e42 < a < -3.80000000000000028e-8Initial program 100.0%
Taylor expanded in t around 0 100.0%
if -3.80000000000000028e-8 < a < -9.99999999999999995e-56Initial program 99.4%
Taylor expanded in t around inf 99.2%
associate-*r/99.2%
mul-1-neg99.2%
distribute-lft-neg-out99.2%
*-commutative99.2%
Simplified99.2%
div-inv99.1%
add-sqr-sqrt37.3%
sqrt-unprod25.8%
sqr-neg25.8%
sqrt-unprod0.6%
add-sqr-sqrt13.4%
remove-double-neg13.4%
distribute-rgt-neg-out13.4%
cancel-sign-sub-inv13.4%
div-inv13.4%
add-sqr-sqrt12.7%
sqrt-unprod62.7%
sqr-neg62.7%
sqrt-unprod61.5%
add-sqr-sqrt99.2%
Applied egg-rr99.2%
Taylor expanded in x around 0 87.2%
*-commutative87.2%
associate-*r/87.4%
associate-*r*87.4%
neg-mul-187.4%
Simplified87.4%
if -9.99999999999999995e-56 < a < 3.19999999999999995e-117Initial program 97.8%
Taylor expanded in a around 0 92.9%
Taylor expanded in z around 0 94.1%
mul-1-neg94.1%
unsub-neg94.1%
Simplified94.1%
Final simplification87.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ t a)))))
(if (<= a -3.1e+41)
t_1
(if (<= a -5.2e-187)
(+ x y)
(if (<= a 1.6e-123) (- x (/ (* y t) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (t / a));
double tmp;
if (a <= -3.1e+41) {
tmp = t_1;
} else if (a <= -5.2e-187) {
tmp = x + y;
} else if (a <= 1.6e-123) {
tmp = x - ((y * t) / z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * (t / a))
if (a <= (-3.1d+41)) then
tmp = t_1
else if (a <= (-5.2d-187)) then
tmp = x + y
else if (a <= 1.6d-123) then
tmp = x - ((y * t) / z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (t / a));
double tmp;
if (a <= -3.1e+41) {
tmp = t_1;
} else if (a <= -5.2e-187) {
tmp = x + y;
} else if (a <= 1.6e-123) {
tmp = x - ((y * t) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (t / a)) tmp = 0 if a <= -3.1e+41: tmp = t_1 elif a <= -5.2e-187: tmp = x + y elif a <= 1.6e-123: tmp = x - ((y * t) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(t / a))) tmp = 0.0 if (a <= -3.1e+41) tmp = t_1; elseif (a <= -5.2e-187) tmp = Float64(x + y); elseif (a <= 1.6e-123) tmp = Float64(x - Float64(Float64(y * t) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (t / a)); tmp = 0.0; if (a <= -3.1e+41) tmp = t_1; elseif (a <= -5.2e-187) tmp = x + y; elseif (a <= 1.6e-123) tmp = x - ((y * t) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.1e+41], t$95$1, If[LessEqual[a, -5.2e-187], N[(x + y), $MachinePrecision], If[LessEqual[a, 1.6e-123], N[(x - N[(N[(y * t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -3.1 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-187}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-123}:\\
\;\;\;\;x - \frac{y \cdot t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.1e41 or 1.59999999999999989e-123 < a Initial program 99.5%
Taylor expanded in z around 0 82.3%
if -3.1e41 < a < -5.1999999999999999e-187Initial program 99.9%
Taylor expanded in z around inf 72.9%
+-commutative72.9%
Simplified72.9%
if -5.1999999999999999e-187 < a < 1.59999999999999989e-123Initial program 97.1%
Taylor expanded in t around inf 79.1%
associate-*r/79.1%
mul-1-neg79.1%
distribute-lft-neg-out79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in z around inf 74.6%
mul-1-neg74.6%
unsub-neg74.6%
Simplified74.6%
Final simplification79.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.5e+174) x (if (or (<= a 2.4e-185) (not (<= a 2.9e-174))) (+ x y) (* (/ y z) (- t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.5e+174) {
tmp = x;
} else if ((a <= 2.4e-185) || !(a <= 2.9e-174)) {
tmp = x + y;
} else {
tmp = (y / z) * -t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-3.5d+174)) then
tmp = x
else if ((a <= 2.4d-185) .or. (.not. (a <= 2.9d-174))) then
tmp = x + y
else
tmp = (y / z) * -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.5e+174) {
tmp = x;
} else if ((a <= 2.4e-185) || !(a <= 2.9e-174)) {
tmp = x + y;
} else {
tmp = (y / z) * -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.5e+174: tmp = x elif (a <= 2.4e-185) or not (a <= 2.9e-174): tmp = x + y else: tmp = (y / z) * -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.5e+174) tmp = x; elseif ((a <= 2.4e-185) || !(a <= 2.9e-174)) tmp = Float64(x + y); else tmp = Float64(Float64(y / z) * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.5e+174) tmp = x; elseif ((a <= 2.4e-185) || ~((a <= 2.9e-174))) tmp = x + y; else tmp = (y / z) * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.5e+174], x, If[Or[LessEqual[a, 2.4e-185], N[Not[LessEqual[a, 2.9e-174]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * (-t)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.5 \cdot 10^{+174}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-185} \lor \neg \left(a \leq 2.9 \cdot 10^{-174}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot \left(-t\right)\\
\end{array}
\end{array}
if a < -3.5000000000000001e174Initial program 99.9%
Taylor expanded in x around inf 73.8%
if -3.5000000000000001e174 < a < 2.4000000000000001e-185 or 2.9000000000000001e-174 < a Initial program 98.7%
Taylor expanded in z around inf 63.4%
+-commutative63.4%
Simplified63.4%
if 2.4000000000000001e-185 < a < 2.9000000000000001e-174Initial program 99.7%
Taylor expanded in t around inf 99.7%
associate-*r/99.7%
mul-1-neg99.7%
distribute-lft-neg-out99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 99.7%
mul-1-neg99.7%
unsub-neg99.7%
Simplified99.7%
Taylor expanded in x around 0 99.7%
mul-1-neg99.7%
associate-*r/100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification65.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.2e-15) (not (<= t 1.15e-59))) (- x (/ (* y t) (- z a))) (+ x (* y (/ z (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.2e-15) || !(t <= 1.15e-59)) {
tmp = x - ((y * t) / (z - a));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.2d-15)) .or. (.not. (t <= 1.15d-59))) then
tmp = x - ((y * t) / (z - a))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.2e-15) || !(t <= 1.15e-59)) {
tmp = x - ((y * t) / (z - a));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.2e-15) or not (t <= 1.15e-59): tmp = x - ((y * t) / (z - a)) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.2e-15) || !(t <= 1.15e-59)) tmp = Float64(x - Float64(Float64(y * t) / Float64(z - a))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.2e-15) || ~((t <= 1.15e-59))) tmp = x - ((y * t) / (z - a)); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.2e-15], N[Not[LessEqual[t, 1.15e-59]], $MachinePrecision]], N[(x - N[(N[(y * t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{-15} \lor \neg \left(t \leq 1.15 \cdot 10^{-59}\right):\\
\;\;\;\;x - \frac{y \cdot t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if t < -2.19999999999999986e-15 or 1.1499999999999999e-59 < t Initial program 98.5%
Taylor expanded in t around inf 85.0%
associate-*r/85.0%
mul-1-neg85.0%
distribute-lft-neg-out85.0%
*-commutative85.0%
Simplified85.0%
div-inv85.0%
add-sqr-sqrt37.2%
sqrt-unprod40.4%
sqr-neg40.4%
sqrt-unprod24.2%
add-sqr-sqrt40.2%
remove-double-neg40.2%
distribute-rgt-neg-out40.2%
cancel-sign-sub-inv40.2%
div-inv40.2%
add-sqr-sqrt16.0%
sqrt-unprod45.2%
sqr-neg45.2%
sqrt-unprod47.7%
add-sqr-sqrt85.0%
Applied egg-rr85.0%
if -2.19999999999999986e-15 < t < 1.1499999999999999e-59Initial program 99.4%
Taylor expanded in t around 0 94.3%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.8e+112) (not (<= z 2.2e+91))) (+ x y) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.8e+112) || !(z <= 2.2e+91)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-3.8d+112)) .or. (.not. (z <= 2.2d+91))) then
tmp = x + y
else
tmp = x + (y * (t / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.8e+112) || !(z <= 2.2e+91)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.8e+112) or not (z <= 2.2e+91): tmp = x + y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.8e+112) || !(z <= 2.2e+91)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.8e+112) || ~((z <= 2.2e+91))) tmp = x + y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.8e+112], N[Not[LessEqual[z, 2.2e+91]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+112} \lor \neg \left(z \leq 2.2 \cdot 10^{+91}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -3.80000000000000008e112 or 2.19999999999999999e91 < z Initial program 100.0%
Taylor expanded in z around inf 82.7%
+-commutative82.7%
Simplified82.7%
if -3.80000000000000008e112 < z < 2.19999999999999999e91Initial program 98.4%
Taylor expanded in z around 0 73.3%
Final simplification76.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.2e+174) x (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.2e+174) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-6.2d+174)) then
tmp = x
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.2e+174) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.2e+174: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.2e+174) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.2e+174) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.2e+174], x, N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.2 \cdot 10^{+174}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -6.2e174Initial program 99.9%
Taylor expanded in x around inf 73.8%
if -6.2e174 < a Initial program 98.8%
Taylor expanded in z around inf 62.0%
+-commutative62.0%
Simplified62.0%
Final simplification63.8%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 98.9%
Taylor expanded in x around inf 54.6%
Final simplification54.6%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2024034
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))