
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (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) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (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) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.6e+82) (not (<= t 6.8e+75))) (+ (- x (* a (/ y t))) (* y (/ z t))) (fma (- z t) (/ y (- t a)) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.6e+82) || !(t <= 6.8e+75)) {
tmp = (x - (a * (y / t))) + (y * (z / t));
} else {
tmp = fma((z - t), (y / (t - a)), (x + y));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.6e+82) || !(t <= 6.8e+75)) tmp = Float64(Float64(x - Float64(a * Float64(y / t))) + Float64(y * Float64(z / t))); else tmp = fma(Float64(z - t), Float64(y / Float64(t - a)), Float64(x + y)); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.6e+82], N[Not[LessEqual[t, 6.8e+75]], $MachinePrecision]], N[(N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+82} \lor \neg \left(t \leq 6.8 \cdot 10^{+75}\right):\\
\;\;\;\;\left(x - a \cdot \frac{y}{t}\right) + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)\\
\end{array}
\end{array}
if t < -2.5999999999999998e82 or 6.80000000000000022e75 < t Initial program 56.9%
Taylor expanded in y around 0 56.9%
associate-*l/68.2%
Simplified68.2%
Taylor expanded in t around inf 76.9%
sub-neg76.9%
mul-1-neg76.9%
unsub-neg76.9%
associate-/l*82.1%
mul-1-neg82.1%
remove-double-neg82.1%
associate-/l*91.0%
Simplified91.0%
if -2.5999999999999998e82 < t < 6.80000000000000022e75Initial program 92.1%
sub-neg92.1%
+-commutative92.1%
distribute-frac-neg92.1%
distribute-rgt-neg-out92.1%
associate-/l*96.2%
fma-define96.2%
distribute-frac-neg96.2%
distribute-neg-frac296.2%
sub-neg96.2%
distribute-neg-in96.2%
remove-double-neg96.2%
+-commutative96.2%
sub-neg96.2%
Simplified96.2%
Final simplification94.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ x y) (* y (/ z a)))))
(if (<= a -2.1)
t_1
(if (<= a 9.5e-99)
(+ x (/ (* y (- z a)) t))
(if (or (<= a 4e-6) (not (<= a 2.7e+37))) t_1 (+ x (* y (/ z t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - (y * (z / a));
double tmp;
if (a <= -2.1) {
tmp = t_1;
} else if (a <= 9.5e-99) {
tmp = x + ((y * (z - a)) / t);
} else if ((a <= 4e-6) || !(a <= 2.7e+37)) {
tmp = t_1;
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (x + y) - (y * (z / a))
if (a <= (-2.1d0)) then
tmp = t_1
else if (a <= 9.5d-99) then
tmp = x + ((y * (z - a)) / t)
else if ((a <= 4d-6) .or. (.not. (a <= 2.7d+37))) then
tmp = t_1
else
tmp = x + (y * (z / t))
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) - (y * (z / a));
double tmp;
if (a <= -2.1) {
tmp = t_1;
} else if (a <= 9.5e-99) {
tmp = x + ((y * (z - a)) / t);
} else if ((a <= 4e-6) || !(a <= 2.7e+37)) {
tmp = t_1;
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - (y * (z / a)) tmp = 0 if a <= -2.1: tmp = t_1 elif a <= 9.5e-99: tmp = x + ((y * (z - a)) / t) elif (a <= 4e-6) or not (a <= 2.7e+37): tmp = t_1 else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(y * Float64(z / a))) tmp = 0.0 if (a <= -2.1) tmp = t_1; elseif (a <= 9.5e-99) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); elseif ((a <= 4e-6) || !(a <= 2.7e+37)) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - (y * (z / a)); tmp = 0.0; if (a <= -2.1) tmp = t_1; elseif (a <= 9.5e-99) tmp = x + ((y * (z - a)) / t); elseif ((a <= 4e-6) || ~((a <= 2.7e+37))) tmp = t_1; else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1], t$95$1, If[LessEqual[a, 9.5e-99], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 4e-6], N[Not[LessEqual[a, 2.7e+37]], $MachinePrecision]], t$95$1, N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -2.1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-99}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-6} \lor \neg \left(a \leq 2.7 \cdot 10^{+37}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if a < -2.10000000000000009 or 9.5000000000000008e-99 < a < 3.99999999999999982e-6 or 2.69999999999999986e37 < a Initial program 80.0%
Taylor expanded in t around 0 78.4%
+-commutative78.4%
associate-/l*86.0%
Simplified86.0%
if -2.10000000000000009 < a < 9.5000000000000008e-99Initial program 77.9%
Taylor expanded in t around inf 85.9%
associate--l+85.9%
distribute-lft-out--85.9%
div-sub86.0%
mul-1-neg86.0%
unsub-neg86.0%
*-commutative86.0%
distribute-lft-out--86.0%
Simplified86.0%
if 3.99999999999999982e-6 < a < 2.69999999999999986e37Initial program 73.4%
Taylor expanded in y around 0 73.4%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in t around inf 73.3%
sub-neg73.3%
mul-1-neg73.3%
unsub-neg73.3%
associate-/l*73.3%
mul-1-neg73.3%
remove-double-neg73.3%
associate-/l*82.4%
Simplified82.4%
Taylor expanded in a around 0 82.0%
+-commutative82.0%
associate-/l*91.0%
Simplified91.0%
Final simplification86.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ x y) (* y (/ z a)))))
(if (<= a -1.35)
t_1
(if (<= a 2.35e-104)
(+ x (/ (* y (- z a)) t))
(if (<= a 3.1e-6)
t_1
(if (<= a 2.7e+37) (+ x (* y (/ z t))) (- (+ x y) (/ y (/ a z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - (y * (z / a));
double tmp;
if (a <= -1.35) {
tmp = t_1;
} else if (a <= 2.35e-104) {
tmp = x + ((y * (z - a)) / t);
} else if (a <= 3.1e-6) {
tmp = t_1;
} else if (a <= 2.7e+37) {
tmp = x + (y * (z / t));
} else {
tmp = (x + y) - (y / (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) :: t_1
real(8) :: tmp
t_1 = (x + y) - (y * (z / a))
if (a <= (-1.35d0)) then
tmp = t_1
else if (a <= 2.35d-104) then
tmp = x + ((y * (z - a)) / t)
else if (a <= 3.1d-6) then
tmp = t_1
else if (a <= 2.7d+37) then
tmp = x + (y * (z / t))
else
tmp = (x + y) - (y / (a / z))
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) - (y * (z / a));
double tmp;
if (a <= -1.35) {
tmp = t_1;
} else if (a <= 2.35e-104) {
tmp = x + ((y * (z - a)) / t);
} else if (a <= 3.1e-6) {
tmp = t_1;
} else if (a <= 2.7e+37) {
tmp = x + (y * (z / t));
} else {
tmp = (x + y) - (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - (y * (z / a)) tmp = 0 if a <= -1.35: tmp = t_1 elif a <= 2.35e-104: tmp = x + ((y * (z - a)) / t) elif a <= 3.1e-6: tmp = t_1 elif a <= 2.7e+37: tmp = x + (y * (z / t)) else: tmp = (x + y) - (y / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(y * Float64(z / a))) tmp = 0.0 if (a <= -1.35) tmp = t_1; elseif (a <= 2.35e-104) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); elseif (a <= 3.1e-6) tmp = t_1; elseif (a <= 2.7e+37) tmp = Float64(x + Float64(y * Float64(z / t))); else tmp = Float64(Float64(x + y) - Float64(y / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - (y * (z / a)); tmp = 0.0; if (a <= -1.35) tmp = t_1; elseif (a <= 2.35e-104) tmp = x + ((y * (z - a)) / t); elseif (a <= 3.1e-6) tmp = t_1; elseif (a <= 2.7e+37) tmp = x + (y * (z / t)); else tmp = (x + y) - (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35], t$95$1, If[LessEqual[a, 2.35e-104], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-6], t$95$1, If[LessEqual[a, 2.7e+37], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -1.35:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{-104}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.3500000000000001 or 2.35e-104 < a < 3.1e-6Initial program 77.1%
Taylor expanded in t around 0 74.4%
+-commutative74.4%
associate-/l*81.1%
Simplified81.1%
if -1.3500000000000001 < a < 2.35e-104Initial program 77.9%
Taylor expanded in t around inf 85.9%
associate--l+85.9%
distribute-lft-out--85.9%
div-sub86.0%
mul-1-neg86.0%
unsub-neg86.0%
*-commutative86.0%
distribute-lft-out--86.0%
Simplified86.0%
if 3.1e-6 < a < 2.69999999999999986e37Initial program 73.4%
Taylor expanded in y around 0 73.4%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in t around inf 73.3%
sub-neg73.3%
mul-1-neg73.3%
unsub-neg73.3%
associate-/l*73.3%
mul-1-neg73.3%
remove-double-neg73.3%
associate-/l*82.4%
Simplified82.4%
Taylor expanded in a around 0 82.0%
+-commutative82.0%
associate-/l*91.0%
Simplified91.0%
if 2.69999999999999986e37 < a Initial program 83.7%
Taylor expanded in t around 0 83.5%
+-commutative83.5%
associate-/l*92.2%
Simplified92.2%
clear-num92.2%
un-div-inv92.3%
Applied egg-rr92.3%
Final simplification86.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.8e+251)
(* (/ y t) z)
(if (<= z 9.2e+80)
(+ x y)
(if (<= z 3e+144)
(* (/ z a) (- y))
(if (<= z 9.6e+179) x (* y (/ z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 9.2e+80) {
tmp = x + y;
} else if (z <= 3e+144) {
tmp = (z / a) * -y;
} else if (z <= 9.6e+179) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+251)) then
tmp = (y / t) * z
else if (z <= 9.2d+80) then
tmp = x + y
else if (z <= 3d+144) then
tmp = (z / a) * -y
else if (z <= 9.6d+179) then
tmp = x
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 9.2e+80) {
tmp = x + y;
} else if (z <= 3e+144) {
tmp = (z / a) * -y;
} else if (z <= 9.6e+179) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+251: tmp = (y / t) * z elif z <= 9.2e+80: tmp = x + y elif z <= 3e+144: tmp = (z / a) * -y elif z <= 9.6e+179: tmp = x else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+251) tmp = Float64(Float64(y / t) * z); elseif (z <= 9.2e+80) tmp = Float64(x + y); elseif (z <= 3e+144) tmp = Float64(Float64(z / a) * Float64(-y)); elseif (z <= 9.6e+179) tmp = x; else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+251) tmp = (y / t) * z; elseif (z <= 9.2e+80) tmp = x + y; elseif (z <= 3e+144) tmp = (z / a) * -y; elseif (z <= 9.6e+179) tmp = x; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+251], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 9.2e+80], N[(x + y), $MachinePrecision], If[LessEqual[z, 3e+144], N[(N[(z / a), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[z, 9.6e+179], x, N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+251}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+80}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+144}:\\
\;\;\;\;\frac{z}{a} \cdot \left(-y\right)\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{+179}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -2.8e251Initial program 81.9%
sub-neg81.9%
+-commutative81.9%
distribute-frac-neg81.9%
distribute-rgt-neg-out81.9%
associate-/l*93.9%
fma-define93.8%
distribute-frac-neg93.8%
distribute-neg-frac293.8%
sub-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
+-commutative93.8%
sub-neg93.8%
Simplified93.8%
Taylor expanded in z around inf 63.9%
associate-/l*63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
associate-/r/75.6%
Simplified75.6%
Taylor expanded in t around inf 63.5%
if -2.8e251 < z < 9.20000000000000016e80Initial program 79.3%
Taylor expanded in a around inf 70.4%
+-commutative70.4%
Simplified70.4%
if 9.20000000000000016e80 < z < 2.9999999999999999e144Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
distribute-frac-neg84.8%
distribute-rgt-neg-out84.8%
associate-/l*91.7%
fma-define91.6%
distribute-frac-neg91.6%
distribute-neg-frac291.6%
sub-neg91.6%
distribute-neg-in91.6%
remove-double-neg91.6%
+-commutative91.6%
sub-neg91.6%
Simplified91.6%
Taylor expanded in z around inf 74.9%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around 0 60.9%
mul-1-neg60.9%
associate-*r/67.9%
distribute-rgt-neg-in67.9%
mul-1-neg67.9%
associate-*r/67.9%
neg-mul-167.9%
Simplified67.9%
if 2.9999999999999999e144 < z < 9.6000000000000005e179Initial program 71.8%
Taylor expanded in x around inf 67.8%
if 9.6000000000000005e179 < z Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
distribute-frac-neg73.5%
distribute-rgt-neg-out73.5%
associate-/l*85.5%
fma-define86.3%
distribute-frac-neg86.3%
distribute-neg-frac286.3%
sub-neg86.3%
distribute-neg-in86.3%
remove-double-neg86.3%
+-commutative86.3%
sub-neg86.3%
Simplified86.3%
Taylor expanded in z around inf 71.4%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in t around inf 51.3%
associate-/l*55.3%
Simplified55.3%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.2e+251)
(* (/ y t) z)
(if (<= z 1.85e+81)
(+ x y)
(if (<= z 1.8e+144)
(* z (/ y (- a)))
(if (<= z 4.2e+180) x (* y (/ z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+251) {
tmp = (y / t) * z;
} else if (z <= 1.85e+81) {
tmp = x + y;
} else if (z <= 1.8e+144) {
tmp = z * (y / -a);
} else if (z <= 4.2e+180) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.2d+251)) then
tmp = (y / t) * z
else if (z <= 1.85d+81) then
tmp = x + y
else if (z <= 1.8d+144) then
tmp = z * (y / -a)
else if (z <= 4.2d+180) then
tmp = x
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+251) {
tmp = (y / t) * z;
} else if (z <= 1.85e+81) {
tmp = x + y;
} else if (z <= 1.8e+144) {
tmp = z * (y / -a);
} else if (z <= 4.2e+180) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.2e+251: tmp = (y / t) * z elif z <= 1.85e+81: tmp = x + y elif z <= 1.8e+144: tmp = z * (y / -a) elif z <= 4.2e+180: tmp = x else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.2e+251) tmp = Float64(Float64(y / t) * z); elseif (z <= 1.85e+81) tmp = Float64(x + y); elseif (z <= 1.8e+144) tmp = Float64(z * Float64(y / Float64(-a))); elseif (z <= 4.2e+180) tmp = x; else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.2e+251) tmp = (y / t) * z; elseif (z <= 1.85e+81) tmp = x + y; elseif (z <= 1.8e+144) tmp = z * (y / -a); elseif (z <= 4.2e+180) tmp = x; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.2e+251], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 1.85e+81], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.8e+144], N[(z * N[(y / (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+180], x, N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+251}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+144}:\\
\;\;\;\;z \cdot \frac{y}{-a}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+180}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -3.1999999999999997e251Initial program 81.9%
sub-neg81.9%
+-commutative81.9%
distribute-frac-neg81.9%
distribute-rgt-neg-out81.9%
associate-/l*93.9%
fma-define93.8%
distribute-frac-neg93.8%
distribute-neg-frac293.8%
sub-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
+-commutative93.8%
sub-neg93.8%
Simplified93.8%
Taylor expanded in z around inf 63.9%
associate-/l*63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
associate-/r/75.6%
Simplified75.6%
Taylor expanded in t around inf 63.5%
if -3.1999999999999997e251 < z < 1.85e81Initial program 79.3%
Taylor expanded in a around inf 70.4%
+-commutative70.4%
Simplified70.4%
if 1.85e81 < z < 1.7999999999999999e144Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
distribute-frac-neg84.8%
distribute-rgt-neg-out84.8%
associate-/l*91.7%
fma-define91.6%
distribute-frac-neg91.6%
distribute-neg-frac291.6%
sub-neg91.6%
distribute-neg-in91.6%
remove-double-neg91.6%
+-commutative91.6%
sub-neg91.6%
Simplified91.6%
Taylor expanded in z around inf 74.9%
associate-/l*82.0%
Simplified82.0%
clear-num81.9%
un-div-inv82.0%
Applied egg-rr82.0%
associate-/r/82.0%
Simplified82.0%
Taylor expanded in t around 0 68.0%
associate-*r/68.0%
neg-mul-168.0%
Simplified68.0%
if 1.7999999999999999e144 < z < 4.1999999999999999e180Initial program 71.8%
Taylor expanded in x around inf 67.8%
if 4.1999999999999999e180 < z Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
distribute-frac-neg73.5%
distribute-rgt-neg-out73.5%
associate-/l*85.5%
fma-define86.3%
distribute-frac-neg86.3%
distribute-neg-frac286.3%
sub-neg86.3%
distribute-neg-in86.3%
remove-double-neg86.3%
+-commutative86.3%
sub-neg86.3%
Simplified86.3%
Taylor expanded in z around inf 71.4%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in t around inf 51.3%
associate-/l*55.3%
Simplified55.3%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.8e+251)
(* (/ y t) z)
(if (<= z 1.85e+81)
(+ x y)
(if (<= z 1.42e+144)
(/ y (/ a (- z)))
(if (<= z 1.7e+180) x (* y (/ z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 1.85e+81) {
tmp = x + y;
} else if (z <= 1.42e+144) {
tmp = y / (a / -z);
} else if (z <= 1.7e+180) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+251)) then
tmp = (y / t) * z
else if (z <= 1.85d+81) then
tmp = x + y
else if (z <= 1.42d+144) then
tmp = y / (a / -z)
else if (z <= 1.7d+180) then
tmp = x
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 1.85e+81) {
tmp = x + y;
} else if (z <= 1.42e+144) {
tmp = y / (a / -z);
} else if (z <= 1.7e+180) {
tmp = x;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+251: tmp = (y / t) * z elif z <= 1.85e+81: tmp = x + y elif z <= 1.42e+144: tmp = y / (a / -z) elif z <= 1.7e+180: tmp = x else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+251) tmp = Float64(Float64(y / t) * z); elseif (z <= 1.85e+81) tmp = Float64(x + y); elseif (z <= 1.42e+144) tmp = Float64(y / Float64(a / Float64(-z))); elseif (z <= 1.7e+180) tmp = x; else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+251) tmp = (y / t) * z; elseif (z <= 1.85e+81) tmp = x + y; elseif (z <= 1.42e+144) tmp = y / (a / -z); elseif (z <= 1.7e+180) tmp = x; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+251], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 1.85e+81], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.42e+144], N[(y / N[(a / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+180], x, N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+251}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{+144}:\\
\;\;\;\;\frac{y}{\frac{a}{-z}}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+180}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -2.8e251Initial program 81.9%
sub-neg81.9%
+-commutative81.9%
distribute-frac-neg81.9%
distribute-rgt-neg-out81.9%
associate-/l*93.9%
fma-define93.8%
distribute-frac-neg93.8%
distribute-neg-frac293.8%
sub-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
+-commutative93.8%
sub-neg93.8%
Simplified93.8%
Taylor expanded in z around inf 63.9%
associate-/l*63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
associate-/r/75.6%
Simplified75.6%
Taylor expanded in t around inf 63.5%
if -2.8e251 < z < 1.85e81Initial program 79.3%
Taylor expanded in a around inf 70.4%
+-commutative70.4%
Simplified70.4%
if 1.85e81 < z < 1.42000000000000009e144Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
distribute-frac-neg84.8%
distribute-rgt-neg-out84.8%
associate-/l*91.7%
fma-define91.6%
distribute-frac-neg91.6%
distribute-neg-frac291.6%
sub-neg91.6%
distribute-neg-in91.6%
remove-double-neg91.6%
+-commutative91.6%
sub-neg91.6%
Simplified91.6%
Taylor expanded in z around inf 74.9%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around 0 60.9%
mul-1-neg60.9%
associate-*r/67.9%
distribute-rgt-neg-in67.9%
mul-1-neg67.9%
associate-*r/67.9%
neg-mul-167.9%
Simplified67.9%
*-commutative67.9%
associate-*l/60.9%
add-sqr-sqrt0.0%
sqrt-unprod1.1%
sqr-neg1.1%
sqrt-unprod1.1%
add-sqr-sqrt1.1%
*-commutative1.1%
associate-*l/1.1%
associate-/r/1.0%
frac-2neg1.0%
distribute-frac-neg21.0%
add-sqr-sqrt0.0%
sqrt-unprod68.0%
sqr-neg68.0%
sqrt-unprod67.5%
add-sqr-sqrt68.0%
Applied egg-rr68.0%
if 1.42000000000000009e144 < z < 1.69999999999999992e180Initial program 71.8%
Taylor expanded in x around inf 67.8%
if 1.69999999999999992e180 < z Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
distribute-frac-neg73.5%
distribute-rgt-neg-out73.5%
associate-/l*85.5%
fma-define86.3%
distribute-frac-neg86.3%
distribute-neg-frac286.3%
sub-neg86.3%
distribute-neg-in86.3%
remove-double-neg86.3%
+-commutative86.3%
sub-neg86.3%
Simplified86.3%
Taylor expanded in z around inf 71.4%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in t around inf 51.3%
associate-/l*55.3%
Simplified55.3%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -7.8e+186) (not (<= t 1.45e+76))) (+ (- x (* a (/ y t))) (* y (/ z t))) (+ (+ x y) (* y (/ z (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7.8e+186) || !(t <= 1.45e+76)) {
tmp = (x - (a * (y / t))) + (y * (z / t));
} else {
tmp = (x + y) + (y * (z / (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 ((t <= (-7.8d+186)) .or. (.not. (t <= 1.45d+76))) then
tmp = (x - (a * (y / t))) + (y * (z / t))
else
tmp = (x + y) + (y * (z / (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 ((t <= -7.8e+186) || !(t <= 1.45e+76)) {
tmp = (x - (a * (y / t))) + (y * (z / t));
} else {
tmp = (x + y) + (y * (z / (t - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -7.8e+186) or not (t <= 1.45e+76): tmp = (x - (a * (y / t))) + (y * (z / t)) else: tmp = (x + y) + (y * (z / (t - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -7.8e+186) || !(t <= 1.45e+76)) tmp = Float64(Float64(x - Float64(a * Float64(y / t))) + Float64(y * Float64(z / t))); else tmp = Float64(Float64(x + y) + Float64(y * Float64(z / Float64(t - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -7.8e+186) || ~((t <= 1.45e+76))) tmp = (x - (a * (y / t))) + (y * (z / t)); else tmp = (x + y) + (y * (z / (t - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7.8e+186], N[Not[LessEqual[t, 1.45e+76]], $MachinePrecision]], N[(N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+186} \lor \neg \left(t \leq 1.45 \cdot 10^{+76}\right):\\
\;\;\;\;\left(x - a \cdot \frac{y}{t}\right) + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) + y \cdot \frac{z}{t - a}\\
\end{array}
\end{array}
if t < -7.8000000000000002e186 or 1.4500000000000001e76 < t Initial program 50.6%
Taylor expanded in y around 0 50.6%
associate-*l/64.8%
Simplified64.8%
Taylor expanded in t around inf 74.6%
sub-neg74.6%
mul-1-neg74.6%
unsub-neg74.6%
associate-/l*81.1%
mul-1-neg81.1%
remove-double-neg81.1%
associate-/l*92.3%
Simplified92.3%
if -7.8000000000000002e186 < t < 1.4500000000000001e76Initial program 90.9%
Taylor expanded in z around inf 89.8%
associate-/l*91.9%
Simplified91.9%
Final simplification92.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.7e+86) (not (<= t 1.4e+76))) (+ (- x (* a (/ y t))) (* y (/ z t))) (- (+ x y) (* (- z t) (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.7e+86) || !(t <= 1.4e+76)) {
tmp = (x - (a * (y / t))) + (y * (z / t));
} else {
tmp = (x + y) - ((z - t) * (y / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-3.7d+86)) .or. (.not. (t <= 1.4d+76))) then
tmp = (x - (a * (y / t))) + (y * (z / t))
else
tmp = (x + y) - ((z - t) * (y / (a - t)))
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.7e+86) || !(t <= 1.4e+76)) {
tmp = (x - (a * (y / t))) + (y * (z / t));
} else {
tmp = (x + y) - ((z - t) * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.7e+86) or not (t <= 1.4e+76): tmp = (x - (a * (y / t))) + (y * (z / t)) else: tmp = (x + y) - ((z - t) * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.7e+86) || !(t <= 1.4e+76)) tmp = Float64(Float64(x - Float64(a * Float64(y / t))) + Float64(y * Float64(z / t))); else tmp = Float64(Float64(x + y) - Float64(Float64(z - t) * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.7e+86) || ~((t <= 1.4e+76))) tmp = (x - (a * (y / t))) + (y * (z / t)); else tmp = (x + y) - ((z - t) * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.7e+86], N[Not[LessEqual[t, 1.4e+76]], $MachinePrecision]], N[(N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] - N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.7 \cdot 10^{+86} \lor \neg \left(t \leq 1.4 \cdot 10^{+76}\right):\\
\;\;\;\;\left(x - a \cdot \frac{y}{t}\right) + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(z - t\right) \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if t < -3.69999999999999992e86 or 1.3999999999999999e76 < t Initial program 56.9%
Taylor expanded in y around 0 56.9%
associate-*l/68.2%
Simplified68.2%
Taylor expanded in t around inf 76.9%
sub-neg76.9%
mul-1-neg76.9%
unsub-neg76.9%
associate-/l*82.1%
mul-1-neg82.1%
remove-double-neg82.1%
associate-/l*91.0%
Simplified91.0%
if -3.69999999999999992e86 < t < 1.3999999999999999e76Initial program 92.1%
Taylor expanded in y around 0 92.1%
associate-*l/96.2%
Simplified96.2%
Final simplification94.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.1e-126) (not (<= a 5.5e-141))) (+ (+ x y) (* y (/ z (- t a)))) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.1e-126) || !(a <= 5.5e-141)) {
tmp = (x + y) + (y * (z / (t - a)));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-2.1d-126)) .or. (.not. (a <= 5.5d-141))) then
tmp = (x + y) + (y * (z / (t - a)))
else
tmp = x + ((y * (z - a)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.1e-126) || !(a <= 5.5e-141)) {
tmp = (x + y) + (y * (z / (t - a)));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.1e-126) or not (a <= 5.5e-141): tmp = (x + y) + (y * (z / (t - a))) else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.1e-126) || !(a <= 5.5e-141)) tmp = Float64(Float64(x + y) + Float64(y * Float64(z / Float64(t - a)))); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.1e-126) || ~((a <= 5.5e-141))) tmp = (x + y) + (y * (z / (t - a))); else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.1e-126], N[Not[LessEqual[a, 5.5e-141]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] + N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{-126} \lor \neg \left(a \leq 5.5 \cdot 10^{-141}\right):\\
\;\;\;\;\left(x + y\right) + y \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -2.0999999999999999e-126 or 5.4999999999999998e-141 < a Initial program 79.0%
Taylor expanded in z around inf 81.8%
associate-/l*89.4%
Simplified89.4%
if -2.0999999999999999e-126 < a < 5.4999999999999998e-141Initial program 78.5%
Taylor expanded in t around inf 92.7%
associate--l+92.7%
distribute-lft-out--92.7%
div-sub92.7%
mul-1-neg92.7%
unsub-neg92.7%
*-commutative92.7%
distribute-lft-out--92.7%
Simplified92.7%
Final simplification90.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -16200000.0) (not (<= a 1150000.0))) (+ x y) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -16200000.0) || !(a <= 1150000.0)) {
tmp = x + y;
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-16200000.0d0)) .or. (.not. (a <= 1150000.0d0))) then
tmp = x + y
else
tmp = x + ((y * (z - a)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -16200000.0) || !(a <= 1150000.0)) {
tmp = x + y;
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -16200000.0) or not (a <= 1150000.0): tmp = x + y else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -16200000.0) || !(a <= 1150000.0)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -16200000.0) || ~((a <= 1150000.0))) tmp = x + y; else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -16200000.0], N[Not[LessEqual[a, 1150000.0]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -16200000 \lor \neg \left(a \leq 1150000\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -1.62e7 or 1.15e6 < a Initial program 80.2%
Taylor expanded in a around inf 76.5%
+-commutative76.5%
Simplified76.5%
if -1.62e7 < a < 1.15e6Initial program 77.6%
Taylor expanded in t around inf 77.8%
associate--l+77.8%
distribute-lft-out--77.8%
div-sub77.8%
mul-1-neg77.8%
unsub-neg77.8%
*-commutative77.8%
distribute-lft-out--77.8%
Simplified77.8%
Final simplification77.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.5e+218) (not (<= z 1.85e+81))) (* y (/ z (- t a))) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+218) || !(z <= 1.85e+81)) {
tmp = y * (z / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.5d+218)) .or. (.not. (z <= 1.85d+81))) then
tmp = y * (z / (t - a))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.5e+218) || !(z <= 1.85e+81)) {
tmp = y * (z / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.5e+218) or not (z <= 1.85e+81): tmp = y * (z / (t - a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.5e+218) || !(z <= 1.85e+81)) tmp = Float64(y * Float64(z / Float64(t - a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.5e+218) || ~((z <= 1.85e+81))) tmp = y * (z / (t - a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.5e+218], N[Not[LessEqual[z, 1.85e+81]], $MachinePrecision]], N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+218} \lor \neg \left(z \leq 1.85 \cdot 10^{+81}\right):\\
\;\;\;\;y \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -2.49999999999999991e218 or 1.85e81 < z Initial program 77.5%
sub-neg77.5%
+-commutative77.5%
distribute-frac-neg77.5%
distribute-rgt-neg-out77.5%
associate-/l*88.1%
fma-define88.3%
distribute-frac-neg88.3%
distribute-neg-frac288.3%
sub-neg88.3%
distribute-neg-in88.3%
remove-double-neg88.3%
+-commutative88.3%
sub-neg88.3%
Simplified88.3%
Taylor expanded in z around inf 62.8%
associate-/l*69.2%
Simplified69.2%
if -2.49999999999999991e218 < z < 1.85e81Initial program 79.4%
Taylor expanded in a around inf 72.2%
+-commutative72.2%
Simplified72.2%
Final simplification71.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1e-9) (not (<= a 1150000.0))) (+ x y) (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1e-9) || !(a <= 1150000.0)) {
tmp = x + y;
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1d-9)) .or. (.not. (a <= 1150000.0d0))) then
tmp = x + y
else
tmp = x + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1e-9) || !(a <= 1150000.0)) {
tmp = x + y;
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1e-9) or not (a <= 1150000.0): tmp = x + y else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1e-9) || !(a <= 1150000.0)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1e-9) || ~((a <= 1150000.0))) tmp = x + y; else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1e-9], N[Not[LessEqual[a, 1150000.0]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{-9} \lor \neg \left(a \leq 1150000\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if a < -1.00000000000000006e-9 or 1.15e6 < a Initial program 80.2%
Taylor expanded in a around inf 74.7%
+-commutative74.7%
Simplified74.7%
if -1.00000000000000006e-9 < a < 1.15e6Initial program 77.4%
Taylor expanded in y around 0 77.4%
associate-*l/77.5%
Simplified77.5%
Taylor expanded in t around inf 79.6%
sub-neg79.6%
mul-1-neg79.6%
unsub-neg79.6%
associate-/l*76.2%
mul-1-neg76.2%
remove-double-neg76.2%
associate-/l*74.6%
Simplified74.6%
Taylor expanded in a around 0 76.8%
+-commutative76.8%
associate-/l*75.1%
Simplified75.1%
Final simplification74.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.7e+219) (* z (/ y (- t a))) (if (<= z 1.6e+80) (+ x y) (* y (/ z (- t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+219) {
tmp = z * (y / (t - a));
} else if (z <= 1.6e+80) {
tmp = x + y;
} else {
tmp = y * (z / (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 <= (-3.7d+219)) then
tmp = z * (y / (t - a))
else if (z <= 1.6d+80) then
tmp = x + y
else
tmp = y * (z / (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 <= -3.7e+219) {
tmp = z * (y / (t - a));
} else if (z <= 1.6e+80) {
tmp = x + y;
} else {
tmp = y * (z / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.7e+219: tmp = z * (y / (t - a)) elif z <= 1.6e+80: tmp = x + y else: tmp = y * (z / (t - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.7e+219) tmp = Float64(z * Float64(y / Float64(t - a))); elseif (z <= 1.6e+80) tmp = Float64(x + y); else tmp = Float64(y * Float64(z / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.7e+219) tmp = z * (y / (t - a)); elseif (z <= 1.6e+80) tmp = x + y; else tmp = y * (z / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.7e+219], N[(z * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+80], N[(x + y), $MachinePrecision], N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+219}:\\
\;\;\;\;z \cdot \frac{y}{t - a}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+80}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t - a}\\
\end{array}
\end{array}
if z < -3.7e219Initial program 79.3%
sub-neg79.3%
+-commutative79.3%
distribute-frac-neg79.3%
distribute-rgt-neg-out79.3%
associate-/l*95.7%
fma-define95.6%
distribute-frac-neg95.6%
distribute-neg-frac295.6%
sub-neg95.6%
distribute-neg-in95.6%
remove-double-neg95.6%
+-commutative95.6%
sub-neg95.6%
Simplified95.6%
Taylor expanded in z around inf 58.1%
associate-/l*65.6%
Simplified65.6%
clear-num65.5%
un-div-inv65.7%
Applied egg-rr65.7%
associate-/r/74.1%
Simplified74.1%
if -3.7e219 < z < 1.59999999999999995e80Initial program 79.5%
Taylor expanded in a around inf 71.9%
+-commutative71.9%
Simplified71.9%
if 1.59999999999999995e80 < z Initial program 76.1%
sub-neg76.1%
+-commutative76.1%
distribute-frac-neg76.1%
distribute-rgt-neg-out76.1%
associate-/l*86.0%
fma-define86.4%
distribute-frac-neg86.4%
distribute-neg-frac286.4%
sub-neg86.4%
distribute-neg-in86.4%
remove-double-neg86.4%
+-commutative86.4%
sub-neg86.4%
Simplified86.4%
Taylor expanded in z around inf 64.3%
associate-/l*70.3%
Simplified70.3%
Final simplification71.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.2e+218) (not (<= z 6.8e+180))) (* y (/ z t)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.2e+218) || !(z <= 6.8e+180)) {
tmp = y * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5.2d+218)) .or. (.not. (z <= 6.8d+180))) then
tmp = y * (z / t)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.2e+218) || !(z <= 6.8e+180)) {
tmp = y * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.2e+218) or not (z <= 6.8e+180): tmp = y * (z / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.2e+218) || !(z <= 6.8e+180)) tmp = Float64(y * Float64(z / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5.2e+218) || ~((z <= 6.8e+180))) tmp = y * (z / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.2e+218], N[Not[LessEqual[z, 6.8e+180]], $MachinePrecision]], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+218} \lor \neg \left(z \leq 6.8 \cdot 10^{+180}\right):\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -5.20000000000000004e218 or 6.79999999999999969e180 < z Initial program 76.8%
sub-neg76.8%
+-commutative76.8%
distribute-frac-neg76.8%
distribute-rgt-neg-out76.8%
associate-/l*88.7%
fma-define89.1%
distribute-frac-neg89.1%
distribute-neg-frac289.1%
sub-neg89.1%
distribute-neg-in89.1%
remove-double-neg89.1%
+-commutative89.1%
sub-neg89.1%
Simplified89.1%
Taylor expanded in z around inf 65.6%
associate-/l*73.1%
Simplified73.1%
Taylor expanded in t around inf 51.2%
associate-/l*51.2%
Simplified51.2%
if -5.20000000000000004e218 < z < 6.79999999999999969e180Initial program 79.4%
Taylor expanded in a around inf 68.3%
+-commutative68.3%
Simplified68.3%
Final simplification65.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.8e+251) (* (/ y t) z) (if (<= z 7.2e+180) (+ x y) (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 7.2e+180) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+251)) then
tmp = (y / t) * z
else if (z <= 7.2d+180) then
tmp = x + y
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+251) {
tmp = (y / t) * z;
} else if (z <= 7.2e+180) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+251: tmp = (y / t) * z elif z <= 7.2e+180: tmp = x + y else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+251) tmp = Float64(Float64(y / t) * z); elseif (z <= 7.2e+180) tmp = Float64(x + y); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+251) tmp = (y / t) * z; elseif (z <= 7.2e+180) tmp = x + y; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+251], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 7.2e+180], N[(x + y), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+251}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+180}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -2.8e251Initial program 81.9%
sub-neg81.9%
+-commutative81.9%
distribute-frac-neg81.9%
distribute-rgt-neg-out81.9%
associate-/l*93.9%
fma-define93.8%
distribute-frac-neg93.8%
distribute-neg-frac293.8%
sub-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
+-commutative93.8%
sub-neg93.8%
Simplified93.8%
Taylor expanded in z around inf 63.9%
associate-/l*63.6%
Simplified63.6%
clear-num63.6%
un-div-inv63.6%
Applied egg-rr63.6%
associate-/r/75.6%
Simplified75.6%
Taylor expanded in t around inf 63.5%
if -2.8e251 < z < 7.2000000000000004e180Initial program 79.3%
Taylor expanded in a around inf 66.8%
+-commutative66.8%
Simplified66.8%
if 7.2000000000000004e180 < z Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
distribute-frac-neg73.5%
distribute-rgt-neg-out73.5%
associate-/l*85.5%
fma-define86.3%
distribute-frac-neg86.3%
distribute-neg-frac286.3%
sub-neg86.3%
distribute-neg-in86.3%
remove-double-neg86.3%
+-commutative86.3%
sub-neg86.3%
Simplified86.3%
Taylor expanded in z around inf 71.4%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in t around inf 51.3%
associate-/l*55.3%
Simplified55.3%
Final simplification65.5%
(FPCore (x y z t a) :precision binary64 (+ x y))
double code(double x, double y, double z, double t, double a) {
return x + y;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x + y;
}
def code(x, y, z, t, a): return x + y
function code(x, y, z, t, a) return Float64(x + y) end
function tmp = code(x, y, z, t, a) tmp = x + y; end
code[x_, y_, z_, t_, a_] := N[(x + y), $MachinePrecision]
\begin{array}{l}
\\
x + y
\end{array}
Initial program 78.9%
Taylor expanded in a around inf 59.7%
+-commutative59.7%
Simplified59.7%
Final simplification59.7%
(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 78.9%
Taylor expanded in x around inf 45.9%
Final simplification45.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (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) :: t_2
real(8) :: tmp
t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (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 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024096
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:alt
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))