
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (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 / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Initial program 98.4%
clear-num98.4%
un-div-inv98.7%
Applied egg-rr98.7%
Final simplification98.7%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -4.2e+155)
(and (not (<= t -1.8e+61))
(or (<= t -1.35e-85) (not (<= t 4.4e+41)))))
(+ x y)
(+ x (* y (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.2e+155) || (!(t <= -1.8e+61) && ((t <= -1.35e-85) || !(t <= 4.4e+41)))) {
tmp = x + y;
} else {
tmp = x + (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 ((t <= (-4.2d+155)) .or. (.not. (t <= (-1.8d+61))) .and. (t <= (-1.35d-85)) .or. (.not. (t <= 4.4d+41))) then
tmp = x + y
else
tmp = x + (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 ((t <= -4.2e+155) || (!(t <= -1.8e+61) && ((t <= -1.35e-85) || !(t <= 4.4e+41)))) {
tmp = x + y;
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.2e+155) or (not (t <= -1.8e+61) and ((t <= -1.35e-85) or not (t <= 4.4e+41))): tmp = x + y else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.2e+155) || (!(t <= -1.8e+61) && ((t <= -1.35e-85) || !(t <= 4.4e+41)))) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.2e+155) || (~((t <= -1.8e+61)) && ((t <= -1.35e-85) || ~((t <= 4.4e+41))))) tmp = x + y; else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.2e+155], And[N[Not[LessEqual[t, -1.8e+61]], $MachinePrecision], Or[LessEqual[t, -1.35e-85], N[Not[LessEqual[t, 4.4e+41]], $MachinePrecision]]]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+155} \lor \neg \left(t \leq -1.8 \cdot 10^{+61}\right) \land \left(t \leq -1.35 \cdot 10^{-85} \lor \neg \left(t \leq 4.4 \cdot 10^{+41}\right)\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if t < -4.2e155 or -1.80000000000000005e61 < t < -1.3500000000000001e-85 or 4.3999999999999998e41 < t Initial program 100.0%
Taylor expanded in t around inf 83.2%
if -4.2e155 < t < -1.80000000000000005e61 or -1.3500000000000001e-85 < t < 4.3999999999999998e41Initial program 97.1%
Taylor expanded in t around 0 73.8%
associate-/l*74.0%
Simplified74.0%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.2e+155)
(+ x y)
(if (<= t -1.12e+61)
(+ x (* y (/ z a)))
(if (or (<= t -1.4e-85) (not (<= t 3.7e+41)))
(+ x y)
(+ x (* z (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -1.12e+61) {
tmp = x + (y * (z / a));
} else if ((t <= -1.4e-85) || !(t <= 3.7e+41)) {
tmp = x + y;
} else {
tmp = x + (z * (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 (t <= (-4.2d+155)) then
tmp = x + y
else if (t <= (-1.12d+61)) then
tmp = x + (y * (z / a))
else if ((t <= (-1.4d-85)) .or. (.not. (t <= 3.7d+41))) then
tmp = x + y
else
tmp = x + (z * (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 (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -1.12e+61) {
tmp = x + (y * (z / a));
} else if ((t <= -1.4e-85) || !(t <= 3.7e+41)) {
tmp = x + y;
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.2e+155: tmp = x + y elif t <= -1.12e+61: tmp = x + (y * (z / a)) elif (t <= -1.4e-85) or not (t <= 3.7e+41): tmp = x + y else: tmp = x + (z * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.2e+155) tmp = Float64(x + y); elseif (t <= -1.12e+61) tmp = Float64(x + Float64(y * Float64(z / a))); elseif ((t <= -1.4e-85) || !(t <= 3.7e+41)) tmp = Float64(x + y); else tmp = Float64(x + Float64(z * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.2e+155) tmp = x + y; elseif (t <= -1.12e+61) tmp = x + (y * (z / a)); elseif ((t <= -1.4e-85) || ~((t <= 3.7e+41))) tmp = x + y; else tmp = x + (z * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.2e+155], N[(x + y), $MachinePrecision], If[LessEqual[t, -1.12e+61], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.4e-85], N[Not[LessEqual[t, 3.7e+41]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -1.12 \cdot 10^{+61}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-85} \lor \neg \left(t \leq 3.7 \cdot 10^{+41}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -4.2e155 or -1.12e61 < t < -1.40000000000000008e-85 or 3.69999999999999981e41 < t Initial program 100.0%
Taylor expanded in t around inf 83.2%
if -4.2e155 < t < -1.12e61Initial program 99.7%
Taylor expanded in t around 0 56.0%
associate-/l*68.1%
Simplified68.1%
if -1.40000000000000008e-85 < t < 3.69999999999999981e41Initial program 96.5%
Taylor expanded in t around 0 77.9%
*-commutative77.9%
associate-/l*77.8%
Applied egg-rr77.8%
Final simplification79.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.2e+155)
(+ x y)
(if (<= t -1.8e+61)
(+ x (/ z (/ a y)))
(if (or (<= t -1.4e-85) (not (<= t 3.4e+41)))
(+ x y)
(+ x (* z (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -1.8e+61) {
tmp = x + (z / (a / y));
} else if ((t <= -1.4e-85) || !(t <= 3.4e+41)) {
tmp = x + y;
} else {
tmp = x + (z * (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 (t <= (-4.2d+155)) then
tmp = x + y
else if (t <= (-1.8d+61)) then
tmp = x + (z / (a / y))
else if ((t <= (-1.4d-85)) .or. (.not. (t <= 3.4d+41))) then
tmp = x + y
else
tmp = x + (z * (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 (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -1.8e+61) {
tmp = x + (z / (a / y));
} else if ((t <= -1.4e-85) || !(t <= 3.4e+41)) {
tmp = x + y;
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.2e+155: tmp = x + y elif t <= -1.8e+61: tmp = x + (z / (a / y)) elif (t <= -1.4e-85) or not (t <= 3.4e+41): tmp = x + y else: tmp = x + (z * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.2e+155) tmp = Float64(x + y); elseif (t <= -1.8e+61) tmp = Float64(x + Float64(z / Float64(a / y))); elseif ((t <= -1.4e-85) || !(t <= 3.4e+41)) tmp = Float64(x + y); else tmp = Float64(x + Float64(z * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.2e+155) tmp = x + y; elseif (t <= -1.8e+61) tmp = x + (z / (a / y)); elseif ((t <= -1.4e-85) || ~((t <= 3.4e+41))) tmp = x + y; else tmp = x + (z * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.2e+155], N[(x + y), $MachinePrecision], If[LessEqual[t, -1.8e+61], N[(x + N[(z / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.4e-85], N[Not[LessEqual[t, 3.4e+41]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{+61}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y}}\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-85} \lor \neg \left(t \leq 3.4 \cdot 10^{+41}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -4.2e155 or -1.80000000000000005e61 < t < -1.40000000000000008e-85 or 3.39999999999999998e41 < t Initial program 100.0%
Taylor expanded in t around inf 83.2%
if -4.2e155 < t < -1.80000000000000005e61Initial program 99.7%
clear-num99.6%
un-div-inv99.6%
Applied egg-rr99.6%
Taylor expanded in t around 0 68.0%
associate-/r/68.0%
Applied egg-rr68.0%
*-commutative68.0%
clear-num68.1%
un-div-inv68.1%
Applied egg-rr68.1%
if -1.40000000000000008e-85 < t < 3.39999999999999998e41Initial program 96.5%
Taylor expanded in t around 0 77.9%
*-commutative77.9%
associate-/l*77.8%
Applied egg-rr77.8%
Final simplification79.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.2e+155)
(+ x y)
(if (<= t -3.7e+60)
(+ x (/ z (/ a y)))
(if (or (<= t -1.4e-85) (not (<= t 3.4e+41)))
(+ x y)
(+ x (/ (* y z) a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -3.7e+60) {
tmp = x + (z / (a / y));
} else if ((t <= -1.4e-85) || !(t <= 3.4e+41)) {
tmp = x + y;
} else {
tmp = x + ((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 (t <= (-4.2d+155)) then
tmp = x + y
else if (t <= (-3.7d+60)) then
tmp = x + (z / (a / y))
else if ((t <= (-1.4d-85)) .or. (.not. (t <= 3.4d+41))) then
tmp = x + y
else
tmp = x + ((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 (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -3.7e+60) {
tmp = x + (z / (a / y));
} else if ((t <= -1.4e-85) || !(t <= 3.4e+41)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.2e+155: tmp = x + y elif t <= -3.7e+60: tmp = x + (z / (a / y)) elif (t <= -1.4e-85) or not (t <= 3.4e+41): tmp = x + y else: tmp = x + ((y * z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.2e+155) tmp = Float64(x + y); elseif (t <= -3.7e+60) tmp = Float64(x + Float64(z / Float64(a / y))); elseif ((t <= -1.4e-85) || !(t <= 3.4e+41)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.2e+155) tmp = x + y; elseif (t <= -3.7e+60) tmp = x + (z / (a / y)); elseif ((t <= -1.4e-85) || ~((t <= 3.4e+41))) tmp = x + y; else tmp = x + ((y * z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.2e+155], N[(x + y), $MachinePrecision], If[LessEqual[t, -3.7e+60], N[(x + N[(z / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.4e-85], N[Not[LessEqual[t, 3.4e+41]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{+60}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y}}\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-85} \lor \neg \left(t \leq 3.4 \cdot 10^{+41}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\end{array}
\end{array}
if t < -4.2e155 or -3.69999999999999988e60 < t < -1.40000000000000008e-85 or 3.39999999999999998e41 < t Initial program 100.0%
Taylor expanded in t around inf 83.2%
if -4.2e155 < t < -3.69999999999999988e60Initial program 99.7%
clear-num99.6%
un-div-inv99.6%
Applied egg-rr99.6%
Taylor expanded in t around 0 68.0%
associate-/r/68.0%
Applied egg-rr68.0%
*-commutative68.0%
clear-num68.1%
un-div-inv68.1%
Applied egg-rr68.1%
if -1.40000000000000008e-85 < t < 3.39999999999999998e41Initial program 96.5%
Taylor expanded in t around 0 77.9%
Final simplification79.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.5e+155)
(+ x y)
(if (<= t -1.4e-85)
(- x (* y (/ z t)))
(if (<= t 3.8e+41) (+ x (/ (* y z) a)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.5e+155) {
tmp = x + y;
} else if (t <= -1.4e-85) {
tmp = x - (y * (z / t));
} else if (t <= 3.8e+41) {
tmp = x + ((y * z) / 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 (t <= (-4.5d+155)) then
tmp = x + y
else if (t <= (-1.4d-85)) then
tmp = x - (y * (z / t))
else if (t <= 3.8d+41) then
tmp = x + ((y * z) / 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 (t <= -4.5e+155) {
tmp = x + y;
} else if (t <= -1.4e-85) {
tmp = x - (y * (z / t));
} else if (t <= 3.8e+41) {
tmp = x + ((y * z) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.5e+155: tmp = x + y elif t <= -1.4e-85: tmp = x - (y * (z / t)) elif t <= 3.8e+41: tmp = x + ((y * z) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.5e+155) tmp = Float64(x + y); elseif (t <= -1.4e-85) tmp = Float64(x - Float64(y * Float64(z / t))); elseif (t <= 3.8e+41) tmp = Float64(x + Float64(Float64(y * z) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.5e+155) tmp = x + y; elseif (t <= -1.4e-85) tmp = x - (y * (z / t)); elseif (t <= 3.8e+41) tmp = x + ((y * z) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.5e+155], N[(x + y), $MachinePrecision], If[LessEqual[t, -1.4e-85], N[(x - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+41], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{+155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-85}:\\
\;\;\;\;x - y \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+41}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -4.49999999999999973e155 or 3.8000000000000001e41 < t Initial program 100.0%
Taylor expanded in t around inf 90.3%
if -4.49999999999999973e155 < t < -1.40000000000000008e-85Initial program 99.9%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 79.1%
Taylor expanded in a around 0 67.3%
mul-1-neg67.3%
unsub-neg67.3%
associate-/l*67.3%
Simplified67.3%
if -1.40000000000000008e-85 < t < 3.8000000000000001e41Initial program 96.5%
Taylor expanded in t around 0 77.9%
Final simplification79.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.2e+155)
(+ x y)
(if (<= t -6.4e-86)
(- x (/ y (/ t z)))
(if (<= t 3.15e+41) (+ x (/ (* y z) a)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -6.4e-86) {
tmp = x - (y / (t / z));
} else if (t <= 3.15e+41) {
tmp = x + ((y * z) / 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 (t <= (-4.2d+155)) then
tmp = x + y
else if (t <= (-6.4d-86)) then
tmp = x - (y / (t / z))
else if (t <= 3.15d+41) then
tmp = x + ((y * z) / 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 (t <= -4.2e+155) {
tmp = x + y;
} else if (t <= -6.4e-86) {
tmp = x - (y / (t / z));
} else if (t <= 3.15e+41) {
tmp = x + ((y * z) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.2e+155: tmp = x + y elif t <= -6.4e-86: tmp = x - (y / (t / z)) elif t <= 3.15e+41: tmp = x + ((y * z) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.2e+155) tmp = Float64(x + y); elseif (t <= -6.4e-86) tmp = Float64(x - Float64(y / Float64(t / z))); elseif (t <= 3.15e+41) tmp = Float64(x + Float64(Float64(y * z) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.2e+155) tmp = x + y; elseif (t <= -6.4e-86) tmp = x - (y / (t / z)); elseif (t <= 3.15e+41) tmp = x + ((y * z) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.2e+155], N[(x + y), $MachinePrecision], If[LessEqual[t, -6.4e-86], N[(x - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.15e+41], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+155}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-86}:\\
\;\;\;\;x - \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 3.15 \cdot 10^{+41}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -4.2e155 or 3.1499999999999999e41 < t Initial program 100.0%
Taylor expanded in t around inf 90.3%
if -4.2e155 < t < -6.40000000000000011e-86Initial program 99.9%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 79.1%
Taylor expanded in a around 0 67.3%
neg-mul-167.3%
distribute-neg-frac267.3%
Simplified67.3%
if -6.40000000000000011e-86 < t < 3.1499999999999999e41Initial program 96.5%
Taylor expanded in t around 0 77.9%
Final simplification79.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -5e-158) (not (<= t 2.3e-65))) (+ x (* y (/ t (- t a)))) (+ x (* z (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -5e-158) || !(t <= 2.3e-65)) {
tmp = x + (y * (t / (t - a)));
} else {
tmp = x + (z * (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 ((t <= (-5d-158)) .or. (.not. (t <= 2.3d-65))) then
tmp = x + (y * (t / (t - a)))
else
tmp = x + (z * (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 ((t <= -5e-158) || !(t <= 2.3e-65)) {
tmp = x + (y * (t / (t - a)));
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -5e-158) or not (t <= 2.3e-65): tmp = x + (y * (t / (t - a))) else: tmp = x + (z * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -5e-158) || !(t <= 2.3e-65)) tmp = Float64(x + Float64(y * Float64(t / Float64(t - a)))); else tmp = Float64(x + Float64(z * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -5e-158) || ~((t <= 2.3e-65))) tmp = x + (y * (t / (t - a))); else tmp = x + (z * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5e-158], N[Not[LessEqual[t, 2.3e-65]], $MachinePrecision]], N[(x + N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{-158} \lor \neg \left(t \leq 2.3 \cdot 10^{-65}\right):\\
\;\;\;\;x + y \cdot \frac{t}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -4.99999999999999972e-158 or 2.3e-65 < t Initial program 99.9%
Taylor expanded in z around 0 69.8%
mul-1-neg69.8%
associate-/l*78.8%
distribute-lft-neg-in78.8%
Simplified78.8%
associate-*r/69.8%
frac-2neg69.8%
add-sqr-sqrt36.9%
sqrt-unprod39.0%
sqr-neg39.0%
sqrt-unprod21.0%
add-sqr-sqrt46.8%
distribute-lft-neg-out46.8%
*-commutative46.8%
add-sqr-sqrt25.8%
sqrt-unprod39.3%
sqr-neg39.3%
sqrt-unprod32.8%
add-sqr-sqrt69.8%
sub-neg69.8%
distribute-neg-in69.8%
add-sqr-sqrt36.9%
sqrt-unprod57.2%
sqr-neg57.2%
sqrt-unprod24.0%
add-sqr-sqrt52.3%
add-sqr-sqrt28.2%
sqrt-unprod56.4%
sqr-neg56.4%
sqrt-unprod32.8%
add-sqr-sqrt69.8%
Applied egg-rr69.8%
associate-/l*81.5%
+-commutative81.5%
unsub-neg81.5%
Simplified81.5%
if -4.99999999999999972e-158 < t < 2.3e-65Initial program 95.0%
Taylor expanded in t around 0 84.0%
*-commutative84.0%
associate-/l*85.1%
Applied egg-rr85.1%
Final simplification82.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.2e+52) (not (<= z 3.6e+67))) (+ x (* y (/ z (- a t)))) (+ x (* y (/ t (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.2e+52) || !(z <= 3.6e+67)) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x + (y * (t / (t - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.2d+52)) .or. (.not. (z <= 3.6d+67))) then
tmp = x + (y * (z / (a - t)))
else
tmp = x + (y * (t / (t - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.2e+52) || !(z <= 3.6e+67)) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x + (y * (t / (t - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.2e+52) or not (z <= 3.6e+67): tmp = x + (y * (z / (a - t))) else: tmp = x + (y * (t / (t - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.2e+52) || !(z <= 3.6e+67)) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); else tmp = Float64(x + Float64(y * Float64(t / Float64(t - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.2e+52) || ~((z <= 3.6e+67))) tmp = x + (y * (z / (a - t))); else tmp = x + (y * (t / (t - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.2e+52], N[Not[LessEqual[z, 3.6e+67]], $MachinePrecision]], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+52} \lor \neg \left(z \leq 3.6 \cdot 10^{+67}\right):\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{t - a}\\
\end{array}
\end{array}
if z < -1.2e52 or 3.5999999999999999e67 < z Initial program 96.9%
Taylor expanded in z around inf 85.6%
associate-/l*92.0%
Simplified92.0%
if -1.2e52 < z < 3.5999999999999999e67Initial program 99.3%
Taylor expanded in z around 0 79.0%
mul-1-neg79.0%
associate-/l*88.0%
distribute-lft-neg-in88.0%
Simplified88.0%
associate-*r/79.0%
frac-2neg79.0%
add-sqr-sqrt37.7%
sqrt-unprod50.3%
sqr-neg50.3%
sqrt-unprod27.7%
add-sqr-sqrt54.1%
distribute-lft-neg-out54.1%
*-commutative54.1%
add-sqr-sqrt26.4%
sqrt-unprod52.1%
sqr-neg52.1%
sqrt-unprod41.2%
add-sqr-sqrt79.0%
sub-neg79.0%
distribute-neg-in79.0%
add-sqr-sqrt37.7%
sqrt-unprod65.3%
sqr-neg65.3%
sqrt-unprod31.0%
add-sqr-sqrt61.1%
add-sqr-sqrt30.1%
sqrt-unprod66.6%
sqr-neg66.6%
sqrt-unprod41.3%
add-sqr-sqrt79.0%
Applied egg-rr79.0%
associate-/l*90.1%
+-commutative90.1%
unsub-neg90.1%
Simplified90.1%
Final simplification90.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.2e+52) (+ x (* y (/ z (- a t)))) (if (<= z 3.9e+67) (+ x (* y (/ t (- t a)))) (- x (/ y (/ (- t a) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+52) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 3.9e+67) {
tmp = x + (y * (t / (t - a)));
} else {
tmp = x - (y / ((t - a) / 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 <= (-1.2d+52)) then
tmp = x + (y * (z / (a - t)))
else if (z <= 3.9d+67) then
tmp = x + (y * (t / (t - a)))
else
tmp = x - (y / ((t - a) / 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 <= -1.2e+52) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 3.9e+67) {
tmp = x + (y * (t / (t - a)));
} else {
tmp = x - (y / ((t - a) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.2e+52: tmp = x + (y * (z / (a - t))) elif z <= 3.9e+67: tmp = x + (y * (t / (t - a))) else: tmp = x - (y / ((t - a) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.2e+52) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif (z <= 3.9e+67) tmp = Float64(x + Float64(y * Float64(t / Float64(t - a)))); else tmp = Float64(x - Float64(y / Float64(Float64(t - a) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.2e+52) tmp = x + (y * (z / (a - t))); elseif (z <= 3.9e+67) tmp = x + (y * (t / (t - a))); else tmp = x - (y / ((t - a) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.2e+52], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+67], N[(x + N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(N[(t - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+52}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+67}:\\
\;\;\;\;x + y \cdot \frac{t}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t - a}{z}}\\
\end{array}
\end{array}
if z < -1.2e52Initial program 95.9%
Taylor expanded in z around inf 87.3%
associate-/l*94.9%
Simplified94.9%
if -1.2e52 < z < 3.90000000000000007e67Initial program 99.3%
Taylor expanded in z around 0 79.0%
mul-1-neg79.0%
associate-/l*88.0%
distribute-lft-neg-in88.0%
Simplified88.0%
associate-*r/79.0%
frac-2neg79.0%
add-sqr-sqrt37.7%
sqrt-unprod50.3%
sqr-neg50.3%
sqrt-unprod27.7%
add-sqr-sqrt54.1%
distribute-lft-neg-out54.1%
*-commutative54.1%
add-sqr-sqrt26.4%
sqrt-unprod52.1%
sqr-neg52.1%
sqrt-unprod41.2%
add-sqr-sqrt79.0%
sub-neg79.0%
distribute-neg-in79.0%
add-sqr-sqrt37.7%
sqrt-unprod65.3%
sqr-neg65.3%
sqrt-unprod31.0%
add-sqr-sqrt61.1%
add-sqr-sqrt30.1%
sqrt-unprod66.6%
sqr-neg66.6%
sqrt-unprod41.3%
add-sqr-sqrt79.0%
Applied egg-rr79.0%
associate-/l*90.1%
+-commutative90.1%
unsub-neg90.1%
Simplified90.1%
if 3.90000000000000007e67 < z Initial program 97.9%
clear-num97.9%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 91.0%
Final simplification91.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.9e-85) (not (<= t 3.2e+41))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.9e-85) || !(t <= 3.2e+41)) {
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 ((t <= (-3.9d-85)) .or. (.not. (t <= 3.2d+41))) 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 ((t <= -3.9e-85) || !(t <= 3.2e+41)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.9e-85) or not (t <= 3.2e+41): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.9e-85) || !(t <= 3.2e+41)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.9e-85) || ~((t <= 3.2e+41))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.9e-85], N[Not[LessEqual[t, 3.2e+41]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.9 \cdot 10^{-85} \lor \neg \left(t \leq 3.2 \cdot 10^{+41}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -3.89999999999999988e-85 or 3.2000000000000001e41 < t Initial program 99.9%
Taylor expanded in t around inf 78.1%
if -3.89999999999999988e-85 < t < 3.2000000000000001e41Initial program 96.6%
Taylor expanded in t around 0 77.2%
Taylor expanded in x around inf 49.0%
Final simplification65.0%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Initial program 98.4%
Final simplification98.4%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 98.4%
Taylor expanded in t around 0 59.4%
Taylor expanded in x around inf 50.9%
Final simplification50.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- z t) (- a t))))))
(if (< y -8.508084860551241e-17)
t_1
(if (< y 2.894426862792089e-49)
(+ x (* (* y (- z t)) (/ 1.0 (- a t))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * ((z - t) / (a - t)))
if (y < (-8.508084860551241d-17)) then
tmp = t_1
else if (y < 2.894426862792089d-49) then
tmp = x + ((y * (z - t)) * (1.0d0 / (a - t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((z - t) / (a - t))) tmp = 0 if y < -8.508084860551241e-17: tmp = t_1 elif y < 2.894426862792089e-49: tmp = x + ((y * (z - t)) * (1.0 / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = Float64(x + Float64(Float64(y * Float64(z - t)) * Float64(1.0 / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((z - t) / (a - t))); tmp = 0.0; if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = x + ((y * (z - t)) * (1.0 / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -8.508084860551241e-17], t$95$1, If[Less[y, 2.894426862792089e-49], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y < -8.508084860551241 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\
\;\;\;\;x + \left(y \cdot \left(z - t\right)\right) \cdot \frac{1}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024046
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
:precision binary64
:alt
(if (< y -8.508084860551241e-17) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2.894426862792089e-49) (+ x (* (* y (- z t)) (/ 1.0 (- a t)))) (+ x (* y (/ (- z t) (- a t))))))
(+ x (* y (/ (- z t) (- a t)))))