
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
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 - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
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 - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (or (<= t_2 -2e-271) (not (<= t_2 2e-292)))
(fma (- y z) t_1 x)
(+ t (* (/ (- t x) z) (- a y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if ((t_2 <= -2e-271) || !(t_2 <= 2e-292)) {
tmp = fma((y - z), t_1, x);
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if ((t_2 <= -2e-271) || !(t_2 <= 2e-292)) tmp = fma(Float64(y - z), t_1, x); else tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -2e-271], N[Not[LessEqual[t$95$2, 2e-292]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t\_1\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-271} \lor \neg \left(t\_2 \leq 2 \cdot 10^{-292}\right):\\
\;\;\;\;\mathsf{fma}\left(y - z, t\_1, x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-271 or 2.0000000000000001e-292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.2%
+-commutative90.2%
fma-define90.2%
Simplified90.2%
if -1.99999999999999993e-271 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000001e-292Initial program 3.5%
+-commutative3.5%
fma-define4.1%
Simplified4.1%
Taylor expanded in z around inf 76.3%
associate--l+76.3%
distribute-lft-out--76.3%
div-sub76.4%
mul-1-neg76.4%
unsub-neg76.4%
div-sub76.3%
associate-/l*88.1%
associate-/l*96.8%
distribute-rgt-out--96.8%
Simplified96.8%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-271) (not (<= t_1 2e-292)))
t_1
(+ t (* (/ (- t x) z) (- a y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-271) || !(t_1 <= 2e-292)) {
tmp = t_1;
} else {
tmp = t + (((t - x) / z) * (a - 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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-2d-271)) .or. (.not. (t_1 <= 2d-292))) then
tmp = t_1
else
tmp = t + (((t - x) / z) * (a - y))
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 - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-271) || !(t_1 <= 2e-292)) {
tmp = t_1;
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -2e-271) or not (t_1 <= 2e-292): tmp = t_1 else: tmp = t + (((t - x) / z) * (a - y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -2e-271) || !(t_1 <= 2e-292)) tmp = t_1; else tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -2e-271) || ~((t_1 <= 2e-292))) tmp = t_1; else tmp = t + (((t - x) / z) * (a - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-271], N[Not[LessEqual[t$95$1, 2e-292]], $MachinePrecision]], t$95$1, N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-271} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-292}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999993e-271 or 2.0000000000000001e-292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.2%
if -1.99999999999999993e-271 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000001e-292Initial program 3.5%
+-commutative3.5%
fma-define4.1%
Simplified4.1%
Taylor expanded in z around inf 76.3%
associate--l+76.3%
distribute-lft-out--76.3%
div-sub76.4%
mul-1-neg76.4%
unsub-neg76.4%
div-sub76.3%
associate-/l*88.1%
associate-/l*96.8%
distribute-rgt-out--96.8%
Simplified96.8%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= a -2.1e-21)
t_1
(if (<= a 1.65e-280)
(* x (/ (- y a) z))
(if (<= a 5.5e-93) t (if (<= a 4.6e+75) (* y (/ t (- a z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (a <= -2.1e-21) {
tmp = t_1;
} else if (a <= 1.65e-280) {
tmp = x * ((y - a) / z);
} else if (a <= 5.5e-93) {
tmp = t;
} else if (a <= 4.6e+75) {
tmp = y * (t / (a - z));
} 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 * (1.0d0 - (y / a))
if (a <= (-2.1d-21)) then
tmp = t_1
else if (a <= 1.65d-280) then
tmp = x * ((y - a) / z)
else if (a <= 5.5d-93) then
tmp = t
else if (a <= 4.6d+75) then
tmp = y * (t / (a - z))
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 * (1.0 - (y / a));
double tmp;
if (a <= -2.1e-21) {
tmp = t_1;
} else if (a <= 1.65e-280) {
tmp = x * ((y - a) / z);
} else if (a <= 5.5e-93) {
tmp = t;
} else if (a <= 4.6e+75) {
tmp = y * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if a <= -2.1e-21: tmp = t_1 elif a <= 1.65e-280: tmp = x * ((y - a) / z) elif a <= 5.5e-93: tmp = t elif a <= 4.6e+75: tmp = y * (t / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (a <= -2.1e-21) tmp = t_1; elseif (a <= 1.65e-280) tmp = Float64(x * Float64(Float64(y - a) / z)); elseif (a <= 5.5e-93) tmp = t; elseif (a <= 4.6e+75) tmp = Float64(y * Float64(t / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (a <= -2.1e-21) tmp = t_1; elseif (a <= 1.65e-280) tmp = x * ((y - a) / z); elseif (a <= 5.5e-93) tmp = t; elseif (a <= 4.6e+75) tmp = y * (t / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e-21], t$95$1, If[LessEqual[a, 1.65e-280], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-93], t, If[LessEqual[a, 4.6e+75], N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-280}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-93}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+75}:\\
\;\;\;\;y \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.10000000000000013e-21 or 4.5999999999999997e75 < a Initial program 92.2%
+-commutative92.2%
fma-define92.3%
Simplified92.3%
Taylor expanded in t around 0 51.9%
mul-1-neg51.9%
*-rgt-identity51.9%
associate-/l*60.9%
distribute-rgt-neg-in60.9%
mul-1-neg60.9%
distribute-lft-in60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in z around 0 58.7%
if -2.10000000000000013e-21 < a < 1.64999999999999995e-280Initial program 62.6%
+-commutative62.6%
fma-define62.7%
Simplified62.7%
Taylor expanded in z around inf 77.0%
associate--l+77.0%
distribute-lft-out--77.0%
div-sub77.0%
mul-1-neg77.0%
unsub-neg77.0%
div-sub77.0%
associate-/l*79.8%
associate-/l*77.9%
distribute-rgt-out--79.9%
Simplified79.9%
Taylor expanded in t around 0 36.3%
associate-/l*46.7%
Simplified46.7%
if 1.64999999999999995e-280 < a < 5.49999999999999968e-93Initial program 68.7%
associate-*r/69.1%
clear-num68.8%
Applied egg-rr68.8%
associate-/r/68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in z around inf 46.9%
if 5.49999999999999968e-93 < a < 4.5999999999999997e75Initial program 80.8%
+-commutative80.8%
fma-define80.8%
Simplified80.8%
Taylor expanded in y around inf 64.0%
Taylor expanded in t around inf 44.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.85e+228)
x
(if (<= a -8.6e-119)
(+ x t)
(if (<= a 0.000125) (* x (/ y z)) (if (<= a 2.5e+71) (* y (/ t a)) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.85e+228) {
tmp = x;
} else if (a <= -8.6e-119) {
tmp = x + t;
} else if (a <= 0.000125) {
tmp = x * (y / z);
} else if (a <= 2.5e+71) {
tmp = y * (t / a);
} 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 (a <= (-2.85d+228)) then
tmp = x
else if (a <= (-8.6d-119)) then
tmp = x + t
else if (a <= 0.000125d0) then
tmp = x * (y / z)
else if (a <= 2.5d+71) then
tmp = y * (t / a)
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 (a <= -2.85e+228) {
tmp = x;
} else if (a <= -8.6e-119) {
tmp = x + t;
} else if (a <= 0.000125) {
tmp = x * (y / z);
} else if (a <= 2.5e+71) {
tmp = y * (t / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.85e+228: tmp = x elif a <= -8.6e-119: tmp = x + t elif a <= 0.000125: tmp = x * (y / z) elif a <= 2.5e+71: tmp = y * (t / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.85e+228) tmp = x; elseif (a <= -8.6e-119) tmp = Float64(x + t); elseif (a <= 0.000125) tmp = Float64(x * Float64(y / z)); elseif (a <= 2.5e+71) tmp = Float64(y * Float64(t / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.85e+228) tmp = x; elseif (a <= -8.6e-119) tmp = x + t; elseif (a <= 0.000125) tmp = x * (y / z); elseif (a <= 2.5e+71) tmp = y * (t / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.85e+228], x, If[LessEqual[a, -8.6e-119], N[(x + t), $MachinePrecision], If[LessEqual[a, 0.000125], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.5e+71], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.85 \cdot 10^{+228}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-119}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;a \leq 0.000125:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+71}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.8500000000000001e228 or 2.49999999999999986e71 < a Initial program 98.4%
+-commutative98.4%
fma-define98.4%
Simplified98.4%
Taylor expanded in a around inf 63.1%
if -2.8500000000000001e228 < a < -8.5999999999999999e-119Initial program 80.6%
Taylor expanded in t around inf 69.2%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in z around inf 39.6%
if -8.5999999999999999e-119 < a < 1.25e-4Initial program 67.2%
+-commutative67.2%
fma-define67.4%
Simplified67.4%
Taylor expanded in t around 0 31.3%
mul-1-neg31.3%
*-rgt-identity31.3%
associate-/l*34.4%
distribute-rgt-neg-in34.4%
mul-1-neg34.4%
distribute-lft-in34.3%
mul-1-neg34.3%
unsub-neg34.3%
Simplified34.3%
Taylor expanded in a around 0 40.5%
if 1.25e-4 < a < 2.49999999999999986e71Initial program 77.0%
+-commutative77.0%
fma-define76.9%
Simplified76.9%
Taylor expanded in y around inf 56.0%
Taylor expanded in t around inf 50.7%
Taylor expanded in a around inf 46.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.2e+228)
x
(if (<= a -7.5e-119)
(+ x t)
(if (<= a 7.2e-280) (* x (/ y z)) (if (<= a 7e+77) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.2e+228) {
tmp = x;
} else if (a <= -7.5e-119) {
tmp = x + t;
} else if (a <= 7.2e-280) {
tmp = x * (y / z);
} else if (a <= 7e+77) {
tmp = t;
} 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 (a <= (-3.2d+228)) then
tmp = x
else if (a <= (-7.5d-119)) then
tmp = x + t
else if (a <= 7.2d-280) then
tmp = x * (y / z)
else if (a <= 7d+77) then
tmp = t
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 (a <= -3.2e+228) {
tmp = x;
} else if (a <= -7.5e-119) {
tmp = x + t;
} else if (a <= 7.2e-280) {
tmp = x * (y / z);
} else if (a <= 7e+77) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.2e+228: tmp = x elif a <= -7.5e-119: tmp = x + t elif a <= 7.2e-280: tmp = x * (y / z) elif a <= 7e+77: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.2e+228) tmp = x; elseif (a <= -7.5e-119) tmp = Float64(x + t); elseif (a <= 7.2e-280) tmp = Float64(x * Float64(y / z)); elseif (a <= 7e+77) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.2e+228) tmp = x; elseif (a <= -7.5e-119) tmp = x + t; elseif (a <= 7.2e-280) tmp = x * (y / z); elseif (a <= 7e+77) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e+228], x, If[LessEqual[a, -7.5e-119], N[(x + t), $MachinePrecision], If[LessEqual[a, 7.2e-280], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+77], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+228}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-119}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-280}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+77}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.2000000000000003e228 or 7.0000000000000003e77 < a Initial program 98.3%
+-commutative98.3%
fma-define98.4%
Simplified98.4%
Taylor expanded in a around inf 65.0%
if -3.2000000000000003e228 < a < -7.50000000000000044e-119Initial program 80.6%
Taylor expanded in t around inf 69.2%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in z around inf 39.6%
if -7.50000000000000044e-119 < a < 7.19999999999999989e-280Initial program 60.0%
+-commutative60.0%
fma-define60.3%
Simplified60.3%
Taylor expanded in t around 0 27.6%
mul-1-neg27.6%
*-rgt-identity27.6%
associate-/l*32.7%
distribute-rgt-neg-in32.7%
mul-1-neg32.7%
distribute-lft-in32.6%
mul-1-neg32.6%
unsub-neg32.6%
Simplified32.6%
Taylor expanded in a around 0 50.3%
if 7.19999999999999989e-280 < a < 7.0000000000000003e77Initial program 74.3%
associate-*r/71.0%
clear-num70.8%
Applied egg-rr70.8%
associate-/r/70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in z around inf 34.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9.5e-67) (not (<= a 2.75e-5))) (+ x (* t (/ (- y z) (- a z)))) (- t (/ (* y (- t x)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.5e-67) || !(a <= 2.75e-5)) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t - ((y * (t - x)) / 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 ((a <= (-9.5d-67)) .or. (.not. (a <= 2.75d-5))) then
tmp = x + (t * ((y - z) / (a - z)))
else
tmp = t - ((y * (t - x)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.5e-67) || !(a <= 2.75e-5)) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t - ((y * (t - x)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9.5e-67) or not (a <= 2.75e-5): tmp = x + (t * ((y - z) / (a - z))) else: tmp = t - ((y * (t - x)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9.5e-67) || !(a <= 2.75e-5)) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); else tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9.5e-67) || ~((a <= 2.75e-5))) tmp = x + (t * ((y - z) / (a - z))); else tmp = t - ((y * (t - x)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9.5e-67], N[Not[LessEqual[a, 2.75e-5]], $MachinePrecision]], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{-67} \lor \neg \left(a \leq 2.75 \cdot 10^{-5}\right):\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\end{array}
\end{array}
if a < -9.4999999999999994e-67 or 2.7500000000000001e-5 < a Initial program 88.6%
Taylor expanded in t around inf 71.2%
associate-/l*83.3%
Simplified83.3%
if -9.4999999999999994e-67 < a < 2.7500000000000001e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
Taylor expanded in y around inf 78.1%
Final simplification80.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7e-67)
(+ x (* t (/ (- y z) (- a z))))
(if (<= a 2.8e-5)
(+ t (* (/ (- t x) z) (- a y)))
(+ x (/ t (/ (- a z) (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7e-67) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (a <= 2.8e-5) {
tmp = t + (((t - x) / z) * (a - y));
} else {
tmp = x + (t / ((a - z) / (y - 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 (a <= (-7d-67)) then
tmp = x + (t * ((y - z) / (a - z)))
else if (a <= 2.8d-5) then
tmp = t + (((t - x) / z) * (a - y))
else
tmp = x + (t / ((a - z) / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7e-67) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (a <= 2.8e-5) {
tmp = t + (((t - x) / z) * (a - y));
} else {
tmp = x + (t / ((a - z) / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7e-67: tmp = x + (t * ((y - z) / (a - z))) elif a <= 2.8e-5: tmp = t + (((t - x) / z) * (a - y)) else: tmp = x + (t / ((a - z) / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7e-67) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); elseif (a <= 2.8e-5) tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); else tmp = Float64(x + Float64(t / Float64(Float64(a - z) / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7e-67) tmp = x + (t * ((y - z) / (a - z))); elseif (a <= 2.8e-5) tmp = t + (((t - x) / z) * (a - y)); else tmp = x + (t / ((a - z) / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7e-67], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-5], N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7 \cdot 10^{-67}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-5}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if a < -7.0000000000000001e-67Initial program 85.7%
Taylor expanded in t around inf 73.3%
associate-/l*81.1%
Simplified81.1%
if -7.0000000000000001e-67 < a < 2.79999999999999996e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
if 2.79999999999999996e-5 < a Initial program 91.7%
Taylor expanded in t around inf 69.0%
associate-/l*85.6%
Simplified85.6%
clear-num85.5%
un-div-inv85.6%
Applied egg-rr85.6%
Final simplification82.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -5.3e-67)
(+ x (* t (/ (- y z) (- a z))))
(if (<= a 2.85e-5)
(- t (/ (* y (- t x)) z))
(+ x (/ t (/ (- a z) (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.3e-67) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (a <= 2.85e-5) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = x + (t / ((a - z) / (y - 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 (a <= (-5.3d-67)) then
tmp = x + (t * ((y - z) / (a - z)))
else if (a <= 2.85d-5) then
tmp = t - ((y * (t - x)) / z)
else
tmp = x + (t / ((a - z) / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.3e-67) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (a <= 2.85e-5) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = x + (t / ((a - z) / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.3e-67: tmp = x + (t * ((y - z) / (a - z))) elif a <= 2.85e-5: tmp = t - ((y * (t - x)) / z) else: tmp = x + (t / ((a - z) / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.3e-67) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); elseif (a <= 2.85e-5) tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); else tmp = Float64(x + Float64(t / Float64(Float64(a - z) / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.3e-67) tmp = x + (t * ((y - z) / (a - z))); elseif (a <= 2.85e-5) tmp = t - ((y * (t - x)) / z); else tmp = x + (t / ((a - z) / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.3e-67], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.85e-5], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.3 \cdot 10^{-67}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 2.85 \cdot 10^{-5}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if a < -5.29999999999999971e-67Initial program 85.7%
Taylor expanded in t around inf 73.3%
associate-/l*81.1%
Simplified81.1%
if -5.29999999999999971e-67 < a < 2.8500000000000002e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
Taylor expanded in y around inf 78.1%
if 2.8500000000000002e-5 < a Initial program 91.7%
Taylor expanded in t around inf 69.0%
associate-/l*85.6%
Simplified85.6%
clear-num85.5%
un-div-inv85.6%
Applied egg-rr85.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.7e-33) (not (<= a 1.15e+48))) (+ x (* t (/ (- y z) a))) (- t (/ (* y (- t x)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.7e-33) || !(a <= 1.15e+48)) {
tmp = x + (t * ((y - z) / a));
} else {
tmp = t - ((y * (t - x)) / 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 ((a <= (-3.7d-33)) .or. (.not. (a <= 1.15d+48))) then
tmp = x + (t * ((y - z) / a))
else
tmp = t - ((y * (t - x)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.7e-33) || !(a <= 1.15e+48)) {
tmp = x + (t * ((y - z) / a));
} else {
tmp = t - ((y * (t - x)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.7e-33) or not (a <= 1.15e+48): tmp = x + (t * ((y - z) / a)) else: tmp = t - ((y * (t - x)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.7e-33) || !(a <= 1.15e+48)) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / a))); else tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.7e-33) || ~((a <= 1.15e+48))) tmp = x + (t * ((y - z) / a)); else tmp = t - ((y * (t - x)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.7e-33], N[Not[LessEqual[a, 1.15e+48]], $MachinePrecision]], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{-33} \lor \neg \left(a \leq 1.15 \cdot 10^{+48}\right):\\
\;\;\;\;x + t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\end{array}
\end{array}
if a < -3.70000000000000014e-33 or 1.15e48 < a Initial program 89.2%
Taylor expanded in t around inf 70.3%
associate-/l*82.5%
Simplified82.5%
Taylor expanded in a around inf 64.4%
+-commutative64.4%
associate-/l*72.1%
Simplified72.1%
if -3.70000000000000014e-33 < a < 1.15e48Initial program 69.7%
+-commutative69.7%
fma-define69.8%
Simplified69.8%
Taylor expanded in z around inf 78.7%
associate--l+78.7%
distribute-lft-out--78.7%
div-sub80.2%
mul-1-neg80.2%
unsub-neg80.2%
div-sub78.7%
associate-/l*77.9%
associate-/l*77.6%
distribute-rgt-out--80.1%
Simplified80.1%
Taylor expanded in y around inf 77.3%
Final simplification74.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -5.1e-42) (not (<= a 1.75e+49))) (+ x (* t (/ (- y z) a))) (* t (+ 1.0 (/ (- a y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.1e-42) || !(a <= 1.75e+49)) {
tmp = x + (t * ((y - z) / a));
} else {
tmp = t * (1.0 + ((a - y) / 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 ((a <= (-5.1d-42)) .or. (.not. (a <= 1.75d+49))) then
tmp = x + (t * ((y - z) / a))
else
tmp = t * (1.0d0 + ((a - y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.1e-42) || !(a <= 1.75e+49)) {
tmp = x + (t * ((y - z) / a));
} else {
tmp = t * (1.0 + ((a - y) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.1e-42) or not (a <= 1.75e+49): tmp = x + (t * ((y - z) / a)) else: tmp = t * (1.0 + ((a - y) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.1e-42) || !(a <= 1.75e+49)) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / a))); else tmp = Float64(t * Float64(1.0 + Float64(Float64(a - y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -5.1e-42) || ~((a <= 1.75e+49))) tmp = x + (t * ((y - z) / a)); else tmp = t * (1.0 + ((a - y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.1e-42], N[Not[LessEqual[a, 1.75e+49]], $MachinePrecision]], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 + N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.1 \cdot 10^{-42} \lor \neg \left(a \leq 1.75 \cdot 10^{+49}\right):\\
\;\;\;\;x + t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 + \frac{a - y}{z}\right)\\
\end{array}
\end{array}
if a < -5.1e-42 or 1.74999999999999987e49 < a Initial program 89.3%
Taylor expanded in t around inf 69.7%
associate-/l*81.9%
Simplified81.9%
Taylor expanded in a around inf 64.0%
+-commutative64.0%
associate-/l*72.3%
Simplified72.3%
if -5.1e-42 < a < 1.74999999999999987e49Initial program 69.4%
+-commutative69.4%
fma-define69.6%
Simplified69.6%
Taylor expanded in z around inf 78.5%
associate--l+78.5%
distribute-lft-out--78.5%
div-sub80.0%
mul-1-neg80.0%
unsub-neg80.0%
div-sub78.5%
associate-/l*77.7%
associate-/l*77.5%
distribute-rgt-out--80.0%
Simplified80.0%
Taylor expanded in t around inf 53.7%
associate--l+53.7%
div-sub54.4%
Simplified54.4%
Final simplification63.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.2e+30) (not (<= a 1.12e+48))) (+ x (* (- y z) (/ t a))) (* t (+ 1.0 (/ (- a y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e+30) || !(a <= 1.12e+48)) {
tmp = x + ((y - z) * (t / a));
} else {
tmp = t * (1.0 + ((a - y) / 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 ((a <= (-1.2d+30)) .or. (.not. (a <= 1.12d+48))) then
tmp = x + ((y - z) * (t / a))
else
tmp = t * (1.0d0 + ((a - y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e+30) || !(a <= 1.12e+48)) {
tmp = x + ((y - z) * (t / a));
} else {
tmp = t * (1.0 + ((a - y) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.2e+30) or not (a <= 1.12e+48): tmp = x + ((y - z) * (t / a)) else: tmp = t * (1.0 + ((a - y) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.2e+30) || !(a <= 1.12e+48)) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / a))); else tmp = Float64(t * Float64(1.0 + Float64(Float64(a - y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.2e+30) || ~((a <= 1.12e+48))) tmp = x + ((y - z) * (t / a)); else tmp = t * (1.0 + ((a - y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.2e+30], N[Not[LessEqual[a, 1.12e+48]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 + N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+30} \lor \neg \left(a \leq 1.12 \cdot 10^{+48}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 + \frac{a - y}{z}\right)\\
\end{array}
\end{array}
if a < -1.2e30 or 1.11999999999999995e48 < a Initial program 90.1%
Taylor expanded in t around inf 80.8%
Taylor expanded in a around inf 74.5%
if -1.2e30 < a < 1.11999999999999995e48Initial program 70.4%
+-commutative70.4%
fma-define70.6%
Simplified70.6%
Taylor expanded in z around inf 74.9%
associate--l+74.9%
distribute-lft-out--74.9%
div-sub76.3%
mul-1-neg76.3%
unsub-neg76.3%
div-sub74.9%
associate-/l*75.5%
associate-/l*75.9%
distribute-rgt-out--78.3%
Simplified78.3%
Taylor expanded in t around inf 52.7%
associate--l+52.7%
div-sub53.4%
Simplified53.4%
Final simplification62.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.75e-36) (not (<= a 1.02e+48))) (+ x (* y (/ (- t x) a))) (* t (+ 1.0 (/ (- a y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.75e-36) || !(a <= 1.02e+48)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * (1.0 + ((a - y) / 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 ((a <= (-2.75d-36)) .or. (.not. (a <= 1.02d+48))) then
tmp = x + (y * ((t - x) / a))
else
tmp = t * (1.0d0 + ((a - y) / z))
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.75e-36) || !(a <= 1.02e+48)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * (1.0 + ((a - y) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.75e-36) or not (a <= 1.02e+48): tmp = x + (y * ((t - x) / a)) else: tmp = t * (1.0 + ((a - y) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.75e-36) || !(a <= 1.02e+48)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t * Float64(1.0 + Float64(Float64(a - y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.75e-36) || ~((a <= 1.02e+48))) tmp = x + (y * ((t - x) / a)); else tmp = t * (1.0 + ((a - y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.75e-36], N[Not[LessEqual[a, 1.02e+48]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 + N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.75 \cdot 10^{-36} \lor \neg \left(a \leq 1.02 \cdot 10^{+48}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 + \frac{a - y}{z}\right)\\
\end{array}
\end{array}
if a < -2.74999999999999992e-36 or 1.02e48 < a Initial program 89.2%
Taylor expanded in z around 0 62.1%
associate-/l*70.7%
Simplified70.7%
if -2.74999999999999992e-36 < a < 1.02e48Initial program 69.7%
+-commutative69.7%
fma-define69.8%
Simplified69.8%
Taylor expanded in z around inf 78.7%
associate--l+78.7%
distribute-lft-out--78.7%
div-sub80.2%
mul-1-neg80.2%
unsub-neg80.2%
div-sub78.7%
associate-/l*77.9%
associate-/l*77.6%
distribute-rgt-out--80.1%
Simplified80.1%
Taylor expanded in t around inf 53.3%
associate--l+53.3%
div-sub54.0%
Simplified54.0%
Final simplification62.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.5e-42) (+ x (* t (/ y a))) (if (<= a 1.05e+48) (* t (+ 1.0 (/ (- a y) z))) (+ x (/ t (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.5e-42) {
tmp = x + (t * (y / a));
} else if (a <= 1.05e+48) {
tmp = t * (1.0 + ((a - y) / z));
} else {
tmp = x + (t / (a / 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 (a <= (-4.5d-42)) then
tmp = x + (t * (y / a))
else if (a <= 1.05d+48) then
tmp = t * (1.0d0 + ((a - y) / z))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.5e-42) {
tmp = x + (t * (y / a));
} else if (a <= 1.05e+48) {
tmp = t * (1.0 + ((a - y) / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.5e-42: tmp = x + (t * (y / a)) elif a <= 1.05e+48: tmp = t * (1.0 + ((a - y) / z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.5e-42) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= 1.05e+48) tmp = Float64(t * Float64(1.0 + Float64(Float64(a - y) / z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.5e-42) tmp = x + (t * (y / a)); elseif (a <= 1.05e+48) tmp = t * (1.0 + ((a - y) / z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.5e-42], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+48], N[(t * N[(1.0 + N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{-42}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+48}:\\
\;\;\;\;t \cdot \left(1 + \frac{a - y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.5e-42Initial program 87.3%
Taylor expanded in t around inf 70.9%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in z around 0 58.9%
+-commutative58.9%
associate-/l*59.0%
Simplified59.0%
if -4.5e-42 < a < 1.0499999999999999e48Initial program 69.4%
+-commutative69.4%
fma-define69.6%
Simplified69.6%
Taylor expanded in z around inf 78.5%
associate--l+78.5%
distribute-lft-out--78.5%
div-sub80.0%
mul-1-neg80.0%
unsub-neg80.0%
div-sub78.5%
associate-/l*77.7%
associate-/l*77.5%
distribute-rgt-out--80.0%
Simplified80.0%
Taylor expanded in t around inf 53.7%
associate--l+53.7%
div-sub54.4%
Simplified54.4%
if 1.0499999999999999e48 < a Initial program 91.6%
Taylor expanded in t around inf 68.5%
associate-/l*84.7%
Simplified84.7%
clear-num84.6%
un-div-inv84.7%
Applied egg-rr84.7%
Taylor expanded in z around 0 71.0%
Final simplification59.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8e-67) (not (<= a 2.75e-5))) (+ x (/ t (/ a y))) (* x (/ (- y a) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8e-67) || !(a <= 2.75e-5)) {
tmp = x + (t / (a / y));
} else {
tmp = x * ((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) :: tmp
if ((a <= (-8d-67)) .or. (.not. (a <= 2.75d-5))) then
tmp = x + (t / (a / y))
else
tmp = x * ((y - 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 ((a <= -8e-67) || !(a <= 2.75e-5)) {
tmp = x + (t / (a / y));
} else {
tmp = x * ((y - a) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8e-67) or not (a <= 2.75e-5): tmp = x + (t / (a / y)) else: tmp = x * ((y - a) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8e-67) || !(a <= 2.75e-5)) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x * Float64(Float64(y - a) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8e-67) || ~((a <= 2.75e-5))) tmp = x + (t / (a / y)); else tmp = x * ((y - a) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8e-67], N[Not[LessEqual[a, 2.75e-5]], $MachinePrecision]], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{-67} \lor \neg \left(a \leq 2.75 \cdot 10^{-5}\right):\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\end{array}
\end{array}
if a < -7.99999999999999954e-67 or 2.7500000000000001e-5 < a Initial program 88.6%
Taylor expanded in t around inf 71.2%
associate-/l*83.3%
Simplified83.3%
clear-num83.2%
un-div-inv83.3%
Applied egg-rr83.3%
Taylor expanded in z around 0 60.5%
if -7.99999999999999954e-67 < a < 2.7500000000000001e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
Taylor expanded in t around 0 37.1%
associate-/l*42.7%
Simplified42.7%
Final simplification52.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.6e-18) (not (<= a 4.7e+70))) (* x (- 1.0 (/ y a))) (* x (/ (- y a) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.6e-18) || !(a <= 4.7e+70)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = x * ((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) :: tmp
if ((a <= (-4.6d-18)) .or. (.not. (a <= 4.7d+70))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = x * ((y - 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 ((a <= -4.6e-18) || !(a <= 4.7e+70)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = x * ((y - a) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.6e-18) or not (a <= 4.7e+70): tmp = x * (1.0 - (y / a)) else: tmp = x * ((y - a) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.6e-18) || !(a <= 4.7e+70)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(x * Float64(Float64(y - a) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.6e-18) || ~((a <= 4.7e+70))) tmp = x * (1.0 - (y / a)); else tmp = x * ((y - a) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.6e-18], N[Not[LessEqual[a, 4.7e+70]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.6 \cdot 10^{-18} \lor \neg \left(a \leq 4.7 \cdot 10^{+70}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\end{array}
\end{array}
if a < -4.6000000000000002e-18 or 4.6999999999999998e70 < a Initial program 92.4%
+-commutative92.4%
fma-define92.4%
Simplified92.4%
Taylor expanded in t around 0 50.6%
mul-1-neg50.6%
*-rgt-identity50.6%
associate-/l*59.3%
distribute-rgt-neg-in59.3%
mul-1-neg59.3%
distribute-lft-in59.3%
mul-1-neg59.3%
unsub-neg59.3%
Simplified59.3%
Taylor expanded in z around 0 57.2%
if -4.6000000000000002e-18 < a < 4.6999999999999998e70Initial program 68.7%
+-commutative68.7%
fma-define68.8%
Simplified68.8%
Taylor expanded in z around inf 74.9%
associate--l+74.9%
distribute-lft-out--74.9%
div-sub76.3%
mul-1-neg76.3%
unsub-neg76.3%
div-sub74.9%
associate-/l*75.5%
associate-/l*75.9%
distribute-rgt-out--78.2%
Simplified78.2%
Taylor expanded in t around 0 32.5%
associate-/l*39.7%
Simplified39.7%
Final simplification47.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.8e-35) (+ x (/ (* y t) a)) (if (<= a 0.000108) (* y (/ (- x t) z)) (+ x (/ t (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.8e-35) {
tmp = x + ((y * t) / a);
} else if (a <= 0.000108) {
tmp = y * ((x - t) / z);
} else {
tmp = x + (t / (a / 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 (a <= (-6.8d-35)) then
tmp = x + ((y * t) / a)
else if (a <= 0.000108d0) then
tmp = y * ((x - t) / z)
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.8e-35) {
tmp = x + ((y * t) / a);
} else if (a <= 0.000108) {
tmp = y * ((x - t) / z);
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.8e-35: tmp = x + ((y * t) / a) elif a <= 0.000108: tmp = y * ((x - t) / z) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.8e-35) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (a <= 0.000108) tmp = Float64(y * Float64(Float64(x - t) / z)); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.8e-35) tmp = x + ((y * t) / a); elseif (a <= 0.000108) tmp = y * ((x - t) / z); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.8e-35], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.000108], N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.8 \cdot 10^{-35}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;a \leq 0.000108:\\
\;\;\;\;y \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -6.8000000000000005e-35Initial program 87.1%
Taylor expanded in t around inf 72.0%
associate-/l*80.6%
Simplified80.6%
Taylor expanded in z around 0 59.7%
if -6.8000000000000005e-35 < a < 1.08e-4Initial program 67.8%
+-commutative67.8%
fma-define68.0%
Simplified68.0%
Taylor expanded in y around inf 57.0%
Taylor expanded in a around 0 47.5%
distribute-lft-out--47.5%
div-sub48.4%
neg-mul-148.4%
distribute-neg-frac248.4%
Simplified48.4%
if 1.08e-4 < a Initial program 91.7%
Taylor expanded in t around inf 69.0%
associate-/l*85.6%
Simplified85.6%
clear-num85.5%
un-div-inv85.6%
Applied egg-rr85.6%
Taylor expanded in z around 0 66.8%
Final simplification56.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.8e-116) (+ x (* t (/ y a))) (if (<= a 8.4e-60) (* x (/ y (- z a))) (+ x (/ t (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.8e-116) {
tmp = x + (t * (y / a));
} else if (a <= 8.4e-60) {
tmp = x * (y / (z - a));
} else {
tmp = x + (t / (a / 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 (a <= (-2.8d-116)) then
tmp = x + (t * (y / a))
else if (a <= 8.4d-60) then
tmp = x * (y / (z - a))
else
tmp = x + (t / (a / y))
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.8e-116) {
tmp = x + (t * (y / a));
} else if (a <= 8.4e-60) {
tmp = x * (y / (z - a));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.8e-116: tmp = x + (t * (y / a)) elif a <= 8.4e-60: tmp = x * (y / (z - a)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.8e-116) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= 8.4e-60) tmp = Float64(x * Float64(y / Float64(z - a))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.8e-116) tmp = x + (t * (y / a)); elseif (a <= 8.4e-60) tmp = x * (y / (z - a)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.8e-116], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.4e-60], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{-116}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 8.4 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -2.7999999999999999e-116Initial program 84.5%
Taylor expanded in t around inf 71.9%
associate-/l*79.0%
Simplified79.0%
Taylor expanded in z around 0 52.4%
+-commutative52.4%
associate-/l*52.4%
Simplified52.4%
if -2.7999999999999999e-116 < a < 8.39999999999999964e-60Initial program 66.8%
+-commutative66.8%
fma-define67.0%
Simplified67.0%
Taylor expanded in t around 0 31.2%
mul-1-neg31.2%
*-rgt-identity31.2%
associate-/l*34.6%
distribute-rgt-neg-in34.6%
mul-1-neg34.6%
distribute-lft-in34.5%
mul-1-neg34.5%
unsub-neg34.5%
Simplified34.5%
Taylor expanded in y around inf 47.4%
associate-*r/47.4%
mul-1-neg47.4%
Simplified47.4%
if 8.39999999999999964e-60 < a Initial program 89.1%
Taylor expanded in t around inf 65.8%
associate-/l*81.4%
Simplified81.4%
clear-num81.4%
un-div-inv81.4%
Applied egg-rr81.4%
Taylor expanded in z around 0 62.5%
Final simplification53.6%
(FPCore (x y z t a) :precision binary64 (if (<= a -4e-67) (+ x (* t (/ y a))) (if (<= a 3.5e-5) (* x (/ (- y a) z)) (+ x (/ t (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e-67) {
tmp = x + (t * (y / a));
} else if (a <= 3.5e-5) {
tmp = x * ((y - a) / z);
} else {
tmp = x + (t / (a / 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 (a <= (-4d-67)) then
tmp = x + (t * (y / a))
else if (a <= 3.5d-5) then
tmp = x * ((y - a) / z)
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e-67) {
tmp = x + (t * (y / a));
} else if (a <= 3.5e-5) {
tmp = x * ((y - a) / z);
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4e-67: tmp = x + (t * (y / a)) elif a <= 3.5e-5: tmp = x * ((y - a) / z) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4e-67) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= 3.5e-5) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4e-67) tmp = x + (t * (y / a)); elseif (a <= 3.5e-5) tmp = x * ((y - a) / z); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4e-67], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-5], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{-67}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -3.99999999999999977e-67Initial program 85.7%
Taylor expanded in t around inf 73.3%
associate-/l*81.1%
Simplified81.1%
Taylor expanded in z around 0 55.8%
+-commutative55.8%
associate-/l*55.9%
Simplified55.9%
if -3.99999999999999977e-67 < a < 3.4999999999999997e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
Taylor expanded in t around 0 37.1%
associate-/l*42.7%
Simplified42.7%
if 3.4999999999999997e-5 < a Initial program 91.7%
Taylor expanded in t around inf 69.0%
associate-/l*85.6%
Simplified85.6%
clear-num85.5%
un-div-inv85.6%
Applied egg-rr85.6%
Taylor expanded in z around 0 66.8%
Final simplification52.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.1e-67) (+ x (/ (* y t) a)) (if (<= a 2.75e-5) (* x (/ (- y a) z)) (+ x (/ t (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.1e-67) {
tmp = x + ((y * t) / a);
} else if (a <= 2.75e-5) {
tmp = x * ((y - a) / z);
} else {
tmp = x + (t / (a / 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 (a <= (-4.1d-67)) then
tmp = x + ((y * t) / a)
else if (a <= 2.75d-5) then
tmp = x * ((y - a) / z)
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.1e-67) {
tmp = x + ((y * t) / a);
} else if (a <= 2.75e-5) {
tmp = x * ((y - a) / z);
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.1e-67: tmp = x + ((y * t) / a) elif a <= 2.75e-5: tmp = x * ((y - a) / z) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.1e-67) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (a <= 2.75e-5) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.1e-67) tmp = x + ((y * t) / a); elseif (a <= 2.75e-5) tmp = x * ((y - a) / z); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.1e-67], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.75e-5], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.1 \cdot 10^{-67}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;a \leq 2.75 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.0999999999999997e-67Initial program 85.7%
Taylor expanded in t around inf 73.3%
associate-/l*81.1%
Simplified81.1%
Taylor expanded in z around 0 55.8%
if -4.0999999999999997e-67 < a < 2.7500000000000001e-5Initial program 67.5%
+-commutative67.5%
fma-define67.7%
Simplified67.7%
Taylor expanded in z around inf 80.8%
associate--l+80.8%
distribute-lft-out--80.8%
div-sub81.6%
mul-1-neg81.6%
unsub-neg81.6%
div-sub80.8%
associate-/l*79.8%
associate-/l*78.7%
distribute-rgt-out--80.7%
Simplified80.7%
Taylor expanded in t around 0 37.1%
associate-/l*42.7%
Simplified42.7%
if 2.7500000000000001e-5 < a Initial program 91.7%
Taylor expanded in t around inf 69.0%
associate-/l*85.6%
Simplified85.6%
clear-num85.5%
un-div-inv85.6%
Applied egg-rr85.6%
Taylor expanded in z around 0 66.8%
Final simplification52.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.15e+47) t (if (<= z 5.2e-92) (* x (- 1.0 (/ y a))) (+ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+47) {
tmp = t;
} else if (z <= 5.2e-92) {
tmp = x * (1.0 - (y / a));
} else {
tmp = x + 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 <= (-1.15d+47)) then
tmp = t
else if (z <= 5.2d-92) then
tmp = x * (1.0d0 - (y / a))
else
tmp = x + 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 <= -1.15e+47) {
tmp = t;
} else if (z <= 5.2e-92) {
tmp = x * (1.0 - (y / a));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.15e+47: tmp = t elif z <= 5.2e-92: tmp = x * (1.0 - (y / a)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+47) tmp = t; elseif (z <= 5.2e-92) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.15e+47) tmp = t; elseif (z <= 5.2e-92) tmp = x * (1.0 - (y / a)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+47], t, If[LessEqual[z, 5.2e-92], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+47}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-92}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -1.1499999999999999e47Initial program 68.4%
associate-*r/49.2%
clear-num49.0%
Applied egg-rr49.0%
associate-/r/49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in z around inf 46.1%
if -1.1499999999999999e47 < z < 5.2e-92Initial program 86.6%
+-commutative86.6%
fma-define86.6%
Simplified86.6%
Taylor expanded in t around 0 52.6%
mul-1-neg52.6%
*-rgt-identity52.6%
associate-/l*57.2%
distribute-rgt-neg-in57.2%
mul-1-neg57.2%
distribute-lft-in57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Taylor expanded in z around 0 46.5%
if 5.2e-92 < z Initial program 74.3%
Taylor expanded in t around inf 56.9%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in z around inf 46.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.45e+30) x (if (<= a 3.6e+79) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.45e+30) {
tmp = x;
} else if (a <= 3.6e+79) {
tmp = t;
} 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 (a <= (-1.45d+30)) then
tmp = x
else if (a <= 3.6d+79) then
tmp = t
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 (a <= -1.45e+30) {
tmp = x;
} else if (a <= 3.6e+79) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.45e+30: tmp = x elif a <= 3.6e+79: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.45e+30) tmp = x; elseif (a <= 3.6e+79) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.45e+30) tmp = x; elseif (a <= 3.6e+79) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.45e+30], x, If[LessEqual[a, 3.6e+79], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{+30}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+79}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.4499999999999999e30 or 3.5999999999999999e79 < a Initial program 92.8%
+-commutative92.8%
fma-define92.9%
Simplified92.9%
Taylor expanded in a around inf 54.1%
if -1.4499999999999999e30 < a < 3.5999999999999999e79Initial program 70.2%
associate-*r/68.8%
clear-num68.7%
Applied egg-rr68.7%
associate-/r/68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in z around inf 33.9%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return 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 = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 79.0%
associate-*r/70.7%
clear-num70.6%
Applied egg-rr70.6%
associate-/r/70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in z around inf 23.7%
herbie shell --seed 2024165
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))