
(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 8 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 (/ (- 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 83.0%
associate-/l*96.7%
Simplified96.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.7e-48) (not (<= z 4.45e-10))) (/ x (/ z (- z y))) (* y (/ x (- t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.7e-48) || !(z <= 4.45e-10)) {
tmp = x / (z / (z - y));
} else {
tmp = y * (x / (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 <= (-2.7d-48)) .or. (.not. (z <= 4.45d-10))) then
tmp = x / (z / (z - y))
else
tmp = y * (x / (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.7e-48) || !(z <= 4.45e-10)) {
tmp = x / (z / (z - y));
} else {
tmp = y * (x / (t - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.7e-48) or not (z <= 4.45e-10): tmp = x / (z / (z - y)) else: tmp = y * (x / (t - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.7e-48) || !(z <= 4.45e-10)) tmp = Float64(x / Float64(z / Float64(z - y))); else tmp = Float64(y * Float64(x / Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.7e-48) || ~((z <= 4.45e-10))) tmp = x / (z / (z - y)); else tmp = y * (x / (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.7e-48], N[Not[LessEqual[z, 4.45e-10]], $MachinePrecision]], N[(x / N[(z / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-48} \lor \neg \left(z \leq 4.45 \cdot 10^{-10}\right):\\
\;\;\;\;\frac{x}{\frac{z}{z - y}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\end{array}
\end{array}
if z < -2.70000000000000011e-48 or 4.45e-10 < z Initial program 74.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 74.8%
*-rgt-identity74.8%
times-frac78.2%
/-rgt-identity78.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 81.7%
neg-mul-181.7%
distribute-neg-frac281.7%
sub-neg81.7%
distribute-neg-in81.7%
remove-double-neg81.7%
Simplified81.7%
if -2.70000000000000011e-48 < z < 4.45e-10Initial program 93.3%
associate-/l*92.8%
Simplified92.8%
Taylor expanded in x around 0 93.3%
*-rgt-identity93.3%
times-frac94.7%
/-rgt-identity94.7%
associate-/r/92.3%
Simplified92.3%
Taylor expanded in y around inf 76.2%
associate-*l/77.4%
*-commutative77.4%
Simplified77.4%
Final simplification79.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.7e-48) (not (<= z 8.8e-10))) (* x (- 1.0 (/ y z))) (* y (/ x (- t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.7e-48) || !(z <= 8.8e-10)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = y * (x / (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 <= (-2.7d-48)) .or. (.not. (z <= 8.8d-10))) then
tmp = x * (1.0d0 - (y / z))
else
tmp = y * (x / (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.7e-48) || !(z <= 8.8e-10)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = y * (x / (t - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.7e-48) or not (z <= 8.8e-10): tmp = x * (1.0 - (y / z)) else: tmp = y * (x / (t - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.7e-48) || !(z <= 8.8e-10)) tmp = Float64(x * Float64(1.0 - Float64(y / z))); else tmp = Float64(y * Float64(x / Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.7e-48) || ~((z <= 8.8e-10))) tmp = x * (1.0 - (y / z)); else tmp = y * (x / (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.7e-48], N[Not[LessEqual[z, 8.8e-10]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-48} \lor \neg \left(z \leq 8.8 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\end{array}
\end{array}
if z < -2.70000000000000011e-48 or 8.7999999999999996e-10 < z Initial program 74.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around 0 58.2%
mul-1-neg58.2%
associate-/l*81.6%
distribute-rgt-neg-in81.6%
distribute-frac-neg81.6%
sub-neg81.6%
distribute-neg-in81.6%
remove-double-neg81.6%
+-commutative81.6%
sub-neg81.6%
div-sub81.7%
*-inverses81.7%
Simplified81.7%
if -2.70000000000000011e-48 < z < 8.7999999999999996e-10Initial program 93.3%
associate-/l*92.8%
Simplified92.8%
Taylor expanded in x around 0 93.3%
*-rgt-identity93.3%
times-frac94.7%
/-rgt-identity94.7%
associate-/r/92.3%
Simplified92.3%
Taylor expanded in y around inf 76.2%
associate-*l/77.4%
*-commutative77.4%
Simplified77.4%
Final simplification79.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.2e-75) (not (<= z 3.4e-45))) (* x (- 1.0 (/ y z))) (/ x (/ t y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.2e-75) || !(z <= 3.4e-45)) {
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.2d-75)) .or. (.not. (z <= 3.4d-45))) 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.2e-75) || !(z <= 3.4e-45)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.2e-75) or not (z <= 3.4e-45): 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.2e-75) || !(z <= 3.4e-45)) 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.2e-75) || ~((z <= 3.4e-45))) 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.2e-75], N[Not[LessEqual[z, 3.4e-45]], $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.2 \cdot 10^{-75} \lor \neg \left(z \leq 3.4 \cdot 10^{-45}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\end{array}
\end{array}
if z < -4.2000000000000002e-75 or 3.40000000000000004e-45 < z Initial program 76.5%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around 0 57.8%
mul-1-neg57.8%
associate-/l*79.7%
distribute-rgt-neg-in79.7%
distribute-frac-neg79.7%
sub-neg79.7%
distribute-neg-in79.7%
remove-double-neg79.7%
+-commutative79.7%
sub-neg79.7%
div-sub79.7%
*-inverses79.7%
Simplified79.7%
if -4.2000000000000002e-75 < z < 3.40000000000000004e-45Initial program 93.3%
associate-/l*91.8%
Simplified91.8%
Taylor expanded in x around 0 93.3%
*-rgt-identity93.3%
times-frac94.0%
/-rgt-identity94.0%
associate-/r/91.2%
Simplified91.2%
Taylor expanded in z around 0 66.0%
Final simplification74.4%
(FPCore (x y z t) :precision binary64 (if (<= z -2.7e-48) (- x (* x (/ y z))) (if (<= z 2.1e-11) (* y (/ x (- t z))) (* x (- 1.0 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.7e-48) {
tmp = x - (x * (y / z));
} else if (z <= 2.1e-11) {
tmp = y * (x / (t - z));
} else {
tmp = x * (1.0 - (y / 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 <= (-2.7d-48)) then
tmp = x - (x * (y / z))
else if (z <= 2.1d-11) then
tmp = y * (x / (t - z))
else
tmp = x * (1.0d0 - (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.7e-48) {
tmp = x - (x * (y / z));
} else if (z <= 2.1e-11) {
tmp = y * (x / (t - z));
} else {
tmp = x * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.7e-48: tmp = x - (x * (y / z)) elif z <= 2.1e-11: tmp = y * (x / (t - z)) else: tmp = x * (1.0 - (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.7e-48) tmp = Float64(x - Float64(x * Float64(y / z))); elseif (z <= 2.1e-11) tmp = Float64(y * Float64(x / Float64(t - z))); else tmp = Float64(x * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.7e-48) tmp = x - (x * (y / z)); elseif (z <= 2.1e-11) tmp = y * (x / (t - z)); else tmp = x * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.7e-48], N[(x - N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-11], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-48}:\\
\;\;\;\;x - x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -2.70000000000000011e-48Initial program 74.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 74.9%
*-rgt-identity74.9%
times-frac78.8%
/-rgt-identity78.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around 0 79.6%
neg-mul-179.6%
distribute-neg-frac279.6%
sub-neg79.6%
distribute-neg-in79.6%
remove-double-neg79.6%
Simplified79.6%
Taylor expanded in z around inf 71.8%
mul-1-neg71.8%
associate-*r/79.6%
unsub-neg79.6%
Simplified79.6%
if -2.70000000000000011e-48 < z < 2.0999999999999999e-11Initial program 93.3%
associate-/l*92.8%
Simplified92.8%
Taylor expanded in x around 0 93.3%
*-rgt-identity93.3%
times-frac94.7%
/-rgt-identity94.7%
associate-/r/92.3%
Simplified92.3%
Taylor expanded in y around inf 76.2%
associate-*l/77.4%
*-commutative77.4%
Simplified77.4%
if 2.0999999999999999e-11 < z Initial program 74.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around 0 60.7%
mul-1-neg60.7%
associate-/l*84.6%
distribute-rgt-neg-in84.6%
distribute-frac-neg84.6%
sub-neg84.6%
distribute-neg-in84.6%
remove-double-neg84.6%
+-commutative84.6%
sub-neg84.6%
div-sub84.6%
*-inverses84.6%
Simplified84.6%
(FPCore (x y z t) :precision binary64 (if (<= z -1.72e-74) x (if (<= z 3200000000000.0) (/ x (/ t y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.72e-74) {
tmp = x;
} else if (z <= 3200000000000.0) {
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 <= (-1.72d-74)) then
tmp = x
else if (z <= 3200000000000.0d0) 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 <= -1.72e-74) {
tmp = x;
} else if (z <= 3200000000000.0) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.72e-74: tmp = x elif z <= 3200000000000.0: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.72e-74) tmp = x; elseif (z <= 3200000000000.0) 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 <= -1.72e-74) tmp = x; elseif (z <= 3200000000000.0) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.72e-74], x, If[LessEqual[z, 3200000000000.0], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.72 \cdot 10^{-74}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3200000000000:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.72e-74 or 3.2e12 < z Initial program 74.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 61.6%
if -1.72e-74 < z < 3.2e12Initial program 93.9%
associate-/l*92.6%
Simplified92.6%
Taylor expanded in x around 0 93.9%
*-rgt-identity93.9%
times-frac94.6%
/-rgt-identity94.6%
associate-/r/92.1%
Simplified92.1%
Taylor expanded in z around 0 63.3%
(FPCore (x y z t) :precision binary64 (if (<= z -3.8e-78) x (if (<= z 900000.0) (* x (/ y t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.8e-78) {
tmp = x;
} else if (z <= 900000.0) {
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 <= (-3.8d-78)) then
tmp = x
else if (z <= 900000.0d0) 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 <= -3.8e-78) {
tmp = x;
} else if (z <= 900000.0) {
tmp = x * (y / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -3.8e-78: tmp = x elif z <= 900000.0: tmp = x * (y / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -3.8e-78) tmp = x; elseif (z <= 900000.0) 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 <= -3.8e-78) tmp = x; elseif (z <= 900000.0) tmp = x * (y / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -3.8e-78], x, If[LessEqual[z, 900000.0], N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{-78}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 900000:\\
\;\;\;\;x \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.7999999999999999e-78 or 9e5 < z Initial program 74.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 61.6%
if -3.7999999999999999e-78 < z < 9e5Initial program 93.9%
associate-/l*92.6%
Simplified92.6%
Taylor expanded in z around 0 62.4%
associate-/l*63.2%
Simplified63.2%
(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 83.0%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in z around inf 40.4%
(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 2024139
(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)))