
(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 14 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 (if (<= z -7.5e-181) (+ x (* y (/ (- z t) (- z a)))) (+ x (* (- z t) (/ y (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.5e-181) {
tmp = x + (y * ((z - t) / (z - a)));
} else {
tmp = x + ((z - t) * (y / (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 (z <= (-7.5d-181)) then
tmp = x + (y * ((z - t) / (z - a)))
else
tmp = x + ((z - t) * (y / (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 (z <= -7.5e-181) {
tmp = x + (y * ((z - t) / (z - a)));
} else {
tmp = x + ((z - t) * (y / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.5e-181: tmp = x + (y * ((z - t) / (z - a))) else: tmp = x + ((z - t) * (y / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.5e-181) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.5e-181) tmp = x + (y * ((z - t) / (z - a))); else tmp = x + ((z - t) * (y / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.5e-181], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-181}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z - a}\\
\end{array}
\end{array}
if z < -7.5000000000000002e-181Initial program 99.9%
if -7.5000000000000002e-181 < z Initial program 96.4%
associate-*r/83.2%
Simplified83.2%
associate-/l*97.1%
associate-/r/99.3%
Applied egg-rr99.3%
Final simplification99.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ t z)))))
(if (<= y -1.1e+88)
t_1
(if (<= y -5e-214) x (if (<= y 3.4e+105) (+ x y) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (t / z));
double tmp;
if (y <= -1.1e+88) {
tmp = t_1;
} else if (y <= -5e-214) {
tmp = x;
} else if (y <= 3.4e+105) {
tmp = x + y;
} 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 = y * (1.0d0 - (t / z))
if (y <= (-1.1d+88)) then
tmp = t_1
else if (y <= (-5d-214)) then
tmp = x
else if (y <= 3.4d+105) then
tmp = x + y
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 = y * (1.0 - (t / z));
double tmp;
if (y <= -1.1e+88) {
tmp = t_1;
} else if (y <= -5e-214) {
tmp = x;
} else if (y <= 3.4e+105) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (t / z)) tmp = 0 if y <= -1.1e+88: tmp = t_1 elif y <= -5e-214: tmp = x elif y <= 3.4e+105: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(t / z))) tmp = 0.0 if (y <= -1.1e+88) tmp = t_1; elseif (y <= -5e-214) tmp = x; elseif (y <= 3.4e+105) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (t / z)); tmp = 0.0; if (y <= -1.1e+88) tmp = t_1; elseif (y <= -5e-214) tmp = x; elseif (y <= 3.4e+105) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+88], t$95$1, If[LessEqual[y, -5e-214], x, If[LessEqual[y, 3.4e+105], N[(x + y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-214}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+105}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.10000000000000004e88 or 3.3999999999999999e105 < y Initial program 99.9%
associate-*r/54.3%
Simplified54.3%
associate-/l*99.9%
associate-/r/97.6%
Applied egg-rr97.6%
Taylor expanded in z around inf 57.8%
Taylor expanded in y around inf 55.5%
if -1.10000000000000004e88 < y < -4.9999999999999998e-214Initial program 98.3%
+-commutative98.3%
associate-*r/93.1%
associate-*l/98.2%
*-commutative98.2%
fma-def98.2%
Simplified98.2%
Taylor expanded in y around 0 68.6%
if -4.9999999999999998e-214 < y < 3.3999999999999999e105Initial program 95.8%
+-commutative95.8%
associate-*r/99.0%
associate-*l/96.7%
*-commutative96.7%
fma-def96.7%
Simplified96.7%
Taylor expanded in z around inf 72.9%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8e-39)
(+ x y)
(if (<= z 1.4e-63)
(+ x (* t (/ y a)))
(if (<= z 1.45e+99) (- x (* y (/ t z))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e-39) {
tmp = x + y;
} else if (z <= 1.4e-63) {
tmp = x + (t * (y / a));
} else if (z <= 1.45e+99) {
tmp = x - (y * (t / z));
} 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 (z <= (-8d-39)) then
tmp = x + y
else if (z <= 1.4d-63) then
tmp = x + (t * (y / a))
else if (z <= 1.45d+99) then
tmp = x - (y * (t / z))
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 (z <= -8e-39) {
tmp = x + y;
} else if (z <= 1.4e-63) {
tmp = x + (t * (y / a));
} else if (z <= 1.45e+99) {
tmp = x - (y * (t / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8e-39: tmp = x + y elif z <= 1.4e-63: tmp = x + (t * (y / a)) elif z <= 1.45e+99: tmp = x - (y * (t / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8e-39) tmp = Float64(x + y); elseif (z <= 1.4e-63) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 1.45e+99) tmp = Float64(x - Float64(y * Float64(t / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8e-39) tmp = x + y; elseif (z <= 1.4e-63) tmp = x + (t * (y / a)); elseif (z <= 1.45e+99) tmp = x - (y * (t / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8e-39], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.4e-63], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+99], N[(x - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{-39}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-63}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+99}:\\
\;\;\;\;x - y \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -7.99999999999999943e-39 or 1.4500000000000001e99 < z Initial program 99.9%
+-commutative99.9%
associate-*r/72.8%
associate-*l/96.1%
*-commutative96.1%
fma-def96.1%
Simplified96.1%
Taylor expanded in z around inf 76.3%
if -7.99999999999999943e-39 < z < 1.4000000000000001e-63Initial program 95.1%
+-commutative95.1%
associate-*r/94.2%
associate-*l/97.9%
*-commutative97.9%
fma-def97.9%
Simplified97.9%
Taylor expanded in z around 0 80.4%
associate-/l*82.7%
associate-/r/85.1%
Applied egg-rr85.1%
if 1.4000000000000001e-63 < z < 1.4500000000000001e99Initial program 97.4%
Taylor expanded in t around inf 77.9%
associate-*r/77.9%
mul-1-neg77.9%
distribute-rgt-neg-out77.9%
Simplified77.9%
Taylor expanded in z around inf 75.2%
associate-*r/75.2%
associate-*r*75.2%
neg-mul-175.2%
Simplified75.2%
Taylor expanded in x around 0 75.2%
+-commutative75.2%
mul-1-neg75.2%
associate-*r/72.5%
distribute-lft-neg-in72.5%
cancel-sign-sub-inv72.5%
Simplified72.5%
Final simplification79.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.9e-39)
(+ x y)
(if (<= z 1.9e-61)
(+ x (* t (/ y a)))
(if (<= z 5e+98) (- x (* t (/ y z))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e-39) {
tmp = x + y;
} else if (z <= 1.9e-61) {
tmp = x + (t * (y / a));
} else if (z <= 5e+98) {
tmp = x - (t * (y / z));
} 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 (z <= (-2.9d-39)) then
tmp = x + y
else if (z <= 1.9d-61) then
tmp = x + (t * (y / a))
else if (z <= 5d+98) then
tmp = x - (t * (y / z))
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 (z <= -2.9e-39) {
tmp = x + y;
} else if (z <= 1.9e-61) {
tmp = x + (t * (y / a));
} else if (z <= 5e+98) {
tmp = x - (t * (y / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e-39: tmp = x + y elif z <= 1.9e-61: tmp = x + (t * (y / a)) elif z <= 5e+98: tmp = x - (t * (y / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e-39) tmp = Float64(x + y); elseif (z <= 1.9e-61) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 5e+98) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e-39) tmp = x + y; elseif (z <= 1.9e-61) tmp = x + (t * (y / a)); elseif (z <= 5e+98) tmp = x - (t * (y / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e-39], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.9e-61], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+98], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-39}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-61}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+98}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -2.89999999999999988e-39 or 4.9999999999999998e98 < z Initial program 99.9%
+-commutative99.9%
associate-*r/72.8%
associate-*l/96.1%
*-commutative96.1%
fma-def96.1%
Simplified96.1%
Taylor expanded in z around inf 76.3%
if -2.89999999999999988e-39 < z < 1.8999999999999999e-61Initial program 95.1%
+-commutative95.1%
associate-*r/94.2%
associate-*l/97.9%
*-commutative97.9%
fma-def97.9%
Simplified97.9%
Taylor expanded in z around 0 80.4%
associate-/l*82.7%
associate-/r/85.1%
Applied egg-rr85.1%
if 1.8999999999999999e-61 < z < 4.9999999999999998e98Initial program 97.4%
Taylor expanded in t around inf 77.9%
associate-*r/77.9%
mul-1-neg77.9%
distribute-rgt-neg-out77.9%
Simplified77.9%
Taylor expanded in z around inf 75.2%
associate-*r/75.2%
associate-*r*75.2%
neg-mul-175.2%
Simplified75.2%
div-inv75.2%
add-sqr-sqrt23.6%
sqrt-unprod52.7%
sqr-neg52.7%
sqrt-unprod30.0%
add-sqr-sqrt50.9%
cancel-sign-sub50.9%
distribute-lft-neg-out50.9%
div-inv50.9%
associate-/l*50.9%
associate-/r/50.9%
add-sqr-sqrt20.9%
sqrt-unprod68.3%
sqr-neg68.3%
sqrt-unprod51.5%
add-sqr-sqrt75.2%
Applied egg-rr75.2%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.5e-47) (not (<= z 7e-72))) (+ x (* y (/ z (- z a)))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.5e-47) || !(z <= 7e-72)) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t * (y / 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 <= (-1.5d-47)) .or. (.not. (z <= 7d-72))) then
tmp = x + (y * (z / (z - a)))
else
tmp = x + (t * (y / 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 <= -1.5e-47) || !(z <= 7e-72)) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.5e-47) or not (z <= 7e-72): tmp = x + (y * (z / (z - a))) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.5e-47) || !(z <= 7e-72)) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.5e-47) || ~((z <= 7e-72))) tmp = x + (y * (z / (z - a))); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.5e-47], N[Not[LessEqual[z, 7e-72]], $MachinePrecision]], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{-47} \lor \neg \left(z \leq 7 \cdot 10^{-72}\right):\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -1.50000000000000008e-47 or 7.00000000000000001e-72 < z Initial program 99.3%
Taylor expanded in t around 0 83.1%
if -1.50000000000000008e-47 < z < 7.00000000000000001e-72Initial program 95.0%
+-commutative95.0%
associate-*r/94.0%
associate-*l/97.9%
*-commutative97.9%
fma-def97.8%
Simplified97.8%
Taylor expanded in z around 0 80.0%
associate-/l*82.3%
associate-/r/84.8%
Applied egg-rr84.8%
Final simplification83.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.8e-81) (+ x (* y (/ (- z t) z))) (if (<= z 8.5e-66) (+ x (* t (/ y a))) (+ x (* y (/ z (- z a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.8e-81) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 8.5e-66) {
tmp = x + (t * (y / 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 (z <= (-1.8d-81)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 8.5d-66) then
tmp = x + (t * (y / 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 (z <= -1.8e-81) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 8.5e-66) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.8e-81: tmp = x + (y * ((z - t) / z)) elif z <= 8.5e-66: tmp = x + (t * (y / a)) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.8e-81) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 8.5e-66) tmp = Float64(x + Float64(t * Float64(y / 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 (z <= -1.8e-81) tmp = x + (y * ((z - t) / z)); elseif (z <= 8.5e-66) tmp = x + (t * (y / a)); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.8e-81], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-66], N[(x + N[(t * N[(y / 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}\;z \leq -1.8 \cdot 10^{-81}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-66}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if z < -1.7999999999999999e-81Initial program 99.9%
Taylor expanded in a around 0 82.8%
if -1.7999999999999999e-81 < z < 8.49999999999999966e-66Initial program 94.8%
+-commutative94.8%
associate-*r/93.8%
associate-*l/97.8%
*-commutative97.8%
fma-def97.8%
Simplified97.8%
Taylor expanded in z around 0 80.4%
associate-/l*82.8%
associate-/r/85.4%
Applied egg-rr85.4%
if 8.49999999999999966e-66 < z Initial program 98.8%
Taylor expanded in t around 0 83.3%
Final simplification83.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.8e-80) (+ x (* y (/ (- z t) z))) (if (<= z 1.12e-62) (+ x (* t (/ y a))) (+ x (* (- z t) (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.8e-80) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 1.12e-62) {
tmp = x + (t * (y / a));
} else {
tmp = x + ((z - t) * (y / z));
}
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 <= (-5.8d-80)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 1.12d-62) then
tmp = x + (t * (y / a))
else
tmp = x + ((z - t) * (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.8e-80) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 1.12e-62) {
tmp = x + (t * (y / a));
} else {
tmp = x + ((z - t) * (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.8e-80: tmp = x + (y * ((z - t) / z)) elif z <= 1.12e-62: tmp = x + (t * (y / a)) else: tmp = x + ((z - t) * (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.8e-80) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 1.12e-62) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.8e-80) tmp = x + (y * ((z - t) / z)); elseif (z <= 1.12e-62) tmp = x + (t * (y / a)); else tmp = x + ((z - t) * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.8e-80], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e-62], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-80}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-62}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z}\\
\end{array}
\end{array}
if z < -5.79999999999999996e-80Initial program 99.9%
Taylor expanded in a around 0 82.8%
if -5.79999999999999996e-80 < z < 1.1200000000000001e-62Initial program 94.9%
+-commutative94.9%
associate-*r/94.0%
associate-*l/97.9%
*-commutative97.9%
fma-def97.8%
Simplified97.8%
Taylor expanded in z around 0 80.8%
associate-/l*83.2%
associate-/r/85.7%
Applied egg-rr85.7%
if 1.1200000000000001e-62 < z Initial program 98.8%
associate-*r/72.9%
Simplified72.9%
associate-/l*98.8%
associate-/r/99.9%
Applied egg-rr99.9%
Taylor expanded in z around inf 84.2%
Final simplification84.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.28e+72)
(+ x (* y (/ z (- z a))))
(if (<= a 24000000000000.0)
(+ x (* y (/ (- z t) z)))
(- x (/ y (/ a (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.28e+72) {
tmp = x + (y * (z / (z - a)));
} else if (a <= 24000000000000.0) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x - (y / (a / (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 <= (-1.28d+72)) then
tmp = x + (y * (z / (z - a)))
else if (a <= 24000000000000.0d0) then
tmp = x + (y * ((z - t) / z))
else
tmp = x - (y / (a / (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 <= -1.28e+72) {
tmp = x + (y * (z / (z - a)));
} else if (a <= 24000000000000.0) {
tmp = x + (y * ((z - t) / z));
} else {
tmp = x - (y / (a / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.28e+72: tmp = x + (y * (z / (z - a))) elif a <= 24000000000000.0: tmp = x + (y * ((z - t) / z)) else: tmp = x - (y / (a / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.28e+72) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); elseif (a <= 24000000000000.0) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); else tmp = Float64(x - Float64(y / Float64(a / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.28e+72) tmp = x + (y * (z / (z - a))); elseif (a <= 24000000000000.0) tmp = x + (y * ((z - t) / z)); else tmp = x - (y / (a / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.28e+72], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 24000000000000.0], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.28 \cdot 10^{+72}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{elif}\;a \leq 24000000000000:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{a}{z - t}}\\
\end{array}
\end{array}
if a < -1.28000000000000009e72Initial program 99.9%
Taylor expanded in t around 0 87.3%
if -1.28000000000000009e72 < a < 2.4e13Initial program 95.7%
Taylor expanded in a around 0 81.1%
if 2.4e13 < a Initial program 99.8%
+-commutative99.8%
associate-*r/83.3%
associate-*l/96.8%
*-commutative96.8%
fma-def96.8%
Simplified96.8%
Taylor expanded in a around inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
associate-/l*90.7%
Simplified90.7%
Final simplification84.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.9e-42) (+ x (* y (/ (- z t) z))) (if (<= z 2.6e+39) (- 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 (z <= -3.9e-42) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 2.6e+39) {
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 (z <= (-3.9d-42)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 2.6d+39) 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 (z <= -3.9e-42) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 2.6e+39) {
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 z <= -3.9e-42: tmp = x + (y * ((z - t) / z)) elif z <= 2.6e+39: 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 (z <= -3.9e-42) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 2.6e+39) 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 (z <= -3.9e-42) tmp = x + (y * ((z - t) / z)); elseif (z <= 2.6e+39) 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[LessEqual[z, -3.9e-42], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+39], 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}\;z \leq -3.9 \cdot 10^{-42}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+39}:\\
\;\;\;\;x - \frac{y \cdot t}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if z < -3.9000000000000002e-42Initial program 99.9%
Taylor expanded in a around 0 83.3%
if -3.9000000000000002e-42 < z < 2.6e39Initial program 95.2%
Taylor expanded in t around inf 90.0%
associate-*r/90.0%
mul-1-neg90.0%
distribute-rgt-neg-out90.0%
Simplified90.0%
if 2.6e39 < z Initial program 100.0%
Taylor expanded in t around 0 87.6%
Final simplification87.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -6.4e-39) (not (<= z 1.4e+77))) (+ x y) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.4e-39) || !(z <= 1.4e+77)) {
tmp = x + y;
} else {
tmp = x + (t * (y / 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 <= (-6.4d-39)) .or. (.not. (z <= 1.4d+77))) then
tmp = x + y
else
tmp = x + (t * (y / 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 <= -6.4e-39) || !(z <= 1.4e+77)) {
tmp = x + y;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -6.4e-39) or not (z <= 1.4e+77): tmp = x + y else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -6.4e-39) || !(z <= 1.4e+77)) tmp = Float64(x + y); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -6.4e-39) || ~((z <= 1.4e+77))) tmp = x + y; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -6.4e-39], N[Not[LessEqual[z, 1.4e+77]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{-39} \lor \neg \left(z \leq 1.4 \cdot 10^{+77}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -6.3999999999999995e-39 or 1.4e77 < z Initial program 99.9%
+-commutative99.9%
associate-*r/73.4%
associate-*l/96.3%
*-commutative96.3%
fma-def96.3%
Simplified96.3%
Taylor expanded in z around inf 75.2%
if -6.3999999999999995e-39 < z < 1.4e77Initial program 95.5%
+-commutative95.5%
associate-*r/92.7%
associate-*l/98.4%
*-commutative98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in z around 0 73.4%
associate-/l*77.3%
associate-/r/79.3%
Applied egg-rr79.3%
Final simplification77.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -7.2e-39) (+ x y) (if (<= z 5.8e+77) (+ x (* y (/ t a))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.2e-39) {
tmp = x + y;
} else if (z <= 5.8e+77) {
tmp = x + (y * (t / a));
} 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 (z <= (-7.2d-39)) then
tmp = x + y
else if (z <= 5.8d+77) then
tmp = x + (y * (t / a))
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 (z <= -7.2e-39) {
tmp = x + y;
} else if (z <= 5.8e+77) {
tmp = x + (y * (t / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.2e-39: tmp = x + y elif z <= 5.8e+77: tmp = x + (y * (t / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.2e-39) tmp = Float64(x + y); elseif (z <= 5.8e+77) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.2e-39) tmp = x + y; elseif (z <= 5.8e+77) tmp = x + (y * (t / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.2e-39], N[(x + y), $MachinePrecision], If[LessEqual[z, 5.8e+77], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{-39}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+77}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -7.2000000000000001e-39 or 5.8000000000000003e77 < z Initial program 99.9%
+-commutative99.9%
associate-*r/73.4%
associate-*l/96.3%
*-commutative96.3%
fma-def96.3%
Simplified96.3%
Taylor expanded in z around inf 75.2%
if -7.2000000000000001e-39 < z < 5.8000000000000003e77Initial program 95.5%
Taylor expanded in z around 0 77.1%
Final simplification76.1%
(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 97.7%
Final simplification97.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.5e+166) x (if (<= a 4.2e+63) (+ x y) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.5e+166) {
tmp = x;
} else if (a <= 4.2e+63) {
tmp = x + y;
} else {
tmp = x;
}
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 <= (-2.5d+166)) then
tmp = x
else if (a <= 4.2d+63) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.5e+166) {
tmp = x;
} else if (a <= 4.2e+63) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.5e+166: tmp = x elif a <= 4.2e+63: tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.5e+166) tmp = x; elseif (a <= 4.2e+63) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.5e+166) tmp = x; elseif (a <= 4.2e+63) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.5e+166], x, If[LessEqual[a, 4.2e+63], N[(x + y), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{+166}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+63}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.5000000000000001e166 or 4.2000000000000004e63 < a Initial program 99.9%
+-commutative99.9%
associate-*r/77.7%
associate-*l/95.3%
*-commutative95.3%
fma-def95.3%
Simplified95.3%
Taylor expanded in y around 0 66.7%
if -2.5000000000000001e166 < a < 4.2000000000000004e63Initial program 96.7%
+-commutative96.7%
associate-*r/85.5%
associate-*l/98.3%
*-commutative98.3%
fma-def98.3%
Simplified98.3%
Taylor expanded in z around inf 62.7%
Final simplification64.0%
(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 97.7%
+-commutative97.7%
associate-*r/83.0%
associate-*l/97.4%
*-commutative97.4%
fma-def97.3%
Simplified97.3%
Taylor expanded in y around 0 52.2%
Final simplification52.2%
(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 2023171
(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)))))