
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
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 - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - x\right) \cdot \frac{z}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
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 - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - x\right) \cdot \frac{z}{t}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= (+ x (* (- y x) (/ z t))) (- INFINITY)) (/ (* (- y x) z) t) (fma (/ z t) (- y x) x)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x + ((y - x) * (z / t))) <= -((double) INFINITY)) {
tmp = ((y - x) * z) / t;
} else {
tmp = fma((z / t), (y - x), x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (Float64(x + Float64(Float64(y - x) * Float64(z / t))) <= Float64(-Inf)) tmp = Float64(Float64(Float64(y - x) * z) / t); else tmp = fma(Float64(z / t), Float64(y - x), x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision], N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + \left(y - x\right) \cdot \frac{z}{t} \leq -\infty:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y - x, x\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t))) < -inf.0Initial program 90.6%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64100.0
Applied rewrites100.0%
if -inf.0 < (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t))) Initial program 99.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6499.1
Applied rewrites99.1%
Final simplification99.3%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ z t) -5000000000.0) (not (<= (/ z t) 4e-20))) (* (/ z t) (- y x)) (fma z (/ y t) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (((z / t) <= -5000000000.0) || !((z / t) <= 4e-20)) {
tmp = (z / t) * (y - x);
} else {
tmp = fma(z, (y / t), x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((Float64(z / t) <= -5000000000.0) || !(Float64(z / t) <= 4e-20)) tmp = Float64(Float64(z / t) * Float64(y - x)); else tmp = fma(z, Float64(y / t), x); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z / t), $MachinePrecision], -5000000000.0], N[Not[LessEqual[N[(z / t), $MachinePrecision], 4e-20]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision], N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -5000000000 \lor \neg \left(\frac{z}{t} \leq 4 \cdot 10^{-20}\right):\\
\;\;\;\;\frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\end{array}
\end{array}
if (/.f64 z t) < -5e9 or 3.99999999999999978e-20 < (/.f64 z t) Initial program 95.6%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6489.9
Applied rewrites89.9%
Applied rewrites95.6%
if -5e9 < (/.f64 z t) < 3.99999999999999978e-20Initial program 99.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift--.f64N/A
flip--N/A
frac-timesN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
sub-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6453.3
Applied rewrites53.3%
Taylor expanded in x around 0
lower-/.f6495.5
Applied rewrites95.5%
Final simplification95.5%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ z t) -2e-6) (not (<= (/ z t) 4e-20))) (* (/ z t) y) (* 1.0 x)))
double code(double x, double y, double z, double t) {
double tmp;
if (((z / t) <= -2e-6) || !((z / t) <= 4e-20)) {
tmp = (z / t) * y;
} else {
tmp = 1.0 * 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 / t) <= (-2d-6)) .or. (.not. ((z / t) <= 4d-20))) then
tmp = (z / t) * y
else
tmp = 1.0d0 * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((z / t) <= -2e-6) || !((z / t) <= 4e-20)) {
tmp = (z / t) * y;
} else {
tmp = 1.0 * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((z / t) <= -2e-6) or not ((z / t) <= 4e-20): tmp = (z / t) * y else: tmp = 1.0 * x return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(z / t) <= -2e-6) || !(Float64(z / t) <= 4e-20)) tmp = Float64(Float64(z / t) * y); else tmp = Float64(1.0 * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((z / t) <= -2e-6) || ~(((z / t) <= 4e-20))) tmp = (z / t) * y; else tmp = 1.0 * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z / t), $MachinePrecision], -2e-6], N[Not[LessEqual[N[(z / t), $MachinePrecision], 4e-20]], $MachinePrecision]], N[(N[(z / t), $MachinePrecision] * y), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -2 \cdot 10^{-6} \lor \neg \left(\frac{z}{t} \leq 4 \cdot 10^{-20}\right):\\
\;\;\;\;\frac{z}{t} \cdot y\\
\mathbf{else}:\\
\;\;\;\;1 \cdot x\\
\end{array}
\end{array}
if (/.f64 z t) < -1.99999999999999991e-6 or 3.99999999999999978e-20 < (/.f64 z t) Initial program 95.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6495.6
Applied rewrites95.6%
Taylor expanded in x around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f6462.4
Applied rewrites62.4%
if -1.99999999999999991e-6 < (/.f64 z t) < 3.99999999999999978e-20Initial program 99.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6499.4
Applied rewrites99.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
lower--.f64N/A
lower-/.f6482.4
Applied rewrites82.4%
Taylor expanded in z around 0
Applied rewrites82.3%
Final simplification71.9%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ z t) -2e-6) (not (<= (/ z t) 4e-20))) (* (/ y t) z) (* 1.0 x)))
double code(double x, double y, double z, double t) {
double tmp;
if (((z / t) <= -2e-6) || !((z / t) <= 4e-20)) {
tmp = (y / t) * z;
} else {
tmp = 1.0 * 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 / t) <= (-2d-6)) .or. (.not. ((z / t) <= 4d-20))) then
tmp = (y / t) * z
else
tmp = 1.0d0 * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((z / t) <= -2e-6) || !((z / t) <= 4e-20)) {
tmp = (y / t) * z;
} else {
tmp = 1.0 * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((z / t) <= -2e-6) or not ((z / t) <= 4e-20): tmp = (y / t) * z else: tmp = 1.0 * x return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(z / t) <= -2e-6) || !(Float64(z / t) <= 4e-20)) tmp = Float64(Float64(y / t) * z); else tmp = Float64(1.0 * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((z / t) <= -2e-6) || ~(((z / t) <= 4e-20))) tmp = (y / t) * z; else tmp = 1.0 * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z / t), $MachinePrecision], -2e-6], N[Not[LessEqual[N[(z / t), $MachinePrecision], 4e-20]], $MachinePrecision]], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{z}{t} \leq -2 \cdot 10^{-6} \lor \neg \left(\frac{z}{t} \leq 4 \cdot 10^{-20}\right):\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;1 \cdot x\\
\end{array}
\end{array}
if (/.f64 z t) < -1.99999999999999991e-6 or 3.99999999999999978e-20 < (/.f64 z t) Initial program 95.6%
Taylor expanded in x around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6455.4
Applied rewrites55.4%
Applied rewrites57.6%
if -1.99999999999999991e-6 < (/.f64 z t) < 3.99999999999999978e-20Initial program 99.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6499.4
Applied rewrites99.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
lower--.f64N/A
lower-/.f6482.4
Applied rewrites82.4%
Taylor expanded in z around 0
Applied rewrites82.3%
Final simplification69.4%
(FPCore (x y z t) :precision binary64 (if (or (<= x -5.5e+57) (not (<= x 15500000000000.0))) (* (- 1.0 (/ z t)) x) (fma z (/ y t) x)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -5.5e+57) || !(x <= 15500000000000.0)) {
tmp = (1.0 - (z / t)) * x;
} else {
tmp = fma(z, (y / t), x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((x <= -5.5e+57) || !(x <= 15500000000000.0)) tmp = Float64(Float64(1.0 - Float64(z / t)) * x); else tmp = fma(z, Float64(y / t), x); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -5.5e+57], N[Not[LessEqual[x, 15500000000000.0]], $MachinePrecision]], N[(N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+57} \lor \neg \left(x \leq 15500000000000\right):\\
\;\;\;\;\left(1 - \frac{z}{t}\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\end{array}
\end{array}
if x < -5.5000000000000002e57 or 1.55e13 < x Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f6490.1
Applied rewrites90.1%
if -5.5000000000000002e57 < x < 1.55e13Initial program 95.2%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift--.f64N/A
flip--N/A
frac-timesN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
sub-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6468.2
Applied rewrites68.2%
Taylor expanded in x around 0
lower-/.f6485.2
Applied rewrites85.2%
Final simplification87.5%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.3e-140) (not (<= t -1.45e-259))) (fma z (/ y t) x) (/ (* (- x) z) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.3e-140) || !(t <= -1.45e-259)) {
tmp = fma(z, (y / t), x);
} else {
tmp = (-x * z) / t;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.3e-140) || !(t <= -1.45e-259)) tmp = fma(z, Float64(y / t), x); else tmp = Float64(Float64(Float64(-x) * z) / t); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.3e-140], N[Not[LessEqual[t, -1.45e-259]], $MachinePrecision]], N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision], N[(N[((-x) * z), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{-140} \lor \neg \left(t \leq -1.45 \cdot 10^{-259}\right):\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-x\right) \cdot z}{t}\\
\end{array}
\end{array}
if t < -1.2999999999999999e-140 or -1.45000000000000004e-259 < t Initial program 97.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift--.f64N/A
flip--N/A
frac-timesN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
sub-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6459.7
Applied rewrites59.7%
Taylor expanded in x around 0
lower-/.f6479.1
Applied rewrites79.1%
if -1.2999999999999999e-140 < t < -1.45000000000000004e-259Initial program 94.8%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6494.5
Applied rewrites94.5%
Taylor expanded in x around inf
Applied rewrites79.4%
Final simplification79.1%
(FPCore (x y z t) :precision binary64 (fma z (/ y t) x))
double code(double x, double y, double z, double t) {
return fma(z, (y / t), x);
}
function code(x, y, z, t) return fma(z, Float64(y / t), x) end
code[x_, y_, z_, t_] := N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, \frac{y}{t}, x\right)
\end{array}
Initial program 97.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift--.f64N/A
flip--N/A
frac-timesN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
sub-negN/A
+-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6460.9
Applied rewrites60.9%
Taylor expanded in x around 0
lower-/.f6475.9
Applied rewrites75.9%
(FPCore (x y z t) :precision binary64 (* 1.0 x))
double code(double x, double y, double z, double t) {
return 1.0 * 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 = 1.0d0 * x
end function
public static double code(double x, double y, double z, double t) {
return 1.0 * x;
}
def code(x, y, z, t): return 1.0 * x
function code(x, y, z, t) return Float64(1.0 * x) end
function tmp = code(x, y, z, t) tmp = 1.0 * x; end
code[x_, y_, z_, t_] := N[(1.0 * x), $MachinePrecision]
\begin{array}{l}
\\
1 \cdot x
\end{array}
Initial program 97.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6497.4
Applied rewrites97.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
lower--.f64N/A
lower-/.f6465.7
Applied rewrites65.7%
Taylor expanded in z around 0
Applied rewrites40.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- y x) (/ z t))) (t_2 (+ x (/ (- y x) (/ t z)))))
(if (< t_1 -1013646692435.8867)
t_2
(if (< t_1 0.0) (+ x (/ (* (- y x) z) t)) t_2))))
double code(double x, double y, double z, double t) {
double t_1 = (y - x) * (z / t);
double t_2 = x + ((y - x) / (t / z));
double tmp;
if (t_1 < -1013646692435.8867) {
tmp = t_2;
} else if (t_1 < 0.0) {
tmp = x + (((y - x) * z) / t);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y - x) * (z / t)
t_2 = x + ((y - x) / (t / z))
if (t_1 < (-1013646692435.8867d0)) then
tmp = t_2
else if (t_1 < 0.0d0) then
tmp = x + (((y - x) * z) / t)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y - x) * (z / t);
double t_2 = x + ((y - x) / (t / z));
double tmp;
if (t_1 < -1013646692435.8867) {
tmp = t_2;
} else if (t_1 < 0.0) {
tmp = x + (((y - x) * z) / t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - x) * (z / t) t_2 = x + ((y - x) / (t / z)) tmp = 0 if t_1 < -1013646692435.8867: tmp = t_2 elif t_1 < 0.0: tmp = x + (((y - x) * z) / t) else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - x) * Float64(z / t)) t_2 = Float64(x + Float64(Float64(y - x) / Float64(t / z))) tmp = 0.0 if (t_1 < -1013646692435.8867) tmp = t_2; elseif (t_1 < 0.0) tmp = Float64(x + Float64(Float64(Float64(y - x) * z) / t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - x) * (z / t); t_2 = x + ((y - x) / (t / z)); tmp = 0.0; if (t_1 < -1013646692435.8867) tmp = t_2; elseif (t_1 < 0.0) tmp = x + (((y - x) * z) / t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$1, -1013646692435.8867], t$95$2, If[Less[t$95$1, 0.0], N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) \cdot \frac{z}{t}\\
t_2 := x + \frac{y - x}{\frac{t}{z}}\\
\mathbf{if}\;t\_1 < -1013646692435.8867:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 < 0:\\
\;\;\;\;x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024324
(FPCore (x y z t)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:tickPosition from plot-0.2.3.4"
:precision binary64
:alt
(! :herbie-platform default (if (< (* (- y x) (/ z t)) -10136466924358867/10000) (+ x (/ (- y x) (/ t z))) (if (< (* (- y x) (/ z t)) 0) (+ x (/ (* (- y x) z) t)) (+ x (/ (- y x) (/ t z))))))
(+ x (* (- y x) (/ z t))))