
(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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- y z) (- a z))) (t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 -5e-286)
(+ x (* (- t x) t_1))
(if (<= t_2 0.0) (- t (/ (- t x) (/ z (- y a)))) (fma t_1 (- t x) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) / (a - z);
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -5e-286) {
tmp = x + ((t - x) * t_1);
} else if (t_2 <= 0.0) {
tmp = t - ((t - x) / (z / (y - a)));
} else {
tmp = fma(t_1, (t - x), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y - z) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= -5e-286) tmp = Float64(x + Float64(Float64(t - x) * t_1)); elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); else tmp = fma(t_1, Float64(t - x), x); 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-286], N[(x + N[(N[(t - x), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y - z}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{-286}:\\
\;\;\;\;x + \left(t - x\right) \cdot t_1\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t_1, t - x, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000037e-286Initial program 66.1%
associate-*l/89.5%
Simplified89.5%
if -5.00000000000000037e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.1%
associate-*l/4.1%
Simplified4.1%
Taylor expanded in z around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
mul-1-neg99.7%
distribute-neg-frac99.7%
distribute-rgt-out--99.7%
unsub-neg99.7%
associate-/l*99.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 72.0%
+-commutative72.0%
associate-*l/91.1%
fma-def91.1%
Simplified91.1%
Final simplification91.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-286) (not (<= t_1 0.0)))
(+ x (* (- t x) (/ (- y z) (- a z))))
(- t (/ (- t x) (/ z (- y a)))))))
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 <= -5e-286) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-286)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) * ((y - z) / (a - z)))
else
tmp = t - ((t - x) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-286) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-286) or not (t_1 <= 0.0): tmp = x + ((t - x) * ((y - z) / (a - z))) else: tmp = t - ((t - x) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-286) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); else tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); 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 <= -5e-286) || ~((t_1 <= 0.0))) tmp = x + ((t - x) * ((y - z) / (a - z))); else tmp = t - ((t - x) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-286], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-286} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000037e-286 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 69.1%
associate-*l/90.3%
Simplified90.3%
if -5.00000000000000037e-286 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.1%
associate-*l/4.1%
Simplified4.1%
Taylor expanded in z around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
mul-1-neg99.7%
distribute-neg-frac99.7%
distribute-rgt-out--99.7%
unsub-neg99.7%
associate-/l*99.8%
Simplified99.8%
Final simplification91.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (+ x (* (- y z) (/ t a)))))
(if (<= a -3e+121)
t_2
(if (<= a -8.6e-167)
t_1
(if (<= a -4.4e-200)
(* (- t x) (/ y (- a z)))
(if (<= a 5.3e+118) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * (t / a));
double tmp;
if (a <= -3e+121) {
tmp = t_2;
} else if (a <= -8.6e-167) {
tmp = t_1;
} else if (a <= -4.4e-200) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 5.3e+118) {
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 = t * ((y - z) / (a - z))
t_2 = x + ((y - z) * (t / a))
if (a <= (-3d+121)) then
tmp = t_2
else if (a <= (-8.6d-167)) then
tmp = t_1
else if (a <= (-4.4d-200)) then
tmp = (t - x) * (y / (a - z))
else if (a <= 5.3d+118) 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 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * (t / a));
double tmp;
if (a <= -3e+121) {
tmp = t_2;
} else if (a <= -8.6e-167) {
tmp = t_1;
} else if (a <= -4.4e-200) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 5.3e+118) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x + ((y - z) * (t / a)) tmp = 0 if a <= -3e+121: tmp = t_2 elif a <= -8.6e-167: tmp = t_1 elif a <= -4.4e-200: tmp = (t - x) * (y / (a - z)) elif a <= 5.3e+118: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(t / a))) tmp = 0.0 if (a <= -3e+121) tmp = t_2; elseif (a <= -8.6e-167) tmp = t_1; elseif (a <= -4.4e-200) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (a <= 5.3e+118) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x + ((y - z) * (t / a)); tmp = 0.0; if (a <= -3e+121) tmp = t_2; elseif (a <= -8.6e-167) tmp = t_1; elseif (a <= -4.4e-200) tmp = (t - x) * (y / (a - z)); elseif (a <= 5.3e+118) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3e+121], t$95$2, If[LessEqual[a, -8.6e-167], t$95$1, If[LessEqual[a, -4.4e-200], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.3e+118], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -3 \cdot 10^{+121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-200}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.0000000000000002e121 or 5.2999999999999997e118 < a Initial program 67.7%
associate-*l/91.4%
Simplified91.4%
Taylor expanded in a around inf 66.1%
associate-/l*86.5%
Simplified86.5%
Taylor expanded in t around inf 70.9%
associate-/l*80.1%
associate-/r/82.7%
Simplified82.7%
if -3.0000000000000002e121 < a < -8.5999999999999995e-167 or -4.40000000000000027e-200 < a < 5.2999999999999997e118Initial program 62.3%
associate-*l/81.2%
Simplified81.2%
Taylor expanded in x around 0 44.5%
associate-*r/60.6%
Simplified60.6%
if -8.5999999999999995e-167 < a < -4.40000000000000027e-200Initial program 78.3%
associate-/l*67.6%
Simplified67.6%
div-sub55.9%
Applied egg-rr55.9%
Taylor expanded in y around inf 63.2%
div-sub74.8%
associate-/r/85.4%
Simplified85.4%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ (- t x) (/ z (- y a))))))
(if (<= z -7e+16)
t_1
(if (<= z 9.8e+17)
(+ x (* (- t x) (/ y (- a z))))
(if (<= z 1.7e+110) (- x (* t (/ z (- a z)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t - x) / (z / (y - a)));
double tmp;
if (z <= -7e+16) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.7e+110) {
tmp = x - (t * (z / (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 = t - ((t - x) / (z / (y - a)))
if (z <= (-7d+16)) then
tmp = t_1
else if (z <= 9.8d+17) then
tmp = x + ((t - x) * (y / (a - z)))
else if (z <= 1.7d+110) then
tmp = x - (t * (z / (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 = t - ((t - x) / (z / (y - a)));
double tmp;
if (z <= -7e+16) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.7e+110) {
tmp = x - (t * (z / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((t - x) / (z / (y - a))) tmp = 0 if z <= -7e+16: tmp = t_1 elif z <= 9.8e+17: tmp = x + ((t - x) * (y / (a - z))) elif z <= 1.7e+110: tmp = x - (t * (z / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))) tmp = 0.0 if (z <= -7e+16) tmp = t_1; elseif (z <= 9.8e+17) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / Float64(a - z)))); elseif (z <= 1.7e+110) tmp = Float64(x - Float64(t * Float64(z / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((t - x) / (z / (y - a))); tmp = 0.0; if (z <= -7e+16) tmp = t_1; elseif (z <= 9.8e+17) tmp = x + ((t - x) * (y / (a - z))); elseif (z <= 1.7e+110) tmp = x - (t * (z / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+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.7e+110], N[(x - N[(t * N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{t - x}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -7 \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.7 \cdot 10^{+110}:\\
\;\;\;\;x - t \cdot \frac{z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -7e16 or 1.7000000000000001e110 < z Initial program 31.7%
associate-*l/73.5%
Simplified73.5%
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%
mul-1-neg63.2%
distribute-neg-frac63.2%
distribute-rgt-out--63.4%
unsub-neg63.4%
associate-/l*82.2%
Simplified82.2%
if -7e16 < z < 9.8e17Initial program 85.9%
associate-*l/91.4%
Simplified91.4%
Taylor expanded in y around inf 82.8%
if 9.8e17 < z < 1.7000000000000001e110Initial program 83.6%
associate-/l*78.0%
Simplified78.0%
div-sub78.0%
Applied egg-rr78.0%
Taylor expanded in x around 0 73.0%
Taylor expanded in y around 0 72.7%
div-sub72.7%
associate-/r/82.6%
Simplified82.6%
Final simplification82.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ (- t x) (/ 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 - ((t - x) / (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 - ((t - x) / (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 - ((t - x) / (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 - ((t - x) / (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(t - x) / 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 - ((t - x) / (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[(t - x), $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{t - x}{\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 31.7%
associate-*l/73.5%
Simplified73.5%
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%
mul-1-neg63.2%
distribute-neg-frac63.2%
distribute-rgt-out--63.4%
unsub-neg63.4%
associate-/l*82.2%
Simplified82.2%
if -3.25e16 < z < 9.8e17Initial program 85.9%
associate-*l/91.4%
Simplified91.4%
Taylor expanded in y around inf 82.8%
if 9.8e17 < z < 1.46e110Initial program 83.6%
associate-/l*78.0%
Simplified78.0%
div-sub78.0%
Applied egg-rr78.0%
Taylor expanded in y around 0 72.7%
div-sub72.7%
associate-/r/83.7%
Simplified83.7%
Final simplification82.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.05e+15)
(* t (- 1.0 (/ y z)))
(if (<= z -4.2e-252)
(+ x (/ (* y t) a))
(if (<= z 2.4e-214)
(* y (/ (- t x) a))
(if (<= z 2.8e+64) (- x (/ x (/ a y))) (* (/ z (- a z)) (- t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.05e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -4.2e-252) {
tmp = x + ((y * t) / a);
} else if (z <= 2.4e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 2.8e+64) {
tmp = x - (x / (a / y));
} else {
tmp = (z / (a - 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.05d+15)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= (-4.2d-252)) then
tmp = x + ((y * t) / a)
else if (z <= 2.4d-214) then
tmp = y * ((t - x) / a)
else if (z <= 2.8d+64) then
tmp = x - (x / (a / y))
else
tmp = (z / (a - 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.05e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -4.2e-252) {
tmp = x + ((y * t) / a);
} else if (z <= 2.4e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 2.8e+64) {
tmp = x - (x / (a / y));
} else {
tmp = (z / (a - z)) * -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.05e+15: tmp = t * (1.0 - (y / z)) elif z <= -4.2e-252: tmp = x + ((y * t) / a) elif z <= 2.4e-214: tmp = y * ((t - x) / a) elif z <= 2.8e+64: tmp = x - (x / (a / y)) else: tmp = (z / (a - z)) * -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.05e+15) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= -4.2e-252) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 2.4e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 2.8e+64) tmp = Float64(x - Float64(x / Float64(a / y))); else tmp = Float64(Float64(z / Float64(a - z)) * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.05e+15) tmp = t * (1.0 - (y / z)); elseif (z <= -4.2e-252) tmp = x + ((y * t) / a); elseif (z <= 2.4e-214) tmp = y * ((t - x) / a); elseif (z <= 2.8e+64) tmp = x - (x / (a / y)); else tmp = (z / (a - z)) * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.05e+15], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.2e-252], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+64], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{+15}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+64}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{a - z} \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -2.05e15Initial program 40.8%
associate-*l/77.1%
Simplified77.1%
Taylor expanded in x around 0 40.7%
associate-*r/63.4%
Simplified63.4%
Taylor expanded in a around 0 57.1%
mul-1-neg57.1%
div-sub57.2%
sub-neg57.2%
*-inverses57.2%
metadata-eval57.2%
Simplified57.2%
if -2.05e15 < z < -4.2e-252Initial program 88.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
*-commutative62.2%
Simplified62.2%
if -4.2e-252 < z < 2.4000000000000002e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 2.4000000000000002e-214 < z < 2.80000000000000024e64Initial program 79.2%
associate-*l/86.8%
Simplified86.8%
Taylor expanded in z around 0 57.9%
Taylor expanded in t around 0 51.9%
mul-1-neg51.9%
unsub-neg51.9%
associate-/l*57.8%
Simplified57.8%
if 2.80000000000000024e64 < z Initial program 33.5%
associate-*l/72.9%
Simplified72.9%
Taylor expanded in x around 0 31.2%
associate-*r/63.0%
Simplified63.0%
Taylor expanded in y around 0 55.7%
neg-mul-155.7%
distribute-neg-frac55.7%
Simplified55.7%
Final simplification61.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- a z)))))
(if (<= a -1.9e+117)
x
(if (<= a -6.5e-45)
t_1
(if (<= a 3e-83) t (if (<= a 6.6e-29) t_1 (if (<= a 6.3e+118) t x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (a <= -1.9e+117) {
tmp = x;
} else if (a <= -6.5e-45) {
tmp = t_1;
} else if (a <= 3e-83) {
tmp = t;
} else if (a <= 6.6e-29) {
tmp = t_1;
} else if (a <= 6.3e+118) {
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) :: t_1
real(8) :: tmp
t_1 = t * (y / (a - z))
if (a <= (-1.9d+117)) then
tmp = x
else if (a <= (-6.5d-45)) then
tmp = t_1
else if (a <= 3d-83) then
tmp = t
else if (a <= 6.6d-29) then
tmp = t_1
else if (a <= 6.3d+118) 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 t_1 = t * (y / (a - z));
double tmp;
if (a <= -1.9e+117) {
tmp = x;
} else if (a <= -6.5e-45) {
tmp = t_1;
} else if (a <= 3e-83) {
tmp = t;
} else if (a <= 6.6e-29) {
tmp = t_1;
} else if (a <= 6.3e+118) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if a <= -1.9e+117: tmp = x elif a <= -6.5e-45: tmp = t_1 elif a <= 3e-83: tmp = t elif a <= 6.6e-29: tmp = t_1 elif a <= 6.3e+118: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (a <= -1.9e+117) tmp = x; elseif (a <= -6.5e-45) tmp = t_1; elseif (a <= 3e-83) tmp = t; elseif (a <= 6.6e-29) tmp = t_1; elseif (a <= 6.3e+118) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (a <= -1.9e+117) tmp = x; elseif (a <= -6.5e-45) tmp = t_1; elseif (a <= 3e-83) tmp = t; elseif (a <= 6.6e-29) tmp = t_1; elseif (a <= 6.3e+118) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+117], x, If[LessEqual[a, -6.5e-45], t$95$1, If[LessEqual[a, 3e-83], t, If[LessEqual[a, 6.6e-29], t$95$1, If[LessEqual[a, 6.3e+118], t, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+117}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-83}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.3 \cdot 10^{+118}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.9000000000000001e117 or 6.30000000000000002e118 < a Initial program 68.1%
associate-*l/91.5%
Simplified91.5%
Taylor expanded in a around inf 57.3%
if -1.9000000000000001e117 < a < -6.4999999999999995e-45 or 3.0000000000000001e-83 < a < 6.60000000000000055e-29Initial program 71.9%
associate-*l/88.2%
Simplified88.2%
Taylor expanded in x around 0 44.2%
associate-*r/54.5%
Simplified54.5%
Taylor expanded in y around inf 38.6%
if -6.4999999999999995e-45 < a < 3.0000000000000001e-83 or 6.60000000000000055e-29 < a < 6.30000000000000002e118Initial program 59.8%
associate-*l/78.5%
Simplified78.5%
Taylor expanded in z around inf 41.3%
Final simplification45.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -9.2e+16)
t
(if (<= z 3.3e-280)
t_1
(if (<= z 5.2e-214) (* t (/ (- y z) a)) (if (<= z 2.6e+57) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -9.2e+16) {
tmp = t;
} else if (z <= 3.3e-280) {
tmp = t_1;
} else if (z <= 5.2e-214) {
tmp = t * ((y - z) / a);
} else if (z <= 2.6e+57) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-9.2d+16)) then
tmp = t
else if (z <= 3.3d-280) then
tmp = t_1
else if (z <= 5.2d-214) then
tmp = t * ((y - z) / a)
else if (z <= 2.6d+57) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -9.2e+16) {
tmp = t;
} else if (z <= 3.3e-280) {
tmp = t_1;
} else if (z <= 5.2e-214) {
tmp = t * ((y - z) / a);
} else if (z <= 2.6e+57) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -9.2e+16: tmp = t elif z <= 3.3e-280: tmp = t_1 elif z <= 5.2e-214: tmp = t * ((y - z) / a) elif z <= 2.6e+57: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -9.2e+16) tmp = t; elseif (z <= 3.3e-280) tmp = t_1; elseif (z <= 5.2e-214) tmp = Float64(t * Float64(Float64(y - z) / a)); elseif (z <= 2.6e+57) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -9.2e+16) tmp = t; elseif (z <= 3.3e-280) tmp = t_1; elseif (z <= 5.2e-214) tmp = t * ((y - z) / a); elseif (z <= 2.6e+57) tmp = t_1; else tmp = t; 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[z, -9.2e+16], t, If[LessEqual[z, 3.3e-280], t$95$1, If[LessEqual[z, 5.2e-214], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+57], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{+16}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-214}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -9.2e16 or 2.6e57 < z Initial program 38.1%
associate-*l/75.5%
Simplified75.5%
Taylor expanded in z around inf 47.5%
if -9.2e16 < z < 3.29999999999999991e-280 or 5.2e-214 < z < 2.6e57Initial program 85.4%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in z around 0 67.8%
Taylor expanded in x around inf 53.7%
mul-1-neg53.7%
unsub-neg53.7%
Simplified53.7%
if 3.29999999999999991e-280 < z < 5.2e-214Initial program 80.7%
associate-*l/99.1%
Simplified99.1%
Taylor expanded in a around inf 80.7%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in t around inf 80.6%
div-sub80.6%
Simplified80.6%
Final simplification52.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -9.2e+16)
t
(if (<= z -1.25e-250)
t_1
(if (<= z 2.6e-214) (* y (/ (- t x) a)) (if (<= z 7.5e+58) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -9.2e+16) {
tmp = t;
} else if (z <= -1.25e-250) {
tmp = t_1;
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.5e+58) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-9.2d+16)) then
tmp = t
else if (z <= (-1.25d-250)) then
tmp = t_1
else if (z <= 2.6d-214) then
tmp = y * ((t - x) / a)
else if (z <= 7.5d+58) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -9.2e+16) {
tmp = t;
} else if (z <= -1.25e-250) {
tmp = t_1;
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.5e+58) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -9.2e+16: tmp = t elif z <= -1.25e-250: tmp = t_1 elif z <= 2.6e-214: tmp = y * ((t - x) / a) elif z <= 7.5e+58: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -9.2e+16) tmp = t; elseif (z <= -1.25e-250) tmp = t_1; elseif (z <= 2.6e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 7.5e+58) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -9.2e+16) tmp = t; elseif (z <= -1.25e-250) tmp = t_1; elseif (z <= 2.6e-214) tmp = y * ((t - x) / a); elseif (z <= 7.5e+58) tmp = t_1; else tmp = t; 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[z, -9.2e+16], t, If[LessEqual[z, -1.25e-250], t$95$1, If[LessEqual[z, 2.6e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+58], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{+16}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -9.2e16 or 7.5000000000000001e58 < z Initial program 38.1%
associate-*l/75.5%
Simplified75.5%
Taylor expanded in z around inf 47.5%
if -9.2e16 < z < -1.25000000000000007e-250 or 2.6e-214 < z < 7.5000000000000001e58Initial program 83.9%
associate-*l/90.7%
Simplified90.7%
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.25000000000000007e-250 < z < 2.6e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
Final simplification55.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.9e+79)
t
(if (<= z -1.5e-251)
(+ x (/ (* y t) a))
(if (<= z 2.6e-214)
(* y (/ (- t x) a))
(if (<= z 7.5e+58) (* x (- 1.0 (/ y a))) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e+79) {
tmp = t;
} else if (z <= -1.5e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.5e+58) {
tmp = x * (1.0 - (y / a));
} else {
tmp = 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.9d+79)) then
tmp = t
else if (z <= (-1.5d-251)) then
tmp = x + ((y * t) / a)
else if (z <= 2.6d-214) then
tmp = y * ((t - x) / a)
else if (z <= 7.5d+58) then
tmp = x * (1.0d0 - (y / a))
else
tmp = 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.9e+79) {
tmp = t;
} else if (z <= -1.5e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 2.6e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 7.5e+58) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e+79: tmp = t elif z <= -1.5e-251: tmp = x + ((y * t) / a) elif z <= 2.6e-214: tmp = y * ((t - x) / a) elif z <= 7.5e+58: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e+79) tmp = t; elseif (z <= -1.5e-251) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 2.6e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 7.5e+58) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e+79) tmp = t; elseif (z <= -1.5e-251) tmp = x + ((y * t) / a); elseif (z <= 2.6e-214) tmp = y * ((t - x) / a); elseif (z <= 7.5e+58) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e+79], t, If[LessEqual[z, -1.5e-251], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+58], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+79}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-251}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+58}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.89999999999999992e79 or 7.5000000000000001e58 < z Initial program 33.9%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 50.4%
if -2.89999999999999992e79 < z < -1.4999999999999999e-251Initial program 85.2%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in z around 0 58.5%
Taylor expanded in t around inf 55.3%
*-commutative55.3%
Simplified55.3%
if -1.4999999999999999e-251 < z < 2.6e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
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 < 7.5000000000000001e58Initial program 78.3%
associate-*l/86.3%
Simplified86.3%
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 simplification57.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* y (/ t z)))))
(if (<= z -6500000000000.0)
t_1
(if (<= z -4.8e-252)
(+ x (/ (* y t) a))
(if (<= z 1.85e-214)
(* y (/ (- t x) a))
(if (<= z 1.9e+55) (* x (- 1.0 (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y * (t / z));
double tmp;
if (z <= -6500000000000.0) {
tmp = t_1;
} else if (z <= -4.8e-252) {
tmp = x + ((y * t) / a);
} else if (z <= 1.85e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.9e+55) {
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 - (y * (t / z))
if (z <= (-6500000000000.0d0)) then
tmp = t_1
else if (z <= (-4.8d-252)) then
tmp = x + ((y * t) / a)
else if (z <= 1.85d-214) then
tmp = y * ((t - x) / a)
else if (z <= 1.9d+55) 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 - (y * (t / z));
double tmp;
if (z <= -6500000000000.0) {
tmp = t_1;
} else if (z <= -4.8e-252) {
tmp = x + ((y * t) / a);
} else if (z <= 1.85e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 1.9e+55) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y * (t / z)) tmp = 0 if z <= -6500000000000.0: tmp = t_1 elif z <= -4.8e-252: tmp = x + ((y * t) / a) elif z <= 1.85e-214: tmp = y * ((t - x) / a) elif z <= 1.9e+55: tmp = x * (1.0 - (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(y * Float64(t / z))) tmp = 0.0 if (z <= -6500000000000.0) tmp = t_1; elseif (z <= -4.8e-252) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.85e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 1.9e+55) 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 - (y * (t / z)); tmp = 0.0; if (z <= -6500000000000.0) tmp = t_1; elseif (z <= -4.8e-252) tmp = x + ((y * t) / a); elseif (z <= 1.85e-214) tmp = y * ((t - x) / a); elseif (z <= 1.9e+55) 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[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6500000000000.0], t$95$1, If[LessEqual[z, -4.8e-252], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+55], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - y \cdot \frac{t}{z}\\
\mathbf{if}\;z \leq -6500000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-252}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -6.5e12 or 1.9e55 < z Initial program 38.6%
associate-*l/75.7%
Simplified75.7%
Taylor expanded in x around 0 36.6%
associate-*r/63.0%
Simplified63.0%
Taylor expanded in a around 0 56.3%
mul-1-neg56.3%
div-sub56.3%
sub-neg56.3%
*-inverses56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in t around 0 56.3%
sub-neg56.3%
distribute-frac-neg56.3%
distribute-lft-in56.3%
*-rgt-identity56.3%
associate-*r/48.6%
distribute-rgt-neg-in48.6%
neg-mul-148.6%
associate-*r/48.6%
mul-1-neg48.6%
unsub-neg48.6%
associate-/l*56.3%
associate-/r/56.3%
Simplified56.3%
if -6.5e12 < z < -4.8000000000000003e-252Initial program 88.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
*-commutative62.2%
Simplified62.2%
if -4.8000000000000003e-252 < z < 1.8500000000000001e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 1.8500000000000001e-214 < z < 1.9e55Initial program 78.3%
associate-*l/86.3%
Simplified86.3%
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 simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* y (/ t z)))))
(if (<= z -2.3e+14)
t_1
(if (<= z -5.2e-251)
(+ x (/ (* y t) a))
(if (<= z 1.85e-214)
(* y (/ (- t x) a))
(if (<= z 4.6e+57) (- x (/ x (/ a y))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y * (t / z));
double tmp;
if (z <= -2.3e+14) {
tmp = t_1;
} else if (z <= -5.2e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 1.85e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4.6e+57) {
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 * (t / z))
if (z <= (-2.3d+14)) then
tmp = t_1
else if (z <= (-5.2d-251)) then
tmp = x + ((y * t) / a)
else if (z <= 1.85d-214) then
tmp = y * ((t - x) / a)
else if (z <= 4.6d+57) 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 * (t / z));
double tmp;
if (z <= -2.3e+14) {
tmp = t_1;
} else if (z <= -5.2e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 1.85e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4.6e+57) {
tmp = x - (x / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y * (t / z)) tmp = 0 if z <= -2.3e+14: tmp = t_1 elif z <= -5.2e-251: tmp = x + ((y * t) / a) elif z <= 1.85e-214: tmp = y * ((t - x) / a) elif z <= 4.6e+57: 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(t / z))) tmp = 0.0 if (z <= -2.3e+14) tmp = t_1; elseif (z <= -5.2e-251) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.85e-214) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 4.6e+57) 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 * (t / z)); tmp = 0.0; if (z <= -2.3e+14) tmp = t_1; elseif (z <= -5.2e-251) tmp = x + ((y * t) / a); elseif (z <= 1.85e-214) tmp = y * ((t - x) / a); elseif (z <= 4.6e+57) 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[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.3e+14], t$95$1, If[LessEqual[z, -5.2e-251], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e-214], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e+57], 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{t}{z}\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-251}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+57}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.3e14 or 4.5999999999999998e57 < z Initial program 38.6%
associate-*l/75.7%
Simplified75.7%
Taylor expanded in x around 0 36.6%
associate-*r/63.0%
Simplified63.0%
Taylor expanded in a around 0 56.3%
mul-1-neg56.3%
div-sub56.3%
sub-neg56.3%
*-inverses56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in t around 0 56.3%
sub-neg56.3%
distribute-frac-neg56.3%
distribute-lft-in56.3%
*-rgt-identity56.3%
associate-*r/48.6%
distribute-rgt-neg-in48.6%
neg-mul-148.6%
associate-*r/48.6%
mul-1-neg48.6%
unsub-neg48.6%
associate-/l*56.3%
associate-/r/56.3%
Simplified56.3%
if -2.3e14 < z < -5.1999999999999998e-251Initial program 88.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
*-commutative62.2%
Simplified62.2%
if -5.1999999999999998e-251 < z < 1.8500000000000001e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 1.8500000000000001e-214 < z < 4.5999999999999998e57Initial program 78.3%
associate-*l/86.3%
Simplified86.3%
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 simplification61.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.15e+15)
(* t (- 1.0 (/ y z)))
(if (<= z -1.3e-251)
(+ x (/ (* y t) a))
(if (<= z 2.8e-214)
(* y (/ (- t x) a))
(if (<= z 4e+56) (- x (/ x (/ a y))) (- t (* y (/ t z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -1.3e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 2.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4e+56) {
tmp = x - (x / (a / y));
} else {
tmp = t - (y * (t / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.15d+15)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= (-1.3d-251)) then
tmp = x + ((y * t) / a)
else if (z <= 2.8d-214) then
tmp = y * ((t - x) / a)
else if (z <= 4d+56) then
tmp = x - (x / (a / y))
else
tmp = t - (y * (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+15) {
tmp = t * (1.0 - (y / z));
} else if (z <= -1.3e-251) {
tmp = x + ((y * t) / a);
} else if (z <= 2.8e-214) {
tmp = y * ((t - x) / a);
} else if (z <= 4e+56) {
tmp = x - (x / (a / y));
} else {
tmp = t - (y * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.15e+15: tmp = t * (1.0 - (y / z)) elif z <= -1.3e-251: tmp = x + ((y * t) / a) elif z <= 2.8e-214: tmp = y * ((t - x) / a) elif z <= 4e+56: tmp = x - (x / (a / y)) else: tmp = t - (y * (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+15) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= -1.3e-251) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 2.8e-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(y * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.15e+15) tmp = t * (1.0 - (y / z)); elseif (z <= -1.3e-251) tmp = x + ((y * t) / a); elseif (z <= 2.8e-214) tmp = y * ((t - x) / a); elseif (z <= 4e+56) tmp = x - (x / (a / y)); else tmp = t - (y * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+15], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-251], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-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[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+15}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-251}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 2.8 \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 - y \cdot \frac{t}{z}\\
\end{array}
\end{array}
if z < -1.15e15Initial program 40.8%
associate-*l/77.1%
Simplified77.1%
Taylor expanded in x around 0 40.7%
associate-*r/63.4%
Simplified63.4%
Taylor expanded in a around 0 57.1%
mul-1-neg57.1%
div-sub57.2%
sub-neg57.2%
*-inverses57.2%
metadata-eval57.2%
Simplified57.2%
if -1.15e15 < z < -1.3e-251Initial program 88.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 66.1%
Taylor expanded in t around inf 62.2%
*-commutative62.2%
Simplified62.2%
if -1.3e-251 < z < 2.8000000000000002e-214Initial program 89.9%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in z around 0 88.1%
Taylor expanded in y around inf 82.7%
div-sub86.2%
Simplified86.2%
if 2.8000000000000002e-214 < z < 4.00000000000000037e56Initial program 78.3%
associate-*l/86.3%
Simplified86.3%
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 36.1%
associate-*l/74.0%
Simplified74.0%
Taylor expanded in x around 0 31.9%
associate-*r/62.6%
Simplified62.6%
Taylor expanded in a around 0 55.2%
mul-1-neg55.2%
div-sub55.2%
sub-neg55.2%
*-inverses55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 55.2%
sub-neg55.2%
distribute-frac-neg55.2%
distribute-lft-in55.2%
*-rgt-identity55.2%
associate-*r/46.1%
distribute-rgt-neg-in46.1%
neg-mul-146.1%
associate-*r/46.1%
mul-1-neg46.1%
unsub-neg46.1%
associate-/l*55.2%
associate-/r/55.3%
Simplified55.3%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(if (<= x -2.2e+56)
(- x (* x (/ y a)))
(if (<= x 8e-11)
(* t (/ (- y z) (- a z)))
(if (<= x 1.08e+160) (* y (/ (- t x) (- a z))) (* x (- 1.0 (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -2.2e+56) {
tmp = x - (x * (y / a));
} else if (x <= 8e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 1.08e+160) {
tmp = y * ((t - x) / (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 <= (-2.2d+56)) then
tmp = x - (x * (y / a))
else if (x <= 8d-11) then
tmp = t * ((y - z) / (a - z))
else if (x <= 1.08d+160) then
tmp = y * ((t - x) / (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 <= -2.2e+56) {
tmp = x - (x * (y / a));
} else if (x <= 8e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 1.08e+160) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -2.2e+56: tmp = x - (x * (y / a)) elif x <= 8e-11: tmp = t * ((y - z) / (a - z)) elif x <= 1.08e+160: tmp = y * ((t - x) / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -2.2e+56) tmp = Float64(x - Float64(x * Float64(y / a))); elseif (x <= 8e-11) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (x <= 1.08e+160) tmp = Float64(y * Float64(Float64(t - x) / 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 <= -2.2e+56) tmp = x - (x * (y / a)); elseif (x <= 8e-11) tmp = t * ((y - z) / (a - z)); elseif (x <= 1.08e+160) tmp = y * ((t - x) / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.2e+56], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e-11], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.08e+160], N[(y * N[(N[(t - x), $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 -2.2 \cdot 10^{+56}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-11}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{+160}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -2.20000000000000016e56Initial program 47.1%
associate-*l/80.4%
Simplified80.4%
Taylor expanded in z around 0 51.2%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in x around inf 55.2%
distribute-lft-in55.3%
*-rgt-identity55.3%
mul-1-neg55.3%
distribute-rgt-neg-in55.3%
associate-*r/48.0%
unsub-neg48.0%
associate-*r/55.3%
Simplified55.3%
if -2.20000000000000016e56 < x < 7.99999999999999952e-11Initial program 74.4%
associate-*l/88.9%
Simplified88.9%
Taylor expanded in x around 0 57.0%
associate-*r/70.3%
Simplified70.3%
if 7.99999999999999952e-11 < x < 1.08000000000000003e160Initial program 57.5%
associate-*l/78.4%
Simplified78.4%
Taylor expanded in y around inf 67.7%
div-sub67.7%
Simplified67.7%
if 1.08000000000000003e160 < x Initial program 56.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in z around 0 53.5%
Taylor expanded in x around inf 60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Final simplification65.6%
(FPCore (x y z t a)
:precision binary64
(if (<= x -6e+56)
(- x (* x (/ y a)))
(if (<= x 4.3e-11)
(* t (/ (- y z) (- a z)))
(if (<= x 1.08e+160) (* (- t x) (/ y (- a z))) (* x (- 1.0 (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -6e+56) {
tmp = x - (x * (y / a));
} else if (x <= 4.3e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 1.08e+160) {
tmp = (t - x) * (y / (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 <= (-6d+56)) then
tmp = x - (x * (y / a))
else if (x <= 4.3d-11) then
tmp = t * ((y - z) / (a - z))
else if (x <= 1.08d+160) then
tmp = (t - x) * (y / (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 <= -6e+56) {
tmp = x - (x * (y / a));
} else if (x <= 4.3e-11) {
tmp = t * ((y - z) / (a - z));
} else if (x <= 1.08e+160) {
tmp = (t - x) * (y / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -6e+56: tmp = x - (x * (y / a)) elif x <= 4.3e-11: tmp = t * ((y - z) / (a - z)) elif x <= 1.08e+160: tmp = (t - x) * (y / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -6e+56) tmp = Float64(x - Float64(x * Float64(y / a))); elseif (x <= 4.3e-11) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (x <= 1.08e+160) tmp = Float64(Float64(t - x) * Float64(y / 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 <= -6e+56) tmp = x - (x * (y / a)); elseif (x <= 4.3e-11) tmp = t * ((y - z) / (a - z)); elseif (x <= 1.08e+160) tmp = (t - x) * (y / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -6e+56], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e-11], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.08e+160], N[(N[(t - x), $MachinePrecision] * N[(y / 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 -6 \cdot 10^{+56}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-11}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{+160}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -6.00000000000000012e56Initial program 47.1%
associate-*l/80.4%
Simplified80.4%
Taylor expanded in z around 0 51.2%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in x around inf 55.2%
distribute-lft-in55.3%
*-rgt-identity55.3%
mul-1-neg55.3%
distribute-rgt-neg-in55.3%
associate-*r/48.0%
unsub-neg48.0%
associate-*r/55.3%
Simplified55.3%
if -6.00000000000000012e56 < x < 4.30000000000000001e-11Initial program 74.4%
associate-*l/88.9%
Simplified88.9%
Taylor expanded in x around 0 57.0%
associate-*r/70.3%
Simplified70.3%
if 4.30000000000000001e-11 < x < 1.08000000000000003e160Initial program 57.5%
associate-/l*78.3%
Simplified78.3%
div-sub78.4%
Applied egg-rr78.4%
Taylor expanded in y around inf 67.7%
div-sub67.8%
associate-/r/70.8%
Simplified70.8%
if 1.08000000000000003e160 < x Initial program 56.7%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in z around 0 53.5%
Taylor expanded in x around inf 60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Final simplification65.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ y (/ z (- t x))))))
(if (<= z -5.9e-46)
t_1
(if (<= z 3e-52)
(+ x (/ y (/ a (- t x))))
(if (<= z 2.1e+110) (- x (* t (/ z (- a z)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y / (z / (t - x)));
double tmp;
if (z <= -5.9e-46) {
tmp = t_1;
} else if (z <= 3e-52) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 2.1e+110) {
tmp = x - (t * (z / (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 = t - (y / (z / (t - x)))
if (z <= (-5.9d-46)) then
tmp = t_1
else if (z <= 3d-52) then
tmp = x + (y / (a / (t - x)))
else if (z <= 2.1d+110) then
tmp = x - (t * (z / (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 = t - (y / (z / (t - x)));
double tmp;
if (z <= -5.9e-46) {
tmp = t_1;
} else if (z <= 3e-52) {
tmp = x + (y / (a / (t - x)));
} else if (z <= 2.1e+110) {
tmp = x - (t * (z / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y / (z / (t - x))) tmp = 0 if z <= -5.9e-46: tmp = t_1 elif z <= 3e-52: tmp = x + (y / (a / (t - x))) elif z <= 2.1e+110: tmp = x - (t * (z / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(y / Float64(z / Float64(t - x)))) tmp = 0.0 if (z <= -5.9e-46) tmp = t_1; elseif (z <= 3e-52) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (z <= 2.1e+110) tmp = Float64(x - Float64(t * Float64(z / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (y / (z / (t - x))); tmp = 0.0; if (z <= -5.9e-46) tmp = t_1; elseif (z <= 3e-52) tmp = x + (y / (a / (t - x))); elseif (z <= 2.1e+110) tmp = x - (t * (z / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.9e-46], t$95$1, If[LessEqual[z, 3e-52], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+110], N[(x - N[(t * N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{if}\;z \leq -5.9 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-52}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+110}:\\
\;\;\;\;x - t \cdot \frac{z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -5.8999999999999999e-46 or 2.10000000000000015e110 < z Initial program 39.2%
+-commutative39.2%
associate-*l/75.9%
fma-def75.9%
Simplified75.9%
Taylor expanded in z around -inf 61.8%
Taylor expanded in a around 0 59.0%
mul-1-neg59.0%
unsub-neg59.0%
associate-/l*71.2%
Simplified71.2%
if -5.8999999999999999e-46 < z < 3e-52Initial program 84.5%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in z around 0 71.3%
associate-/l*80.4%
Simplified80.4%
if 3e-52 < z < 2.10000000000000015e110Initial program 86.6%
associate-/l*83.0%
Simplified83.0%
div-sub82.8%
Applied egg-rr82.8%
Taylor expanded in x around 0 69.7%
Taylor expanded in y around 0 66.0%
div-sub66.1%
associate-/r/72.3%
Simplified72.3%
Final simplification75.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ y (/ z (- t x))))))
(if (<= z -2e+87)
t_1
(if (<= z 9.8e+17)
(+ x (* (- t x) (/ y (- a z))))
(if (<= z 1.5e+110) (- x (* t (/ z (- a z)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y / (z / (t - x)));
double tmp;
if (z <= -2e+87) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.5e+110) {
tmp = x - (t * (z / (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 = t - (y / (z / (t - x)))
if (z <= (-2d+87)) then
tmp = t_1
else if (z <= 9.8d+17) then
tmp = x + ((t - x) * (y / (a - z)))
else if (z <= 1.5d+110) then
tmp = x - (t * (z / (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 = t - (y / (z / (t - x)));
double tmp;
if (z <= -2e+87) {
tmp = t_1;
} else if (z <= 9.8e+17) {
tmp = x + ((t - x) * (y / (a - z)));
} else if (z <= 1.5e+110) {
tmp = x - (t * (z / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y / (z / (t - x))) tmp = 0 if z <= -2e+87: tmp = t_1 elif z <= 9.8e+17: tmp = x + ((t - x) * (y / (a - z))) elif z <= 1.5e+110: tmp = x - (t * (z / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(y / Float64(z / Float64(t - x)))) tmp = 0.0 if (z <= -2e+87) tmp = t_1; elseif (z <= 9.8e+17) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / Float64(a - z)))); elseif (z <= 1.5e+110) tmp = Float64(x - Float64(t * Float64(z / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (y / (z / (t - x))); tmp = 0.0; if (z <= -2e+87) tmp = t_1; elseif (z <= 9.8e+17) tmp = x + ((t - x) * (y / (a - z))); elseif (z <= 1.5e+110) tmp = x - (t * (z / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+87], 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.5e+110], N[(x - N[(t * N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+87}:\\
\;\;\;\;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.5 \cdot 10^{+110}:\\
\;\;\;\;x - t \cdot \frac{z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.9999999999999999e87 or 1.50000000000000004e110 < z Initial program 25.1%
+-commutative25.1%
associate-*l/70.4%
fma-def70.4%
Simplified70.4%
Taylor expanded in z around -inf 61.9%
Taylor expanded in a around 0 59.2%
mul-1-neg59.2%
unsub-neg59.2%
associate-/l*75.4%
Simplified75.4%
if -1.9999999999999999e87 < z < 9.8e17Initial program 84.6%
associate-*l/91.6%
Simplified91.6%
Taylor expanded in y around inf 81.4%
if 9.8e17 < z < 1.50000000000000004e110Initial program 83.6%
associate-/l*78.0%
Simplified78.0%
div-sub78.0%
Applied egg-rr78.0%
Taylor expanded in x around 0 73.0%
Taylor expanded in y around 0 72.7%
div-sub72.7%
associate-/r/82.6%
Simplified82.6%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.55e-33) (not (<= z 7.2e+63))) (* t (/ (- y z) (- a z))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.55e-33) || !(z <= 7.2e+63)) {
tmp = t * ((y - z) / (a - z));
} 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 <= (-1.55d-33)) .or. (.not. (z <= 7.2d+63))) then
tmp = t * ((y - z) / (a - z))
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 <= -1.55e-33) || !(z <= 7.2e+63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.55e-33) or not (z <= 7.2e+63): tmp = t * ((y - z) / (a - z)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.55e-33) || !(z <= 7.2e+63)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); 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 <= -1.55e-33) || ~((z <= 7.2e+63))) tmp = t * ((y - z) / (a - z)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.55e-33], N[Not[LessEqual[z, 7.2e+63]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $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 -1.55 \cdot 10^{-33} \lor \neg \left(z \leq 7.2 \cdot 10^{+63}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.54999999999999998e-33 or 7.19999999999999998e63 < z Initial program 41.9%
associate-*l/76.5%
Simplified76.5%
Taylor expanded in x around 0 37.7%
associate-*r/62.3%
Simplified62.3%
if -1.54999999999999998e-33 < z < 7.19999999999999998e63Initial program 84.9%
associate-*l/91.3%
Simplified91.3%
Taylor expanded in z around 0 68.9%
associate-/l*76.5%
Simplified76.5%
Final simplification69.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.8e-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.8e-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.8d-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.8e-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.8e-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.8e-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.8e-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.8e-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.8 \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.8000000000000001e-45 or 1.22e55 < z Initial program 44.2%
+-commutative44.2%
associate-*l/77.4%
fma-def77.4%
Simplified77.4%
Taylor expanded in z around -inf 61.1%
Taylor expanded in a around 0 58.6%
mul-1-neg58.6%
unsub-neg58.6%
associate-/l*69.6%
Simplified69.6%
if -2.8000000000000001e-45 < z < 1.22e55Initial program 84.3%
associate-*l/90.9%
Simplified90.9%
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.6e+56) (- x (* x (/ y a))) (if (<= x 1.05e+23) (* 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.6e+56) {
tmp = x - (x * (y / a));
} else if (x <= 1.05e+23) {
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.6d+56)) then
tmp = x - (x * (y / a))
else if (x <= 1.05d+23) 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.6e+56) {
tmp = x - (x * (y / a));
} else if (x <= 1.05e+23) {
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.6e+56: tmp = x - (x * (y / a)) elif x <= 1.05e+23: 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.6e+56) tmp = Float64(x - Float64(x * Float64(y / a))); elseif (x <= 1.05e+23) 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.6e+56) tmp = x - (x * (y / a)); elseif (x <= 1.05e+23) 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.6e+56], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e+23], 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.6 \cdot 10^{+56}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+23}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -1.60000000000000002e56Initial program 47.1%
associate-*l/80.4%
Simplified80.4%
Taylor expanded in z around 0 51.2%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in x around inf 55.2%
distribute-lft-in55.3%
*-rgt-identity55.3%
mul-1-neg55.3%
distribute-rgt-neg-in55.3%
associate-*r/48.0%
unsub-neg48.0%
associate-*r/55.3%
Simplified55.3%
if -1.60000000000000002e56 < x < 1.0500000000000001e23Initial program 74.7%
associate-*l/88.9%
Simplified88.9%
Taylor expanded in x around 0 55.7%
associate-*r/68.9%
Simplified68.9%
if 1.0500000000000001e23 < x Initial program 53.6%
associate-*l/75.8%
Simplified75.8%
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 (<= a -3.05e+121) x (if (<= a 4e+116) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.05e+121) {
tmp = x;
} else if (a <= 4e+116) {
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.05d+121)) then
tmp = x
else if (a <= 4d+116) 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.05e+121) {
tmp = x;
} else if (a <= 4e+116) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.05e+121: tmp = x elif a <= 4e+116: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.05e+121) tmp = x; elseif (a <= 4e+116) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.05e+121) tmp = x; elseif (a <= 4e+116) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.05e+121], x, If[LessEqual[a, 4e+116], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.05 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+116}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.0499999999999999e121 or 4.00000000000000006e116 < a Initial program 67.7%
associate-*l/91.4%
Simplified91.4%
Taylor expanded in a around inf 58.0%
if -3.0499999999999999e121 < a < 4.00000000000000006e116Initial program 63.1%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in z around inf 35.0%
Final simplification42.1%
(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 64.5%
associate-*l/84.3%
Simplified84.3%
Taylor expanded in z around inf 26.2%
Final simplification26.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} 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 / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
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 / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023275
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))