
(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 23 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 (/ (- y z) (- a z))) (t_2 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (<= t_2 -1e-294)
(fma t_1 (- t x) x)
(if (<= t_2 0.0) (+ t (/ (- x t) (/ z (- y a)))) (- x (* t_1 (- x t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) / (a - z);
double t_2 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if (t_2 <= -1e-294) {
tmp = fma(t_1, (t - x), x);
} else if (t_2 <= 0.0) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x - (t_1 * (x - t));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y - z) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -1e-294) tmp = fma(t_1, Float64(t - x), x); elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x - Float64(t_1 * Float64(x - t))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-294], N[(t$95$1 * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(t$95$1 * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y - z}{a - z}\\
t_2 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_2 \leq -1 \cdot 10^{-294}:\\
\;\;\;\;\mathsf{fma}\left(t_1, t - x, x\right)\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x - t_1 \cdot \left(x - t\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-294Initial program 88.4%
+-commutative88.4%
remove-double-neg88.4%
unsub-neg88.4%
associate-*r/69.7%
associate-/l*88.1%
associate-/r/90.8%
fma-neg90.8%
remove-double-neg90.8%
Simplified90.8%
if -1.00000000000000002e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 81.7%
associate--l+81.7%
associate-*r/81.7%
associate-*r/81.7%
div-sub81.7%
distribute-lft-out--81.7%
associate-*r/81.7%
mul-1-neg81.7%
unsub-neg81.7%
distribute-rgt-out--81.7%
associate-/l*99.7%
Simplified99.7%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.8%
+-commutative92.8%
fma-def92.8%
Simplified92.8%
fma-udef92.8%
associate-*r/72.4%
div-inv72.3%
*-commutative72.3%
associate-*l*94.9%
div-inv95.1%
Applied egg-rr95.1%
Final simplification93.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (or (<= t_1 -5e-286) (not (<= t_1 0.0)))
t_1
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -5e-286) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z - y) * ((x - t) / (a - z)))
if ((t_1 <= (-5d-286)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = t_1
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -5e-286) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - y) * ((x - t) / (a - z))) tmp = 0 if (t_1 <= -5e-286) or not (t_1 <= 0.0): tmp = t_1 else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-286) || !(t_1 <= 0.0)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - y) * ((x - t) / (a - z))); tmp = 0.0; if ((t_1 <= -5e-286) || ~((t_1 <= 0.0))) tmp = t_1; else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-286], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-286} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.00000000000000037e-286 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.4%
if -5.00000000000000037e-286 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.3%
Taylor expanded in z around inf 79.5%
associate--l+79.5%
associate-*r/79.5%
associate-*r/79.5%
div-sub79.5%
distribute-lft-out--79.5%
associate-*r/79.5%
mul-1-neg79.5%
unsub-neg79.5%
distribute-rgt-out--79.5%
associate-/l*96.3%
Simplified96.3%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (or (<= t_1 -1e-294) (not (<= t_1 0.0)))
(- x (* (/ (- y z) (- a z)) (- x t)))
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) {
tmp = x - (((y - z) / (a - z)) * (x - t));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z - y) * ((x - t) / (a - z)))
if ((t_1 <= (-1d-294)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x - (((y - z) / (a - z)) * (x - t))
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) {
tmp = x - (((y - z) / (a - z)) * (x - t));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - y) * ((x - t) / (a - z))) tmp = 0 if (t_1 <= -1e-294) or not (t_1 <= 0.0): tmp = x - (((y - z) / (a - z)) * (x - t)) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) tmp = Float64(x - Float64(Float64(Float64(y - z) / Float64(a - z)) * Float64(x - t))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - y) * ((x - t) / (a - z))); tmp = 0.0; if ((t_1 <= -1e-294) || ~((t_1 <= 0.0))) tmp = x - (((y - z) / (a - z)) * (x - t)); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-294], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x - N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-294} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x - \frac{y - z}{a - z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.7%
+-commutative90.7%
fma-def90.7%
Simplified90.7%
fma-udef90.7%
associate-*r/71.1%
div-inv71.0%
*-commutative71.0%
associate-*l*92.9%
div-inv93.0%
Applied egg-rr93.0%
if -1.00000000000000002e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 81.7%
associate--l+81.7%
associate-*r/81.7%
associate-*r/81.7%
div-sub81.7%
distribute-lft-out--81.7%
associate-*r/81.7%
mul-1-neg81.7%
unsub-neg81.7%
distribute-rgt-out--81.7%
associate-/l*99.7%
Simplified99.7%
Final simplification93.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z (- y a))))))
(if (<= z -3.25e+16)
t_1
(if (<= z 9.8e+17)
(+ x (* (- t x) (/ y (- a z))))
(if (<= z 1.46e+110) (+ x (* (/ z (- a z)) (- x t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -3.25e+16) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.46e+110) {
tmp = x + ((z / (a - z)) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((x - t) / (z / (y - a)))
if (z <= (-3.25d+16)) then
tmp = t_1
else if (z <= 9.8d+17) then
tmp = x + ((t - x) * (y / (a - z)))
else if (z <= 1.46d+110) then
tmp = x + ((z / (a - z)) * (x - 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 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -3.25e+16) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.46e+110) {
tmp = x + ((z / (a - z)) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / (y - a))) tmp = 0 if z <= -3.25e+16: tmp = t_1 elif z <= 9.8e+17: tmp = x + ((t - x) * (y / (a - z))) elif z <= 1.46e+110: tmp = x + ((z / (a - z)) * (x - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))) tmp = 0.0 if (z <= -3.25e+16) tmp = t_1; elseif (z <= 9.8e+17) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / Float64(a - z)))); elseif (z <= 1.46e+110) tmp = Float64(x + Float64(Float64(z / Float64(a - z)) * Float64(x - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / (y - a))); tmp = 0.0; if (z <= -3.25e+16) tmp = t_1; elseif (z <= 9.8e+17) tmp = x + ((t - x) * (y / (a - z))); elseif (z <= 1.46e+110) tmp = x + ((z / (a - z)) * (x - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.25e+16], t$95$1, If[LessEqual[z, 9.8e+17], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.46e+110], N[(x + N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -3.25 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+17}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.46 \cdot 10^{+110}:\\
\;\;\;\;x + \frac{z}{a - z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -3.25e16 or 1.46e110 < z Initial program 69.8%
Taylor expanded in z around inf 63.2%
associate--l+63.2%
associate-*r/63.2%
associate-*r/63.2%
div-sub63.2%
distribute-lft-out--63.2%
associate-*r/63.2%
mul-1-neg63.2%
unsub-neg63.2%
distribute-rgt-out--63.4%
associate-/l*82.2%
Simplified82.2%
if -3.25e16 < z < 9.8e17Initial program 90.8%
+-commutative90.8%
fma-def90.9%
Simplified90.9%
fma-udef90.8%
associate-*r/85.9%
div-inv85.8%
*-commutative85.8%
associate-*l*91.3%
div-inv91.4%
Applied egg-rr91.4%
Taylor expanded in y around inf 82.8%
if 9.8e17 < z < 1.46e110Initial program 78.9%
Taylor expanded in y around 0 78.3%
mul-1-neg78.3%
unsub-neg78.3%
associate-/l*72.7%
associate-/r/83.7%
Simplified83.7%
Final simplification82.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (* t (- 1.0 (/ y z)))))
(if (<= z -5.6e+16)
t_2
(if (<= z -1.15e-250)
t_1
(if (<= z 3.5e-214) (* y (/ (- t x) a)) (if (<= z 7.2e+56) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t * (1.0 - (y / z));
double tmp;
if (z <= -5.6e+16) {
tmp = t_2;
} else if (z <= -1.15e-250) {
tmp = t_1;
} else if (z <= 3.5e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.2e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
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 = x * (1.0d0 - (y / a))
t_2 = t * (1.0d0 - (y / z))
if (z <= (-5.6d+16)) then
tmp = t_2
else if (z <= (-1.15d-250)) then
tmp = t_1
else if (z <= 3.5d-214) then
tmp = y * ((t - x) / a)
else if (z <= 7.2d+56) then
tmp = t_1
else
tmp = t_2
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 t_2 = t * (1.0 - (y / z));
double tmp;
if (z <= -5.6e+16) {
tmp = t_2;
} else if (z <= -1.15e-250) {
tmp = t_1;
} else if (z <= 3.5e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.2e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t * (1.0 - (y / z)) tmp = 0 if z <= -5.6e+16: tmp = t_2 elif z <= -1.15e-250: tmp = t_1 elif z <= 3.5e-214: tmp = y * ((t - x) / a) elif z <= 7.2e+56: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (z <= -5.6e+16) tmp = t_2; elseif (z <= -1.15e-250) tmp = t_1; elseif (z <= 3.5e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 7.2e+56) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t * (1.0 - (y / z)); tmp = 0.0; if (z <= -5.6e+16) tmp = t_2; elseif (z <= -1.15e-250) tmp = t_1; elseif (z <= 3.5e-214) tmp = y * ((t - x) / a); elseif (z <= 7.2e+56) tmp = t_1; else tmp = t_2; 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]}, Block[{t$95$2 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e+16], t$95$2, If[LessEqual[z, -1.15e-250], t$95$1, If[LessEqual[z, 3.5e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e+56], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -5.6e16 or 7.19999999999999996e56 < z Initial program 70.6%
Taylor expanded in z around inf 62.2%
associate--l+62.2%
associate-*r/62.2%
associate-*r/62.2%
div-sub62.2%
distribute-lft-out--62.2%
associate-*r/62.2%
mul-1-neg62.2%
unsub-neg62.2%
distribute-rgt-out--62.3%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in y around inf 59.5%
associate-/l*71.9%
Simplified71.9%
Taylor expanded in t around inf 56.8%
if -5.6e16 < z < -1.15e-250 or 3.5e-214 < z < 7.19999999999999996e56Initial program 88.2%
Taylor expanded in z around 0 63.0%
Taylor expanded in x around inf 54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
if -1.15e-250 < z < 3.5e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
Final simplification59.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= z -2e+15)
t_1
(if (<= z -4.2e-252)
(+ x (/ t (/ a y)))
(if (<= z 4.8e-214)
(* y (/ (- t x) a))
(if (<= z 9e+57) (* x (- 1.0 (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (z <= -2e+15) {
tmp = t_1;
} else if (z <= -4.2e-252) {
tmp = x + (t / (a / y));
} else if (z <= 4.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 9e+57) {
tmp = x * (1.0 - (y / a));
} 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 = t * (1.0d0 - (y / z))
if (z <= (-2d+15)) then
tmp = t_1
else if (z <= (-4.2d-252)) then
tmp = x + (t / (a / y))
else if (z <= 4.8d-214) then
tmp = y * ((t - x) / a)
else if (z <= 9d+57) then
tmp = x * (1.0d0 - (y / a))
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 = t * (1.0 - (y / z));
double tmp;
if (z <= -2e+15) {
tmp = t_1;
} else if (z <= -4.2e-252) {
tmp = x + (t / (a / y));
} else if (z <= 4.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 9e+57) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if z <= -2e+15: tmp = t_1 elif z <= -4.2e-252: tmp = x + (t / (a / y)) elif z <= 4.8e-214: tmp = y * ((t - x) / a) elif z <= 9e+57: tmp = x * (1.0 - (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (z <= -2e+15) tmp = t_1; elseif (z <= -4.2e-252) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 4.8e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 9e+57) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (z <= -2e+15) tmp = t_1; elseif (z <= -4.2e-252) tmp = x + (t / (a / y)); elseif (z <= 4.8e-214) tmp = y * ((t - x) / a); elseif (z <= 9e+57) tmp = x * (1.0 - (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+15], t$95$1, If[LessEqual[z, -4.2e-252], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+57], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;z \leq -2 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+57}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2e15 or 8.99999999999999991e57 < z Initial program 70.8%
Taylor expanded in z around inf 62.5%
associate--l+62.5%
associate-*r/62.5%
associate-*r/62.5%
div-sub62.5%
distribute-lft-out--62.5%
associate-*r/62.5%
mul-1-neg62.5%
unsub-neg62.5%
distribute-rgt-out--62.7%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in y around inf 59.9%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in t around inf 56.3%
if -2e15 < z < -4.2e-252Initial program 90.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
associate-/l*64.9%
Simplified64.9%
if -4.2e-252 < z < 4.80000000000000041e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 4.80000000000000041e-214 < z < 8.99999999999999991e57Initial program 84.6%
Taylor expanded in z around 0 58.1%
Taylor expanded in x around inf 58.0%
mul-1-neg58.0%
unsub-neg58.0%
Simplified58.0%
Final simplification62.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.3e+14)
(* t (- 1.0 (/ y z)))
(if (<= z -4.5e-252)
(+ x (/ t (/ a y)))
(if (<= z 2.5e-214)
(* y (/ (- t x) a))
(if (<= z 3.1e+58) (* x (- 1.0 (/ y a))) (- t (/ y (/ z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.3e+14) {
tmp = t * (1.0 - (y / z));
} else if (z <= -4.5e-252) {
tmp = x + (t / (a / y));
} else if (z <= 2.5e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 3.1e+58) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t - (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.3d+14)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= (-4.5d-252)) then
tmp = x + (t / (a / y))
else if (z <= 2.5d-214) then
tmp = y * ((t - x) / a)
else if (z <= 3.1d+58) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t - (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.3e+14) {
tmp = t * (1.0 - (y / z));
} else if (z <= -4.5e-252) {
tmp = x + (t / (a / y));
} else if (z <= 2.5e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 3.1e+58) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.3e+14: tmp = t * (1.0 - (y / z)) elif z <= -4.5e-252: tmp = x + (t / (a / y)) elif z <= 2.5e-214: tmp = y * ((t - x) / a) elif z <= 3.1e+58: tmp = x * (1.0 - (y / a)) else: tmp = t - (y / (z / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.3e+14) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= -4.5e-252) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 2.5e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 3.1e+58) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t - Float64(y / Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.3e+14) tmp = t * (1.0 - (y / z)); elseif (z <= -4.5e-252) tmp = x + (t / (a / y)); elseif (z <= 2.5e-214) tmp = y * ((t - x) / a); elseif (z <= 3.1e+58) tmp = x * (1.0 - (y / a)); else tmp = t - (y / (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.3e+14], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.5e-252], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+58], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+58}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\end{array}
\end{array}
if z < -2.3e14Initial program 72.9%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
associate-*r/69.6%
div-sub69.6%
distribute-lft-out--69.6%
associate-*r/69.6%
mul-1-neg69.6%
unsub-neg69.6%
distribute-rgt-out--69.8%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around inf 65.1%
associate-/l*72.3%
Simplified72.3%
Taylor expanded in t around inf 57.2%
if -2.3e14 < z < -4.5000000000000002e-252Initial program 90.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
associate-/l*64.9%
Simplified64.9%
if -4.5000000000000002e-252 < z < 2.4999999999999999e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 2.4999999999999999e-214 < z < 3.0999999999999999e58Initial program 84.6%
Taylor expanded in z around 0 58.1%
Taylor expanded in x around inf 58.0%
mul-1-neg58.0%
unsub-neg58.0%
Simplified58.0%
if 3.0999999999999999e58 < z Initial program 68.4%
Taylor expanded in z around inf 54.3%
associate--l+54.3%
associate-*r/54.3%
associate-*r/54.3%
div-sub54.3%
distribute-lft-out--54.3%
associate-*r/54.3%
mul-1-neg54.3%
unsub-neg54.3%
distribute-rgt-out--54.3%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around inf 53.7%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in t around inf 55.2%
Final simplification62.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.35e+15)
(* t (- 1.0 (/ y z)))
(if (<= z -5e-252)
(+ x (/ t (/ a y)))
(if (<= z 3.05e-214)
(* y (/ (- t x) a))
(if (<= z 1.7e+57) (- x (/ x (/ a y))) (- t (/ y (/ z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.35e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -5e-252) {
tmp = x + (t / (a / y));
} else if (z <= 3.05e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.7e+57) {
tmp = x - (x / (a / y));
} else {
tmp = t - (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 <= (-1.35d+15)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= (-5d-252)) then
tmp = x + (t / (a / y))
else if (z <= 3.05d-214) then
tmp = y * ((t - x) / a)
else if (z <= 1.7d+57) then
tmp = x - (x / (a / y))
else
tmp = t - (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 <= -1.35e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -5e-252) {
tmp = x + (t / (a / y));
} else if (z <= 3.05e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.7e+57) {
tmp = x - (x / (a / y));
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.35e+15: tmp = t * (1.0 - (y / z)) elif z <= -5e-252: tmp = x + (t / (a / y)) elif z <= 3.05e-214: tmp = y * ((t - x) / a) elif z <= 1.7e+57: tmp = x - (x / (a / y)) else: tmp = t - (y / (z / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.35e+15) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= -5e-252) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 3.05e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 1.7e+57) tmp = Float64(x - Float64(x / Float64(a / y))); else tmp = Float64(t - Float64(y / Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.35e+15) tmp = t * (1.0 - (y / z)); elseif (z <= -5e-252) tmp = x + (t / (a / y)); elseif (z <= 3.05e-214) tmp = y * ((t - x) / a); elseif (z <= 1.7e+57) tmp = x - (x / (a / y)); else tmp = t - (y / (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.35e+15], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5e-252], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.05e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+57], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+15}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+57}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\end{array}
\end{array}
if z < -1.35e15Initial program 72.9%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
associate-*r/69.6%
div-sub69.6%
distribute-lft-out--69.6%
associate-*r/69.6%
mul-1-neg69.6%
unsub-neg69.6%
distribute-rgt-out--69.8%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around inf 65.1%
associate-/l*72.3%
Simplified72.3%
Taylor expanded in t around inf 57.2%
if -1.35e15 < z < -5.00000000000000008e-252Initial program 90.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
associate-/l*64.9%
Simplified64.9%
if -5.00000000000000008e-252 < z < 3.05e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 3.05e-214 < z < 1.69999999999999996e57Initial program 84.6%
Taylor expanded in z around 0 58.1%
Taylor expanded in t around 0 51.9%
mul-1-neg51.9%
unsub-neg51.9%
associate-/l*58.1%
Simplified58.1%
if 1.69999999999999996e57 < z Initial program 68.4%
Taylor expanded in z around inf 54.3%
associate--l+54.3%
associate-*r/54.3%
associate-*r/54.3%
div-sub54.3%
distribute-lft-out--54.3%
associate-*r/54.3%
mul-1-neg54.3%
unsub-neg54.3%
distribute-rgt-out--54.3%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around inf 53.7%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in t around inf 55.2%
Final simplification62.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* y (/ x z)))))
(if (<= z -2.6e+14)
t_1
(if (<= z -1.4e-251)
(+ x (/ t (/ a y)))
(if (<= z 1.8e-214)
(* y (/ (- t x) a))
(if (<= z 1.3e+55) (- x (/ x (/ a y))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (y * (x / z));
double tmp;
if (z <= -2.6e+14) {
tmp = t_1;
} else if (z <= -1.4e-251) {
tmp = x + (t / (a / y));
} else if (z <= 1.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.3e+55) {
tmp = x - (x / (a / y));
} 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 = t + (y * (x / z))
if (z <= (-2.6d+14)) then
tmp = t_1
else if (z <= (-1.4d-251)) then
tmp = x + (t / (a / y))
else if (z <= 1.8d-214) then
tmp = y * ((t - x) / a)
else if (z <= 1.3d+55) then
tmp = x - (x / (a / y))
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 = t + (y * (x / z));
double tmp;
if (z <= -2.6e+14) {
tmp = t_1;
} else if (z <= -1.4e-251) {
tmp = x + (t / (a / y));
} else if (z <= 1.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.3e+55) {
tmp = x - (x / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (y * (x / z)) tmp = 0 if z <= -2.6e+14: tmp = t_1 elif z <= -1.4e-251: tmp = x + (t / (a / y)) elif z <= 1.8e-214: tmp = y * ((t - x) / a) elif z <= 1.3e+55: tmp = x - (x / (a / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(y * Float64(x / z))) tmp = 0.0 if (z <= -2.6e+14) tmp = t_1; elseif (z <= -1.4e-251) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 1.8e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 1.3e+55) tmp = Float64(x - Float64(x / Float64(a / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (y * (x / z)); tmp = 0.0; if (z <= -2.6e+14) tmp = t_1; elseif (z <= -1.4e-251) tmp = x + (t / (a / y)); elseif (z <= 1.8e-214) tmp = y * ((t - x) / a); elseif (z <= 1.3e+55) tmp = x - (x / (a / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.6e+14], t$95$1, If[LessEqual[z, -1.4e-251], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+55], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot \frac{x}{z}\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-251}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+55}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.6e14 or 1.3e55 < z Initial program 70.8%
Taylor expanded in z around inf 62.5%
associate--l+62.5%
associate-*r/62.5%
associate-*r/62.5%
div-sub62.5%
distribute-lft-out--62.5%
associate-*r/62.5%
mul-1-neg62.5%
unsub-neg62.5%
distribute-rgt-out--62.7%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in y around inf 59.9%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in t around 0 57.7%
mul-1-neg57.7%
associate-*l/63.1%
*-commutative63.1%
Simplified63.1%
if -2.6e14 < z < -1.39999999999999994e-251Initial program 90.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
associate-/l*64.9%
Simplified64.9%
if -1.39999999999999994e-251 < z < 1.8e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 1.8e-214 < z < 1.3e55Initial program 84.6%
Taylor expanded in z around 0 58.1%
Taylor expanded in t around 0 51.9%
mul-1-neg51.9%
unsub-neg51.9%
associate-/l*58.1%
Simplified58.1%
Final simplification65.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2e+15)
(+ t (* y (/ x z)))
(if (<= z -4.2e-252)
(+ x (/ t (/ a y)))
(if (<= z 2.6e-214)
(* y (/ (- t x) a))
(if (<= z 4e+56) (- x (/ x (/ a y))) (+ t (/ x (/ z y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e+15) {
tmp = t + (y * (x / z));
} else if (z <= -4.2e-252) {
tmp = x + (t / (a / y));
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4e+56) {
tmp = x - (x / (a / y));
} else {
tmp = t + (x / (z / 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 <= (-2d+15)) then
tmp = t + (y * (x / z))
else if (z <= (-4.2d-252)) then
tmp = x + (t / (a / y))
else if (z <= 2.6d-214) then
tmp = y * ((t - x) / a)
else if (z <= 4d+56) then
tmp = x - (x / (a / y))
else
tmp = t + (x / (z / 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 <= -2e+15) {
tmp = t + (y * (x / z));
} else if (z <= -4.2e-252) {
tmp = x + (t / (a / y));
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4e+56) {
tmp = x - (x / (a / y));
} else {
tmp = t + (x / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2e+15: tmp = t + (y * (x / z)) elif z <= -4.2e-252: tmp = x + (t / (a / y)) elif z <= 2.6e-214: tmp = y * ((t - x) / a) elif z <= 4e+56: tmp = x - (x / (a / y)) else: tmp = t + (x / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2e+15) tmp = Float64(t + Float64(y * Float64(x / z))); elseif (z <= -4.2e-252) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 2.6e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 4e+56) tmp = Float64(x - Float64(x / Float64(a / y))); else tmp = Float64(t + Float64(x / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2e+15) tmp = t + (y * (x / z)); elseif (z <= -4.2e-252) tmp = x + (t / (a / y)); elseif (z <= 2.6e-214) tmp = y * ((t - x) / a); elseif (z <= 4e+56) tmp = x - (x / (a / y)); else tmp = t + (x / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2e+15], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.2e-252], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+56], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+15}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+56}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\end{array}
\end{array}
if z < -2e15Initial program 72.9%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
associate-*r/69.6%
div-sub69.6%
distribute-lft-out--69.6%
associate-*r/69.6%
mul-1-neg69.6%
unsub-neg69.6%
distribute-rgt-out--69.8%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around inf 65.1%
associate-/l*72.3%
Simplified72.3%
Taylor expanded in t around 0 60.6%
mul-1-neg60.6%
associate-*l/61.5%
*-commutative61.5%
Simplified61.5%
if -2e15 < z < -4.2e-252Initial program 90.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
associate-/l*64.9%
Simplified64.9%
if -4.2e-252 < z < 2.6e-214Initial program 99.5%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 2.6e-214 < z < 4.00000000000000037e56Initial program 84.6%
Taylor expanded in z around 0 58.1%
Taylor expanded in t around 0 51.9%
mul-1-neg51.9%
unsub-neg51.9%
associate-/l*58.1%
Simplified58.1%
if 4.00000000000000037e56 < z Initial program 68.4%
Taylor expanded in z around inf 54.3%
associate--l+54.3%
associate-*r/54.3%
associate-*r/54.3%
div-sub54.3%
distribute-lft-out--54.3%
associate-*r/54.3%
mul-1-neg54.3%
unsub-neg54.3%
distribute-rgt-out--54.3%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around inf 53.7%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in t around 0 54.2%
mul-1-neg54.2%
associate-/l*66.8%
distribute-neg-frac66.8%
Simplified66.8%
Final simplification65.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y (- a z))))))
(if (<= x -4.8e-63)
t_1
(if (<= x 5.2e-11)
(* t (/ (- y z) (- a z)))
(if (<= x 7e+97) (* y (/ (- t x) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / (a - z)));
double tmp;
if (x <= -4.8e-63) {
tmp = t_1;
} else if (x <= 5.2e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 7e+97) {
tmp = y * ((t - x) / (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 - z)))
if (x <= (-4.8d-63)) then
tmp = t_1
else if (x <= 5.2d-11) then
tmp = t * ((y - z) / (a - z))
else if (x <= 7d+97) then
tmp = y * ((t - x) / (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 - z)));
double tmp;
if (x <= -4.8e-63) {
tmp = t_1;
} else if (x <= 5.2e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 7e+97) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / (a - z))) tmp = 0 if x <= -4.8e-63: tmp = t_1 elif x <= 5.2e-11: tmp = t * ((y - z) / (a - z)) elif x <= 7e+97: tmp = y * ((t - x) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))) tmp = 0.0 if (x <= -4.8e-63) tmp = t_1; elseif (x <= 5.2e-11) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (x <= 7e+97) tmp = Float64(y * Float64(Float64(t - x) / 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 - z))); tmp = 0.0; if (x <= -4.8e-63) tmp = t_1; elseif (x <= 5.2e-11) tmp = t * ((y - z) / (a - z)); elseif (x <= 7e+97) tmp = y * ((t - x) / (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 / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e-63], t$95$1, If[LessEqual[x, 5.2e-11], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e+97], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-11}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+97}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.8000000000000001e-63 or 7.0000000000000001e97 < x Initial program 77.2%
+-commutative77.2%
fma-def77.5%
Simplified77.5%
fma-udef77.2%
associate-*r/50.3%
div-inv50.3%
*-commutative50.3%
associate-*l*79.7%
div-inv79.8%
Applied egg-rr79.8%
Taylor expanded in y around inf 68.0%
Taylor expanded in x around inf 61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if -4.8000000000000001e-63 < x < 5.2000000000000001e-11Initial program 85.3%
Taylor expanded in x around 0 62.0%
associate-*r/73.4%
Simplified73.4%
if 5.2000000000000001e-11 < x < 7.0000000000000001e97Initial program 85.9%
Taylor expanded in y around inf 72.2%
div-sub72.2%
Simplified72.2%
Final simplification67.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.85e+15) (not (<= a 9e-66))) (+ x (/ (- t x) (/ a (- y z)))) (- t (/ y (/ z (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.85e+15) || !(a <= 9e-66)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t - (y / (z / (t - 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.85d+15)) .or. (.not. (a <= 9d-66))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t - (y / (z / (t - 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.85e+15) || !(a <= 9e-66)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t - (y / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.85e+15) or not (a <= 9e-66): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t - (y / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.85e+15) || !(a <= 9e-66)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.85e+15) || ~((a <= 9e-66))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t - (y / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.85e+15], N[Not[LessEqual[a, 9e-66]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.85 \cdot 10^{+15} \lor \neg \left(a \leq 9 \cdot 10^{-66}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if a < -1.85e15 or 8.9999999999999995e-66 < a Initial program 87.9%
Taylor expanded in a around inf 58.4%
associate-/l*73.2%
Simplified73.2%
if -1.85e15 < a < 8.9999999999999995e-66Initial program 73.8%
Taylor expanded in z around inf 73.1%
associate--l+73.1%
associate-*r/73.1%
associate-*r/73.1%
div-sub74.0%
distribute-lft-out--74.0%
associate-*r/74.0%
mul-1-neg74.0%
unsub-neg74.0%
distribute-rgt-out--74.0%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around inf 71.2%
associate-/l*74.8%
Simplified74.8%
Final simplification73.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.45e+84) (not (<= z 9.5e+56))) (- t (/ y (/ z (- t x)))) (+ x (* (- t x) (/ y (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.45e+84) || !(z <= 9.5e+56)) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - 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 ((z <= (-2.45d+84)) .or. (.not. (z <= 9.5d+56))) then
tmp = t - (y / (z / (t - x)))
else
tmp = x + ((t - 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 ((z <= -2.45e+84) || !(z <= 9.5e+56)) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * (y / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.45e+84) or not (z <= 9.5e+56): tmp = t - (y / (z / (t - x))) else: tmp = x + ((t - x) * (y / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.45e+84) || !(z <= 9.5e+56)) tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.45e+84) || ~((z <= 9.5e+56))) tmp = t - (y / (z / (t - x))); else tmp = x + ((t - x) * (y / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.45e+84], N[Not[LessEqual[z, 9.5e+56]], $MachinePrecision]], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.45 \cdot 10^{+84} \lor \neg \left(z \leq 9.5 \cdot 10^{+56}\right):\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if z < -2.45e84 or 9.4999999999999997e56 < z Initial program 67.4%
Taylor expanded in z around inf 60.8%
associate--l+60.8%
associate-*r/60.8%
associate-*r/60.8%
div-sub60.8%
distribute-lft-out--60.8%
associate-*r/60.8%
mul-1-neg60.8%
unsub-neg60.8%
distribute-rgt-out--60.9%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 58.7%
associate-/l*72.9%
Simplified72.9%
if -2.45e84 < z < 9.4999999999999997e56Initial program 90.7%
+-commutative90.7%
fma-def90.8%
Simplified90.8%
fma-udef90.7%
associate-*r/84.0%
div-inv83.9%
*-commutative83.9%
associate-*l*91.1%
div-inv91.2%
Applied egg-rr91.2%
Taylor expanded in y around inf 80.9%
Final simplification77.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7e+16) (not (<= z 4.5e+57))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (* (- t x) (/ y (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7e+16) || !(z <= 4.5e+57)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - 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 ((z <= (-7d+16)) .or. (.not. (z <= 4.5d+57))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - 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 ((z <= -7e+16) || !(z <= 4.5e+57)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * (y / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7e+16) or not (z <= 4.5e+57): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) * (y / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7e+16) || !(z <= 4.5e+57)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7e+16) || ~((z <= 4.5e+57))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) * (y / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7e+16], N[Not[LessEqual[z, 4.5e+57]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+16} \lor \neg \left(z \leq 4.5 \cdot 10^{+57}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if z < -7e16 or 4.49999999999999996e57 < z Initial program 70.6%
Taylor expanded in z around inf 62.2%
associate--l+62.2%
associate-*r/62.2%
associate-*r/62.2%
div-sub62.2%
distribute-lft-out--62.2%
associate-*r/62.2%
mul-1-neg62.2%
unsub-neg62.2%
distribute-rgt-out--62.3%
associate-/l*79.1%
Simplified79.1%
if -7e16 < z < 4.49999999999999996e57Initial program 90.5%
+-commutative90.5%
fma-def90.6%
Simplified90.6%
fma-udef90.5%
associate-*r/85.1%
div-inv85.0%
*-commutative85.0%
associate-*l*91.0%
div-inv91.1%
Applied egg-rr91.1%
Taylor expanded in y around inf 82.1%
Final simplification80.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -4.8e-63) (not (<= x 5.4e-10))) (* x (- 1.0 (/ y (- a z)))) (* t (/ (- y z) (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -4.8e-63) || !(x <= 5.4e-10)) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * ((y - z) / (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 ((x <= (-4.8d-63)) .or. (.not. (x <= 5.4d-10))) then
tmp = x * (1.0d0 - (y / (a - z)))
else
tmp = t * ((y - z) / (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 ((x <= -4.8e-63) || !(x <= 5.4e-10)) {
tmp = x * (1.0 - (y / (a - z)));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -4.8e-63) or not (x <= 5.4e-10): tmp = x * (1.0 - (y / (a - z))) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -4.8e-63) || !(x <= 5.4e-10)) tmp = Float64(x * Float64(1.0 - Float64(y / Float64(a - z)))); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -4.8e-63) || ~((x <= 5.4e-10))) tmp = x * (1.0 - (y / (a - z))); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -4.8e-63], N[Not[LessEqual[x, 5.4e-10]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-63} \lor \neg \left(x \leq 5.4 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if x < -4.8000000000000001e-63 or 5.4e-10 < x Initial program 78.4%
+-commutative78.4%
fma-def78.6%
Simplified78.6%
fma-udef78.4%
associate-*r/52.7%
div-inv52.7%
*-commutative52.7%
associate-*l*80.5%
div-inv80.6%
Applied egg-rr80.6%
Taylor expanded in y around inf 68.5%
Taylor expanded in x around inf 58.2%
mul-1-neg58.2%
unsub-neg58.2%
Simplified58.2%
if -4.8000000000000001e-63 < x < 5.4e-10Initial program 85.4%
Taylor expanded in x around 0 62.3%
associate-*r/73.6%
Simplified73.6%
Final simplification65.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.05e-45) (not (<= z 1.22e+55))) (- t (/ y (/ z (- t x)))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.05e-45) || !(z <= 1.22e+55)) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + (y / (a / (t - 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 ((z <= (-2.05d-45)) .or. (.not. (z <= 1.22d+55))) then
tmp = t - (y / (z / (t - x)))
else
tmp = x + (y / (a / (t - x)))
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.05e-45) || !(z <= 1.22e+55)) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.05e-45) or not (z <= 1.22e+55): tmp = t - (y / (z / (t - x))) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.05e-45) || !(z <= 1.22e+55)) tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.05e-45) || ~((z <= 1.22e+55))) tmp = t - (y / (z / (t - x))); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.05e-45], N[Not[LessEqual[z, 1.22e+55]], $MachinePrecision]], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{-45} \lor \neg \left(z \leq 1.22 \cdot 10^{+55}\right):\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.05e-45 or 1.22e55 < z Initial program 72.3%
Taylor expanded in z around inf 60.2%
associate--l+60.2%
associate-*r/60.2%
associate-*r/60.2%
div-sub60.2%
distribute-lft-out--60.2%
associate-*r/60.2%
mul-1-neg60.2%
unsub-neg60.2%
distribute-rgt-out--61.1%
associate-/l*76.0%
Simplified76.0%
Taylor expanded in y around inf 58.6%
associate-/l*69.6%
Simplified69.6%
if -2.05e-45 < z < 1.22e55Initial program 91.0%
Taylor expanded in z around 0 69.2%
associate-/l*77.1%
Simplified77.1%
Final simplification73.4%
(FPCore (x y z t a) :precision binary64 (if (<= x -1.4e+56) (- x (/ x (/ a y))) (if (<= x 1.2e+22) (* t (/ (- y z) (- a z))) (* x (- 1.0 (/ y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.4e+56) {
tmp = x - (x / (a / y));
} else if (x <= 1.2e+22) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-1.4d+56)) then
tmp = x - (x / (a / y))
else if (x <= 1.2d+22) then
tmp = t * ((y - z) / (a - z))
else
tmp = x * (1.0d0 - (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.4e+56) {
tmp = x - (x / (a / y));
} else if (x <= 1.2e+22) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.4e+56: tmp = x - (x / (a / y)) elif x <= 1.2e+22: tmp = t * ((y - z) / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.4e+56) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (x <= 1.2e+22) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.4e+56) tmp = x - (x / (a / y)); elseif (x <= 1.2e+22) tmp = t * ((y - z) / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.4e+56], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+22], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+56}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+22}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -1.40000000000000004e56Initial program 78.4%
Taylor expanded in z around 0 51.2%
Taylor expanded in t around 0 48.0%
mul-1-neg48.0%
unsub-neg48.0%
associate-/l*55.3%
Simplified55.3%
if -1.40000000000000004e56 < x < 1.2e22Initial program 86.5%
Taylor expanded in x around 0 55.7%
associate-*r/68.9%
Simplified68.9%
if 1.2e22 < x Initial program 72.6%
Taylor expanded in z around 0 51.3%
Taylor expanded in x around inf 56.1%
mul-1-neg56.1%
unsub-neg56.1%
Simplified56.1%
Final simplification63.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.7e-34) (* t (/ (- y z) (- a z))) (if (<= z 6.5e+57) (+ x (/ y (/ a (- t x)))) (+ t (/ x (/ z y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e-34) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 6.5e+57) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (x / (z / 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.7d-34)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 6.5d+57) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + (x / (z / 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.7e-34) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 6.5e+57) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (x / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.7e-34: tmp = t * ((y - z) / (a - z)) elif z <= 6.5e+57: tmp = x + (y / (a / (t - x))) else: tmp = t + (x / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.7e-34) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 6.5e+57) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(x / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.7e-34) tmp = t * ((y - z) / (a - z)); elseif (z <= 6.5e+57) tmp = x + (y / (a / (t - x))); else tmp = t + (x / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.7e-34], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+57], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-34}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+57}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\end{array}
\end{array}
if z < -2.70000000000000017e-34Initial program 74.0%
Taylor expanded in x around 0 42.2%
associate-*r/61.8%
Simplified61.8%
if -2.70000000000000017e-34 < z < 6.4999999999999997e57Initial program 91.1%
Taylor expanded in z around 0 69.2%
associate-/l*76.9%
Simplified76.9%
if 6.4999999999999997e57 < z Initial program 68.4%
Taylor expanded in z around inf 54.3%
associate--l+54.3%
associate-*r/54.3%
associate-*r/54.3%
div-sub54.3%
distribute-lft-out--54.3%
associate-*r/54.3%
mul-1-neg54.3%
unsub-neg54.3%
distribute-rgt-out--54.3%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in y around inf 53.7%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in t around 0 54.2%
mul-1-neg54.2%
associate-/l*66.8%
distribute-neg-frac66.8%
Simplified66.8%
Final simplification70.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.7e+59) (not (<= a 1.6e+114))) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.7e+59) || !(a <= 1.6e+114)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (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.7d+59)) .or. (.not. (a <= 1.6d+114))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (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.7e+59) || !(a <= 1.6e+114)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.7e+59) or not (a <= 1.6e+114): tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.7e+59) || !(a <= 1.6e+114)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.7e+59) || ~((a <= 1.6e+114))) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.7e+59], N[Not[LessEqual[a, 1.6e+114]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+59} \lor \neg \left(a \leq 1.6 \cdot 10^{+114}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if a < -1.70000000000000003e59 or 1.6e114 < a Initial program 89.6%
Taylor expanded in z around 0 65.2%
Taylor expanded in x around inf 57.4%
mul-1-neg57.4%
unsub-neg57.4%
Simplified57.4%
if -1.70000000000000003e59 < a < 1.6e114Initial program 77.1%
Taylor expanded in z around inf 61.4%
associate--l+61.4%
associate-*r/61.4%
associate-*r/61.4%
div-sub62.6%
distribute-lft-out--62.6%
associate-*r/62.6%
mul-1-neg62.6%
unsub-neg62.6%
distribute-rgt-out--63.2%
associate-/l*72.6%
Simplified72.6%
Taylor expanded in y around inf 61.9%
associate-/l*67.8%
Simplified67.8%
Taylor expanded in t around inf 52.2%
Final simplification54.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.18e+125) x (if (<= a 3e+117) (* t (- 1.0 (/ y z))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.18e+125) {
tmp = x;
} else if (a <= 3e+117) {
tmp = t * (1.0 - (y / z));
} 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.18d+125)) then
tmp = x
else if (a <= 3d+117) then
tmp = t * (1.0d0 - (y / z))
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.18e+125) {
tmp = x;
} else if (a <= 3e+117) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.18e+125: tmp = x elif a <= 3e+117: tmp = t * (1.0 - (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.18e+125) tmp = x; elseif (a <= 3e+117) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.18e+125) tmp = x; elseif (a <= 3e+117) tmp = t * (1.0 - (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.18e+125], x, If[LessEqual[a, 3e+117], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.18 \cdot 10^{+125}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+117}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.1799999999999999e125 or 3e117 < a Initial program 92.5%
Taylor expanded in a around inf 58.0%
if -1.1799999999999999e125 < a < 3e117Initial program 77.0%
Taylor expanded in z around inf 59.1%
associate--l+59.1%
associate-*r/59.1%
associate-*r/59.1%
div-sub60.3%
distribute-lft-out--60.3%
associate-*r/60.3%
mul-1-neg60.3%
unsub-neg60.3%
distribute-rgt-out--61.5%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in y around inf 59.2%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in t around inf 49.9%
Final simplification52.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -3e+121) x (if (<= a 5.6e+113) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3e+121) {
tmp = x;
} else if (a <= 5.6e+113) {
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 <= (-3d+121)) then
tmp = x
else if (a <= 5.6d+113) 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 <= -3e+121) {
tmp = x;
} else if (a <= 5.6e+113) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3e+121: tmp = x elif a <= 5.6e+113: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3e+121) tmp = x; elseif (a <= 5.6e+113) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3e+121) tmp = x; elseif (a <= 5.6e+113) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3e+121], x, If[LessEqual[a, 5.6e+113], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+113}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.0000000000000002e121 or 5.59999999999999995e113 < a Initial program 92.5%
Taylor expanded in a around inf 58.0%
if -3.0000000000000002e121 < a < 5.59999999999999995e113Initial program 77.0%
Taylor expanded in z around inf 35.0%
Final simplification42.1%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 81.8%
associate-*r/64.5%
Simplified64.5%
Taylor expanded in y around 0 34.6%
mul-1-neg34.6%
distribute-lft-neg-out34.6%
*-commutative34.6%
Simplified34.6%
Taylor expanded in x around inf 24.6%
distribute-lft-in24.6%
*-rgt-identity24.6%
Simplified24.6%
Taylor expanded in z around inf 2.8%
distribute-rgt1-in2.8%
metadata-eval2.8%
mul0-lft2.8%
Simplified2.8%
Final simplification2.8%
(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 81.8%
Taylor expanded in z around inf 26.2%
Final simplification26.2%
herbie shell --seed 2023275
(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)))))