
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
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)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
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)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}
(FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
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 / ((t - z) / (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
def code(x, y, z, t): return x / ((t - z) / (y - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(t - z) / Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x / ((t - z) / (y - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{t - z}{y - z}}
\end{array}
Initial program 84.0%
associate-/l*97.4%
Simplified97.4%
Taylor expanded in x around 0 84.0%
*-rgt-identity84.0%
times-frac83.7%
/-rgt-identity83.7%
associate-/r/97.5%
Simplified97.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8500000.0) (not (<= y 8.2e-67))) (* x (/ y (- t z))) (* x (/ z (- z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8500000.0) || !(y <= 8.2e-67)) {
tmp = x * (y / (t - z));
} else {
tmp = x * (z / (z - t));
}
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 ((y <= (-8500000.0d0)) .or. (.not. (y <= 8.2d-67))) then
tmp = x * (y / (t - z))
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8500000.0) || !(y <= 8.2e-67)) {
tmp = x * (y / (t - z));
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -8500000.0) or not (y <= 8.2e-67): tmp = x * (y / (t - z)) else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -8500000.0) || !(y <= 8.2e-67)) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -8500000.0) || ~((y <= 8.2e-67))) tmp = x * (y / (t - z)); else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8500000.0], N[Not[LessEqual[y, 8.2e-67]], $MachinePrecision]], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8500000 \lor \neg \left(y \leq 8.2 \cdot 10^{-67}\right):\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if y < -8.5e6 or 8.1999999999999994e-67 < y Initial program 82.8%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in y around inf 71.5%
associate-/l*79.3%
Simplified79.3%
if -8.5e6 < y < 8.1999999999999994e-67Initial program 85.5%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in y around 0 71.7%
mul-1-neg71.7%
distribute-neg-frac271.7%
sub-neg71.7%
distribute-neg-in71.7%
remove-double-neg71.7%
+-commutative71.7%
sub-neg71.7%
associate-/l*81.3%
Simplified81.3%
Final simplification80.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.8e-68) (not (<= z 3.4e+60))) (* x (- 1.0 (/ y z))) (* x (/ y (- t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.8e-68) || !(z <= 3.4e+60)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x * (y / (t - z));
}
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 <= (-1.8d-68)) .or. (.not. (z <= 3.4d+60))) then
tmp = x * (1.0d0 - (y / z))
else
tmp = x * (y / (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.8e-68) || !(z <= 3.4e+60)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x * (y / (t - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.8e-68) or not (z <= 3.4e+60): tmp = x * (1.0 - (y / z)) else: tmp = x * (y / (t - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.8e-68) || !(z <= 3.4e+60)) tmp = Float64(x * Float64(1.0 - Float64(y / z))); else tmp = Float64(x * Float64(y / Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.8e-68) || ~((z <= 3.4e+60))) tmp = x * (1.0 - (y / z)); else tmp = x * (y / (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.8e-68], N[Not[LessEqual[z, 3.4e+60]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-68} \lor \neg \left(z \leq 3.4 \cdot 10^{+60}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\end{array}
\end{array}
if z < -1.80000000000000004e-68 or 3.4e60 < z Initial program 76.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 55.8%
mul-1-neg55.8%
associate-/l*77.8%
distribute-rgt-neg-in77.8%
distribute-frac-neg77.8%
sub-neg77.8%
distribute-neg-in77.8%
remove-double-neg77.8%
+-commutative77.8%
sub-neg77.8%
div-sub77.8%
*-inverses77.8%
Simplified77.8%
if -1.80000000000000004e-68 < z < 3.4e60Initial program 91.0%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in y around inf 71.8%
associate-/l*78.0%
Simplified78.0%
Final simplification77.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.5e-71) (not (<= z 1.05e+17))) (* x (- 1.0 (/ y z))) (/ x (/ t y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.5e-71) || !(z <= 1.05e+17)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x / (t / y);
}
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 <= (-4.5d-71)) .or. (.not. (z <= 1.05d+17))) then
tmp = x * (1.0d0 - (y / z))
else
tmp = x / (t / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.5e-71) || !(z <= 1.05e+17)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.5e-71) or not (z <= 1.05e+17): tmp = x * (1.0 - (y / z)) else: tmp = x / (t / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4.5e-71) || !(z <= 1.05e+17)) tmp = Float64(x * Float64(1.0 - Float64(y / z))); else tmp = Float64(x / Float64(t / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4.5e-71) || ~((z <= 1.05e+17))) tmp = x * (1.0 - (y / z)); else tmp = x / (t / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.5e-71], N[Not[LessEqual[z, 1.05e+17]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{-71} \lor \neg \left(z \leq 1.05 \cdot 10^{+17}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\end{array}
\end{array}
if z < -4.5000000000000002e-71 or 1.05e17 < z Initial program 77.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 56.2%
mul-1-neg56.2%
associate-/l*76.1%
distribute-rgt-neg-in76.1%
distribute-frac-neg76.1%
sub-neg76.1%
distribute-neg-in76.1%
remove-double-neg76.1%
+-commutative76.1%
sub-neg76.1%
div-sub76.1%
*-inverses76.1%
Simplified76.1%
if -4.5000000000000002e-71 < z < 1.05e17Initial program 90.9%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in x around 0 90.9%
*-rgt-identity90.9%
times-frac88.7%
/-rgt-identity88.7%
associate-/r/95.1%
Simplified95.1%
Taylor expanded in z around 0 66.6%
Final simplification71.5%
(FPCore (x y z t) :precision binary64 (if (<= y -40000.0) (* x (/ y (- t z))) (if (<= y 1.25e-62) (* x (/ z (- z t))) (/ x (/ (- t z) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -40000.0) {
tmp = x * (y / (t - z));
} else if (y <= 1.25e-62) {
tmp = x * (z / (z - t));
} else {
tmp = x / ((t - z) / y);
}
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 (y <= (-40000.0d0)) then
tmp = x * (y / (t - z))
else if (y <= 1.25d-62) then
tmp = x * (z / (z - t))
else
tmp = x / ((t - z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -40000.0) {
tmp = x * (y / (t - z));
} else if (y <= 1.25e-62) {
tmp = x * (z / (z - t));
} else {
tmp = x / ((t - z) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -40000.0: tmp = x * (y / (t - z)) elif y <= 1.25e-62: tmp = x * (z / (z - t)) else: tmp = x / ((t - z) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -40000.0) tmp = Float64(x * Float64(y / Float64(t - z))); elseif (y <= 1.25e-62) tmp = Float64(x * Float64(z / Float64(z - t))); else tmp = Float64(x / Float64(Float64(t - z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -40000.0) tmp = x * (y / (t - z)); elseif (y <= 1.25e-62) tmp = x * (z / (z - t)); else tmp = x / ((t - z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -40000.0], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e-62], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(t - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -40000:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-62}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{t - z}{y}}\\
\end{array}
\end{array}
if y < -4e4Initial program 86.2%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in y around inf 74.0%
associate-/l*79.5%
Simplified79.5%
if -4e4 < y < 1.25e-62Initial program 85.5%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in y around 0 71.7%
mul-1-neg71.7%
distribute-neg-frac271.7%
sub-neg71.7%
distribute-neg-in71.7%
remove-double-neg71.7%
+-commutative71.7%
sub-neg71.7%
associate-/l*81.3%
Simplified81.3%
if 1.25e-62 < y Initial program 80.1%
associate-/l*98.5%
Simplified98.5%
Taylor expanded in x around 0 80.1%
*-rgt-identity80.1%
times-frac89.4%
/-rgt-identity89.4%
associate-/r/99.6%
Simplified99.6%
Taylor expanded in y around inf 80.2%
(FPCore (x y z t) :precision binary64 (if (<= z -5.3e-71) x (if (<= z 1e+62) (/ x (/ t y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -5.3e-71) {
tmp = x;
} else if (z <= 1e+62) {
tmp = x / (t / y);
} else {
tmp = x;
}
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 <= (-5.3d-71)) then
tmp = x
else if (z <= 1d+62) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -5.3e-71) {
tmp = x;
} else if (z <= 1e+62) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -5.3e-71: tmp = x elif z <= 1e+62: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -5.3e-71) tmp = x; elseif (z <= 1e+62) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -5.3e-71) tmp = x; elseif (z <= 1e+62) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -5.3e-71], x, If[LessEqual[z, 1e+62], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.3 \cdot 10^{-71}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 10^{+62}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.29999999999999999e-71 or 1.00000000000000004e62 < z Initial program 75.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 62.1%
if -5.29999999999999999e-71 < z < 1.00000000000000004e62Initial program 91.1%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in x around 0 91.1%
*-rgt-identity91.1%
times-frac89.7%
/-rgt-identity89.7%
associate-/r/95.5%
Simplified95.5%
Taylor expanded in z around 0 63.5%
(FPCore (x y z t) :precision binary64 (if (<= z -6.5e-66) x (if (<= z 7.5e+61) (* x (/ y t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.5e-66) {
tmp = x;
} else if (z <= 7.5e+61) {
tmp = x * (y / t);
} else {
tmp = x;
}
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 <= (-6.5d-66)) then
tmp = x
else if (z <= 7.5d+61) then
tmp = x * (y / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.5e-66) {
tmp = x;
} else if (z <= 7.5e+61) {
tmp = x * (y / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -6.5e-66: tmp = x elif z <= 7.5e+61: tmp = x * (y / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -6.5e-66) tmp = x; elseif (z <= 7.5e+61) tmp = Float64(x * Float64(y / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -6.5e-66) tmp = x; elseif (z <= 7.5e+61) tmp = x * (y / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -6.5e-66], x, If[LessEqual[z, 7.5e+61], N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{-66}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+61}:\\
\;\;\;\;x \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.50000000000000024e-66 or 7.5e61 < z Initial program 75.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 62.1%
if -6.50000000000000024e-66 < z < 7.5e61Initial program 91.1%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in z around 0 57.8%
associate-/l*63.2%
Simplified63.2%
(FPCore (x y z t) :precision binary64 (* x (/ (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x * ((y - z) / (t - z));
}
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) / (t - z))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y - z) / (t - z));
}
def code(x, y, z, t): return x * ((y - z) / (t - z))
function code(x, y, z, t) return Float64(x * Float64(Float64(y - z) / Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x * ((y - z) / (t - z)); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y - z}{t - z}
\end{array}
Initial program 84.0%
associate-/l*97.4%
Simplified97.4%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 84.0%
associate-/l*97.4%
Simplified97.4%
Taylor expanded in z around inf 34.1%
(FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
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 / ((t - z) / (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
def code(x, y, z, t): return x / ((t - z) / (y - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(t - z) / Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x / ((t - z) / (y - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{t - z}{y - z}}
\end{array}
herbie shell --seed 2024146
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (/ x (/ (- t z) (- y z))))
(/ (* x (- y z)) (- t z)))