
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_1 -5e-260)
(+ x (/ (- t x) (+ (/ a (- y z)) (/ z (- z y)))))
(if (<= t_1 0.0)
(+ t (* (/ (- t x) z) (- a y)))
(+ x (/ (- x t) (/ (- a z) (- z y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -5e-260) {
tmp = x + ((t - x) / ((a / (y - z)) + (z / (z - y))));
} else if (t_1 <= 0.0) {
tmp = t + (((t - x) / z) * (a - y));
} else {
tmp = x + ((x - t) / ((a - z) / (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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if (t_1 <= (-5d-260)) then
tmp = x + ((t - x) / ((a / (y - z)) + (z / (z - y))))
else if (t_1 <= 0.0d0) then
tmp = t + (((t - x) / z) * (a - y))
else
tmp = x + ((x - t) / ((a - z) / (z - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -5e-260) {
tmp = x + ((t - x) / ((a / (y - z)) + (z / (z - y))));
} else if (t_1 <= 0.0) {
tmp = t + (((t - x) / z) * (a - y));
} else {
tmp = x + ((x - t) / ((a - z) / (z - y)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_1 <= -5e-260: tmp = x + ((t - x) / ((a / (y - z)) + (z / (z - y)))) elif t_1 <= 0.0: tmp = t + (((t - x) / z) * (a - y)) else: tmp = x + ((x - t) / ((a - z) / (z - y))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -5e-260) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a / Float64(y - z)) + Float64(z / Float64(z - y))))); elseif (t_1 <= 0.0) tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); else tmp = Float64(x + Float64(Float64(x - t) / Float64(Float64(a - z) / Float64(z - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_1 <= -5e-260) tmp = x + ((t - x) / ((a / (y - z)) + (z / (z - y)))); elseif (t_1 <= 0.0) tmp = t + (((t - x) / z) * (a - y)); else tmp = x + ((x - t) / ((a - z) / (z - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-260], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision] + N[(z / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(x - t), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-260}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z} + \frac{z}{z - y}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{x - t}{\frac{a - z}{z - y}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-260Initial program 88.6%
*-commutative88.6%
associate-*l/80.4%
associate-*r/94.1%
clear-num94.0%
un-div-inv94.1%
Applied egg-rr94.1%
div-sub94.2%
Applied egg-rr94.2%
if -5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 75.1%
associate--l+75.1%
distribute-lft-out--75.1%
div-sub75.1%
mul-1-neg75.1%
unsub-neg75.1%
div-sub75.1%
associate-/l*99.8%
associate-/l*99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.6%
*-commutative91.6%
associate-*l/74.6%
associate-*r/92.7%
clear-num92.5%
un-div-inv93.3%
Applied egg-rr93.3%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -1e-241) (not (<= t_1 2e-299)))
t_1
(+ t (* (/ (- t x) z) (- a y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -1e-241) || !(t_1 <= 2e-299)) {
tmp = t_1;
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-1d-241)) .or. (.not. (t_1 <= 2d-299))) then
tmp = t_1
else
tmp = t + (((t - x) / z) * (a - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -1e-241) || !(t_1 <= 2e-299)) {
tmp = t_1;
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -1e-241) or not (t_1 <= 2e-299): tmp = t_1 else: tmp = t + (((t - x) / z) * (a - y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -1e-241) || !(t_1 <= 2e-299)) tmp = t_1; else tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -1e-241) || ~((t_1 <= 2e-299))) tmp = t_1; else tmp = t + (((t - x) / z) * (a - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-241], N[Not[LessEqual[t$95$1, 2e-299]], $MachinePrecision]], t$95$1, N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-241} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-299}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.9999999999999997e-242 or 1.99999999999999998e-299 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.5%
if -9.9999999999999997e-242 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.99999999999999998e-299Initial program 3.8%
Taylor expanded in z around inf 74.9%
associate--l+74.9%
distribute-lft-out--74.9%
div-sub74.9%
mul-1-neg74.9%
unsub-neg74.9%
div-sub74.9%
associate-/l*96.4%
associate-/l*93.7%
distribute-rgt-out--93.7%
Simplified93.7%
Final simplification91.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -5e-260) (not (<= t_1 0.0)))
(+ x (/ (- x t) (/ (- a z) (- z y))))
(+ t (* (/ (- t x) z) (- a y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-260) || !(t_1 <= 0.0)) {
tmp = x + ((x - t) / ((a - z) / (z - y)));
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-5d-260)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((x - t) / ((a - z) / (z - y)))
else
tmp = t + (((t - x) / z) * (a - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-260) || !(t_1 <= 0.0)) {
tmp = x + ((x - t) / ((a - z) / (z - y)));
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -5e-260) or not (t_1 <= 0.0): tmp = x + ((x - t) / ((a - z) / (z - y))) else: tmp = t + (((t - x) / z) * (a - y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-260) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(x - t) / Float64(Float64(a - z) / Float64(z - y)))); else tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -5e-260) || ~((t_1 <= 0.0))) tmp = x + ((x - t) / ((a - z) / (z - y))); else tmp = t + (((t - x) / z) * (a - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-260], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(x - t), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-260} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{x - t}{\frac{a - z}{z - y}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-260 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.1%
*-commutative90.1%
associate-*l/77.6%
associate-*r/93.4%
clear-num93.3%
un-div-inv93.7%
Applied egg-rr93.7%
if -5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 75.1%
associate--l+75.1%
distribute-lft-out--75.1%
div-sub75.1%
mul-1-neg75.1%
unsub-neg75.1%
div-sub75.1%
associate-/l*99.8%
associate-/l*99.7%
distribute-rgt-out--99.7%
Simplified99.7%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (* y (/ (- x t) a)))))
(if (<= a -7.2e+125)
t_2
(if (<= a -1.55e-205)
t_1
(if (<= a 1.25e-246)
(* y (/ (- t x) (- a z)))
(if (<= a 6.5e+45)
t_1
(if (<= a 2.6e+115)
t_2
(if (<= a 6.3e+122)
(* t (- 1.0 (/ y z)))
(- x (* t (/ (- z y) a)))))))))))
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 * ((x - t) / a));
double tmp;
if (a <= -7.2e+125) {
tmp = t_2;
} else if (a <= -1.55e-205) {
tmp = t_1;
} else if (a <= 1.25e-246) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.5e+45) {
tmp = t_1;
} else if (a <= 2.6e+115) {
tmp = t_2;
} else if (a <= 6.3e+122) {
tmp = t * (1.0 - (y / z));
} else {
tmp = 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) :: t_2
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
t_2 = x - (y * ((x - t) / a))
if (a <= (-7.2d+125)) then
tmp = t_2
else if (a <= (-1.55d-205)) then
tmp = t_1
else if (a <= 1.25d-246) then
tmp = y * ((t - x) / (a - z))
else if (a <= 6.5d+45) then
tmp = t_1
else if (a <= 2.6d+115) then
tmp = t_2
else if (a <= 6.3d+122) then
tmp = t * (1.0d0 - (y / z))
else
tmp = 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 = t * ((y - z) / (a - z));
double t_2 = x - (y * ((x - t) / a));
double tmp;
if (a <= -7.2e+125) {
tmp = t_2;
} else if (a <= -1.55e-205) {
tmp = t_1;
} else if (a <= 1.25e-246) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.5e+45) {
tmp = t_1;
} else if (a <= 2.6e+115) {
tmp = t_2;
} else if (a <= 6.3e+122) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x - (t * ((z - y) / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x - (y * ((x - t) / a)) tmp = 0 if a <= -7.2e+125: tmp = t_2 elif a <= -1.55e-205: tmp = t_1 elif a <= 1.25e-246: tmp = y * ((t - x) / (a - z)) elif a <= 6.5e+45: tmp = t_1 elif a <= 2.6e+115: tmp = t_2 elif a <= 6.3e+122: tmp = t * (1.0 - (y / z)) else: tmp = x - (t * ((z - y) / a)) 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(y * Float64(Float64(x - t) / a))) tmp = 0.0 if (a <= -7.2e+125) tmp = t_2; elseif (a <= -1.55e-205) tmp = t_1; elseif (a <= 1.25e-246) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 6.5e+45) tmp = t_1; elseif (a <= 2.6e+115) tmp = t_2; elseif (a <= 6.3e+122) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(x - Float64(t * Float64(Float64(z - y) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x - (y * ((x - t) / a)); tmp = 0.0; if (a <= -7.2e+125) tmp = t_2; elseif (a <= -1.55e-205) tmp = t_1; elseif (a <= 1.25e-246) tmp = y * ((t - x) / (a - z)); elseif (a <= 6.5e+45) tmp = t_1; elseif (a <= 2.6e+115) tmp = t_2; elseif (a <= 6.3e+122) tmp = t * (1.0 - (y / z)); else tmp = x - (t * ((z - y) / a)); 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[(y * N[(N[(x - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.2e+125], t$95$2, If[LessEqual[a, -1.55e-205], t$95$1, If[LessEqual[a, 1.25e-246], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e+45], t$95$1, If[LessEqual[a, 2.6e+115], t$95$2, If[LessEqual[a, 6.3e+122], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(t * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - y \cdot \frac{x - t}{a}\\
\mathbf{if}\;a \leq -7.2 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{-205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-246}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+115}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 6.3 \cdot 10^{+122}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x - t \cdot \frac{z - y}{a}\\
\end{array}
\end{array}
if a < -7.2000000000000007e125 or 6.50000000000000034e45 < a < 2.6e115Initial program 93.7%
Taylor expanded in z around 0 63.5%
associate-/l*79.5%
Simplified79.5%
if -7.2000000000000007e125 < a < -1.54999999999999991e-205 or 1.2499999999999999e-246 < a < 6.50000000000000034e45Initial program 76.0%
Taylor expanded in x around 0 55.2%
associate-/l*66.9%
Simplified66.9%
if -1.54999999999999991e-205 < a < 1.2499999999999999e-246Initial program 68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
if 2.6e115 < a < 6.3000000000000001e122Initial program 100.0%
Taylor expanded in a around 0 6.7%
mul-1-neg6.7%
unsub-neg6.7%
associate-/l*100.0%
div-sub100.0%
sub-neg100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around inf 100.0%
if 6.3000000000000001e122 < a Initial program 85.4%
*-commutative85.4%
associate-*l/68.1%
associate-*r/88.3%
clear-num88.1%
un-div-inv88.4%
Applied egg-rr88.4%
Taylor expanded in a around inf 75.9%
Taylor expanded in t around inf 64.0%
associate-/l*70.7%
Simplified70.7%
Final simplification71.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (* y (/ (- x t) a)))))
(if (<= a -5.5e+125)
t_2
(if (<= a -4.8e+59)
t_1
(if (<= a -53000000000000.0)
t_2
(if (<= a 2.8e-155)
(+ t (/ (* y (- x t)) z))
(if (<= a 1.46e+38) t_1 (+ x (/ (- t x) (/ a y))))))))))
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 * ((x - t) / a));
double tmp;
if (a <= -5.5e+125) {
tmp = t_2;
} else if (a <= -4.8e+59) {
tmp = t_1;
} else if (a <= -53000000000000.0) {
tmp = t_2;
} else if (a <= 2.8e-155) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1.46e+38) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
t_2 = x - (y * ((x - t) / a))
if (a <= (-5.5d+125)) then
tmp = t_2
else if (a <= (-4.8d+59)) then
tmp = t_1
else if (a <= (-53000000000000.0d0)) then
tmp = t_2
else if (a <= 2.8d-155) then
tmp = t + ((y * (x - t)) / z)
else if (a <= 1.46d+38) then
tmp = t_1
else
tmp = x + ((t - x) / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x - (y * ((x - t) / a));
double tmp;
if (a <= -5.5e+125) {
tmp = t_2;
} else if (a <= -4.8e+59) {
tmp = t_1;
} else if (a <= -53000000000000.0) {
tmp = t_2;
} else if (a <= 2.8e-155) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1.46e+38) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x - (y * ((x - t) / a)) tmp = 0 if a <= -5.5e+125: tmp = t_2 elif a <= -4.8e+59: tmp = t_1 elif a <= -53000000000000.0: tmp = t_2 elif a <= 2.8e-155: tmp = t + ((y * (x - t)) / z) elif a <= 1.46e+38: tmp = t_1 else: tmp = x + ((t - x) / (a / y)) 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(y * Float64(Float64(x - t) / a))) tmp = 0.0 if (a <= -5.5e+125) tmp = t_2; elseif (a <= -4.8e+59) tmp = t_1; elseif (a <= -53000000000000.0) tmp = t_2; elseif (a <= 2.8e-155) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (a <= 1.46e+38) tmp = t_1; else tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x - (y * ((x - t) / a)); tmp = 0.0; if (a <= -5.5e+125) tmp = t_2; elseif (a <= -4.8e+59) tmp = t_1; elseif (a <= -53000000000000.0) tmp = t_2; elseif (a <= 2.8e-155) tmp = t + ((y * (x - t)) / z); elseif (a <= 1.46e+38) tmp = t_1; else tmp = x + ((t - x) / (a / y)); 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[(y * N[(N[(x - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+125], t$95$2, If[LessEqual[a, -4.8e+59], t$95$1, If[LessEqual[a, -53000000000000.0], t$95$2, If[LessEqual[a, 2.8e-155], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.46e+38], t$95$1, N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - y \cdot \frac{x - t}{a}\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -53000000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-155}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -5.49999999999999996e125 or -4.8000000000000004e59 < a < -5.3e13Initial program 96.5%
Taylor expanded in z around 0 67.1%
associate-/l*83.8%
Simplified83.8%
if -5.49999999999999996e125 < a < -4.8000000000000004e59 or 2.8e-155 < a < 1.46000000000000008e38Initial program 82.0%
Taylor expanded in x around 0 54.5%
associate-/l*73.8%
Simplified73.8%
if -5.3e13 < a < 2.8e-155Initial program 67.6%
*-commutative67.6%
associate-*l/65.5%
associate-*r/71.6%
clear-num71.4%
un-div-inv72.2%
Applied egg-rr72.2%
Taylor expanded in z around inf 76.8%
associate--l+76.8%
associate-*r/76.8%
associate-*r/76.8%
mul-1-neg76.8%
div-sub76.8%
mul-1-neg76.8%
distribute-lft-out--76.8%
associate-*r/76.8%
mul-1-neg76.8%
unsub-neg76.8%
distribute-rgt-out--76.8%
Simplified76.8%
Taylor expanded in y around inf 69.3%
if 1.46000000000000008e38 < a Initial program 86.8%
*-commutative86.8%
associate-*l/69.2%
associate-*r/88.9%
clear-num88.8%
un-div-inv89.0%
Applied egg-rr89.0%
Taylor expanded in z around 0 66.7%
Final simplification72.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (* t (/ (- z y) a)))))
(if (<= a -5.8e+125)
t_2
(if (<= a -1.6e-205)
t_1
(if (<= a 9.5e-251)
(* y (/ (- t x) (- a z)))
(if (<= a 1.12e+70) 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 - (t * ((z - y) / a));
double tmp;
if (a <= -5.8e+125) {
tmp = t_2;
} else if (a <= -1.6e-205) {
tmp = t_1;
} else if (a <= 9.5e-251) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 1.12e+70) {
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 - (t * ((z - y) / a))
if (a <= (-5.8d+125)) then
tmp = t_2
else if (a <= (-1.6d-205)) then
tmp = t_1
else if (a <= 9.5d-251) then
tmp = y * ((t - x) / (a - z))
else if (a <= 1.12d+70) 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 - (t * ((z - y) / a));
double tmp;
if (a <= -5.8e+125) {
tmp = t_2;
} else if (a <= -1.6e-205) {
tmp = t_1;
} else if (a <= 9.5e-251) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 1.12e+70) {
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 - (t * ((z - y) / a)) tmp = 0 if a <= -5.8e+125: tmp = t_2 elif a <= -1.6e-205: tmp = t_1 elif a <= 9.5e-251: tmp = y * ((t - x) / (a - z)) elif a <= 1.12e+70: 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(t * Float64(Float64(z - y) / a))) tmp = 0.0 if (a <= -5.8e+125) tmp = t_2; elseif (a <= -1.6e-205) tmp = t_1; elseif (a <= 9.5e-251) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 1.12e+70) 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 - (t * ((z - y) / a)); tmp = 0.0; if (a <= -5.8e+125) tmp = t_2; elseif (a <= -1.6e-205) tmp = t_1; elseif (a <= 9.5e-251) tmp = y * ((t - x) / (a - z)); elseif (a <= 1.12e+70) 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[(t * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.8e+125], t$95$2, If[LessEqual[a, -1.6e-205], t$95$1, If[LessEqual[a, 9.5e-251], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.12e+70], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x - t \cdot \frac{z - y}{a}\\
\mathbf{if}\;a \leq -5.8 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-251}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -5.79999999999999986e125 or 1.11999999999999993e70 < a Initial program 90.6%
*-commutative90.6%
associate-*l/69.1%
associate-*r/92.0%
clear-num91.9%
un-div-inv92.0%
Applied egg-rr92.0%
Taylor expanded in a around inf 82.7%
Taylor expanded in t around inf 66.5%
associate-/l*73.5%
Simplified73.5%
if -5.79999999999999986e125 < a < -1.60000000000000005e-205 or 9.49999999999999927e-251 < a < 1.11999999999999993e70Initial program 76.6%
Taylor expanded in x around 0 53.1%
associate-/l*65.0%
Simplified65.0%
if -1.60000000000000005e-205 < a < 9.49999999999999927e-251Initial program 68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
Final simplification69.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -6.2e+125)
(- x (* y (/ (- x t) a)))
(if (<= a -4.2e-206)
t_1
(if (<= a 5e-246)
(* y (/ (- t x) (- a z)))
(if (<= a 6.1e+35) t_1 (+ x (/ (- t x) (/ a y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -6.2e+125) {
tmp = x - (y * ((x - t) / a));
} else if (a <= -4.2e-206) {
tmp = t_1;
} else if (a <= 5e-246) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.1e+35) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (a <= (-6.2d+125)) then
tmp = x - (y * ((x - t) / a))
else if (a <= (-4.2d-206)) then
tmp = t_1
else if (a <= 5d-246) then
tmp = y * ((t - x) / (a - z))
else if (a <= 6.1d+35) then
tmp = t_1
else
tmp = x + ((t - x) / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -6.2e+125) {
tmp = x - (y * ((x - t) / a));
} else if (a <= -4.2e-206) {
tmp = t_1;
} else if (a <= 5e-246) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.1e+35) {
tmp = t_1;
} else {
tmp = x + ((t - x) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if a <= -6.2e+125: tmp = x - (y * ((x - t) / a)) elif a <= -4.2e-206: tmp = t_1 elif a <= 5e-246: tmp = y * ((t - x) / (a - z)) elif a <= 6.1e+35: tmp = t_1 else: tmp = x + ((t - x) / (a / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -6.2e+125) tmp = Float64(x - Float64(y * Float64(Float64(x - t) / a))); elseif (a <= -4.2e-206) tmp = t_1; elseif (a <= 5e-246) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 6.1e+35) tmp = t_1; else tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -6.2e+125) tmp = x - (y * ((x - t) / a)); elseif (a <= -4.2e-206) tmp = t_1; elseif (a <= 5e-246) tmp = y * ((t - x) / (a - z)); elseif (a <= 6.1e+35) tmp = t_1; else tmp = x + ((t - x) / (a / y)); 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]}, If[LessEqual[a, -6.2e+125], N[(x - N[(y * N[(N[(x - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e-206], t$95$1, If[LessEqual[a, 5e-246], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.1e+35], t$95$1, N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -6.2 \cdot 10^{+125}:\\
\;\;\;\;x - y \cdot \frac{x - t}{a}\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-246}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 6.1 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -6.2e125Initial program 95.9%
Taylor expanded in z around 0 63.2%
associate-/l*83.1%
Simplified83.1%
if -6.2e125 < a < -4.2000000000000002e-206 or 4.9999999999999997e-246 < a < 6.09999999999999977e35Initial program 75.6%
Taylor expanded in x around 0 54.4%
associate-/l*66.3%
Simplified66.3%
if -4.2000000000000002e-206 < a < 4.9999999999999997e-246Initial program 68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
if 6.09999999999999977e35 < a Initial program 86.8%
*-commutative86.8%
associate-*l/69.2%
associate-*r/88.9%
clear-num88.8%
un-div-inv89.0%
Applied egg-rr89.0%
Taylor expanded in z around 0 66.7%
Final simplification70.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -1.05e+126)
x
(if (<= a -7e-208)
t_1
(if (<= a 5.2e-262)
(* y (/ x z))
(if (<= a 2.75e+38) t_1 (/ (* x y) y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.05e+126) {
tmp = x;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 5.2e-262) {
tmp = y * (x / z);
} else if (a <= 2.75e+38) {
tmp = t_1;
} else {
tmp = (x * y) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (a <= (-1.05d+126)) then
tmp = x
else if (a <= (-7d-208)) then
tmp = t_1
else if (a <= 5.2d-262) then
tmp = y * (x / z)
else if (a <= 2.75d+38) then
tmp = t_1
else
tmp = (x * y) / y
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 (a <= -1.05e+126) {
tmp = x;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 5.2e-262) {
tmp = y * (x / z);
} else if (a <= 2.75e+38) {
tmp = t_1;
} else {
tmp = (x * y) / y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.05e+126: tmp = x elif a <= -7e-208: tmp = t_1 elif a <= 5.2e-262: tmp = y * (x / z) elif a <= 2.75e+38: tmp = t_1 else: tmp = (x * y) / y return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.05e+126) tmp = x; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 5.2e-262) tmp = Float64(y * Float64(x / z)); elseif (a <= 2.75e+38) tmp = t_1; else tmp = Float64(Float64(x * y) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.05e+126) tmp = x; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 5.2e-262) tmp = y * (x / z); elseif (a <= 2.75e+38) tmp = t_1; else tmp = (x * y) / y; 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[a, -1.05e+126], x, If[LessEqual[a, -7e-208], t$95$1, If[LessEqual[a, 5.2e-262], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.75e+38], t$95$1, N[(N[(x * y), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+126}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-262}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 2.75 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{y}\\
\end{array}
\end{array}
if a < -1.05e126Initial program 95.9%
Taylor expanded in a around inf 58.5%
if -1.05e126 < a < -6.99999999999999982e-208 or 5.1999999999999998e-262 < a < 2.7500000000000002e38Initial program 75.6%
Taylor expanded in a around 0 41.6%
mul-1-neg41.6%
unsub-neg41.6%
associate-/l*50.2%
div-sub50.2%
sub-neg50.2%
*-inverses50.2%
metadata-eval50.2%
Simplified50.2%
Taylor expanded in t around inf 50.0%
if -6.99999999999999982e-208 < a < 5.1999999999999998e-262Initial program 69.0%
Taylor expanded in a around 0 59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*62.3%
div-sub62.3%
sub-neg62.3%
*-inverses62.3%
metadata-eval62.3%
Simplified62.3%
Taylor expanded in x around -inf 41.0%
associate-/l*55.0%
Simplified55.0%
clear-num55.1%
un-div-inv57.2%
Applied egg-rr57.2%
associate-/r/58.6%
Simplified58.6%
if 2.7500000000000002e38 < a Initial program 86.6%
Taylor expanded in y around -inf 69.7%
mul-1-neg69.7%
*-commutative69.7%
distribute-rgt-neg-in69.7%
Simplified77.5%
Taylor expanded in a around inf 39.7%
associate-*r/39.7%
mul-1-neg39.7%
Simplified39.7%
associate-*l/46.1%
add-sqr-sqrt24.9%
sqrt-unprod23.3%
sqr-neg23.3%
sqrt-unprod1.0%
add-sqr-sqrt2.4%
add-sqr-sqrt1.1%
sqrt-unprod12.3%
sqr-neg12.3%
sqrt-unprod19.2%
add-sqr-sqrt46.1%
Applied egg-rr46.1%
Final simplification51.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))) (t_2 (+ x (* t (/ y a)))))
(if (<= a -1.55e+30)
t_2
(if (<= a -9e-208)
t_1
(if (<= a 4.8e-262) (* y (/ x z)) (if (<= a 3e+35) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -1.55e+30) {
tmp = t_2;
} else if (a <= -9e-208) {
tmp = t_1;
} else if (a <= 4.8e-262) {
tmp = y * (x / z);
} else if (a <= 3e+35) {
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 * (1.0d0 - (y / z))
t_2 = x + (t * (y / a))
if (a <= (-1.55d+30)) then
tmp = t_2
else if (a <= (-9d-208)) then
tmp = t_1
else if (a <= 4.8d-262) then
tmp = y * (x / z)
else if (a <= 3d+35) 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 * (1.0 - (y / z));
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -1.55e+30) {
tmp = t_2;
} else if (a <= -9e-208) {
tmp = t_1;
} else if (a <= 4.8e-262) {
tmp = y * (x / z);
} else if (a <= 3e+35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) t_2 = x + (t * (y / a)) tmp = 0 if a <= -1.55e+30: tmp = t_2 elif a <= -9e-208: tmp = t_1 elif a <= 4.8e-262: tmp = y * (x / z) elif a <= 3e+35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) t_2 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -1.55e+30) tmp = t_2; elseif (a <= -9e-208) tmp = t_1; elseif (a <= 4.8e-262) tmp = Float64(y * Float64(x / z)); elseif (a <= 3e+35) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); t_2 = x + (t * (y / a)); tmp = 0.0; if (a <= -1.55e+30) tmp = t_2; elseif (a <= -9e-208) tmp = t_1; elseif (a <= 4.8e-262) tmp = y * (x / z); elseif (a <= 3e+35) 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[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.55e+30], t$95$2, If[LessEqual[a, -9e-208], t$95$1, If[LessEqual[a, 4.8e-262], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+35], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
t_2 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-262}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.5499999999999999e30 or 2.99999999999999991e35 < a Initial program 91.1%
Taylor expanded in z around 0 59.9%
Taylor expanded in t around inf 57.8%
associate-/l*63.1%
Simplified63.1%
if -1.5499999999999999e30 < a < -8.9999999999999992e-208 or 4.8000000000000001e-262 < a < 2.99999999999999991e35Initial program 71.6%
Taylor expanded in a around 0 46.2%
mul-1-neg46.2%
unsub-neg46.2%
associate-/l*53.8%
div-sub53.8%
sub-neg53.8%
*-inverses53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in t around inf 52.5%
if -8.9999999999999992e-208 < a < 4.8000000000000001e-262Initial program 69.0%
Taylor expanded in a around 0 59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*62.3%
div-sub62.3%
sub-neg62.3%
*-inverses62.3%
metadata-eval62.3%
Simplified62.3%
Taylor expanded in x around -inf 41.0%
associate-/l*55.0%
Simplified55.0%
clear-num55.1%
un-div-inv57.2%
Applied egg-rr57.2%
associate-/r/58.6%
Simplified58.6%
Final simplification58.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))) (t_2 (+ x (* t (/ y a)))))
(if (<= a -4.9e+29)
t_2
(if (<= a -7e-208)
t_1
(if (<= a 1.52e-260)
(* y (/ x (- z a)))
(if (<= a 2.7e+35) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -4.9e+29) {
tmp = t_2;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 1.52e-260) {
tmp = y * (x / (z - a));
} else if (a <= 2.7e+35) {
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 * (1.0d0 - (y / z))
t_2 = x + (t * (y / a))
if (a <= (-4.9d+29)) then
tmp = t_2
else if (a <= (-7d-208)) then
tmp = t_1
else if (a <= 1.52d-260) then
tmp = y * (x / (z - a))
else if (a <= 2.7d+35) 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 * (1.0 - (y / z));
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -4.9e+29) {
tmp = t_2;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 1.52e-260) {
tmp = y * (x / (z - a));
} else if (a <= 2.7e+35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) t_2 = x + (t * (y / a)) tmp = 0 if a <= -4.9e+29: tmp = t_2 elif a <= -7e-208: tmp = t_1 elif a <= 1.52e-260: tmp = y * (x / (z - a)) elif a <= 2.7e+35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) t_2 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -4.9e+29) tmp = t_2; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 1.52e-260) tmp = Float64(y * Float64(x / Float64(z - a))); elseif (a <= 2.7e+35) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); t_2 = x + (t * (y / a)); tmp = 0.0; if (a <= -4.9e+29) tmp = t_2; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 1.52e-260) tmp = y * (x / (z - a)); elseif (a <= 2.7e+35) 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[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.9e+29], t$95$2, If[LessEqual[a, -7e-208], t$95$1, If[LessEqual[a, 1.52e-260], N[(y * N[(x / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+35], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
t_2 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -4.9 \cdot 10^{+29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{-260}:\\
\;\;\;\;y \cdot \frac{x}{z - a}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.9000000000000001e29 or 2.70000000000000003e35 < a Initial program 91.1%
Taylor expanded in z around 0 59.9%
Taylor expanded in t around inf 57.8%
associate-/l*63.1%
Simplified63.1%
if -4.9000000000000001e29 < a < -6.99999999999999982e-208 or 1.52e-260 < a < 2.70000000000000003e35Initial program 71.6%
Taylor expanded in a around 0 46.2%
mul-1-neg46.2%
unsub-neg46.2%
associate-/l*53.8%
div-sub53.8%
sub-neg53.8%
*-inverses53.8%
metadata-eval53.8%
Simplified53.8%
Taylor expanded in t around inf 52.5%
if -6.99999999999999982e-208 < a < 1.52e-260Initial program 69.0%
Taylor expanded in y around inf 73.3%
div-sub73.3%
Simplified73.3%
Taylor expanded in t around 0 64.2%
neg-mul-164.2%
distribute-neg-frac64.2%
Simplified64.2%
Final simplification59.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- z y) a) (- x t)))))
(if (<= a -4.2e+14)
t_1
(if (<= a 6.5e-150)
(+ t (/ (* y (- x t)) z))
(if (<= a 1.65e+24) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((z - y) / a) * (x - t));
double tmp;
if (a <= -4.2e+14) {
tmp = t_1;
} else if (a <= 6.5e-150) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1.65e+24) {
tmp = t * ((y - 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 = x + (((z - y) / a) * (x - t))
if (a <= (-4.2d+14)) then
tmp = t_1
else if (a <= 6.5d-150) then
tmp = t + ((y * (x - t)) / z)
else if (a <= 1.65d+24) then
tmp = t * ((y - 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 = x + (((z - y) / a) * (x - t));
double tmp;
if (a <= -4.2e+14) {
tmp = t_1;
} else if (a <= 6.5e-150) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1.65e+24) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((z - y) / a) * (x - t)) tmp = 0 if a <= -4.2e+14: tmp = t_1 elif a <= 6.5e-150: tmp = t + ((y * (x - t)) / z) elif a <= 1.65e+24: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(z - y) / a) * Float64(x - t))) tmp = 0.0 if (a <= -4.2e+14) tmp = t_1; elseif (a <= 6.5e-150) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (a <= 1.65e+24) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((z - y) / a) * (x - t)); tmp = 0.0; if (a <= -4.2e+14) tmp = t_1; elseif (a <= 6.5e-150) tmp = t + ((y * (x - t)) / z); elseif (a <= 1.65e+24) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+14], t$95$1, If[LessEqual[a, 6.5e-150], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+24], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - y}{a} \cdot \left(x - t\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-150}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+24}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.2e14 or 1.6499999999999999e24 < a Initial program 91.5%
Taylor expanded in a around inf 64.9%
associate-/l*78.4%
Simplified78.4%
if -4.2e14 < a < 6.49999999999999997e-150Initial program 67.6%
*-commutative67.6%
associate-*l/65.5%
associate-*r/71.6%
clear-num71.4%
un-div-inv72.2%
Applied egg-rr72.2%
Taylor expanded in z around inf 76.8%
associate--l+76.8%
associate-*r/76.8%
associate-*r/76.8%
mul-1-neg76.8%
div-sub76.8%
mul-1-neg76.8%
distribute-lft-out--76.8%
associate-*r/76.8%
mul-1-neg76.8%
unsub-neg76.8%
distribute-rgt-out--76.8%
Simplified76.8%
Taylor expanded in y around inf 69.3%
if 6.49999999999999997e-150 < a < 1.6499999999999999e24Initial program 75.3%
Taylor expanded in x around 0 60.0%
associate-/l*74.9%
Simplified74.9%
Final simplification74.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.4e+123)
x
(if (<= a -3e-157)
t
(if (<= a 1.32e-180)
(/ x (/ z y))
(if (<= a 2.35e+42) t (/ (* x y) y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= -3e-157) {
tmp = t;
} else if (a <= 1.32e-180) {
tmp = x / (z / y);
} else if (a <= 2.35e+42) {
tmp = t;
} else {
tmp = (x * y) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-9.4d+123)) then
tmp = x
else if (a <= (-3d-157)) then
tmp = t
else if (a <= 1.32d-180) then
tmp = x / (z / y)
else if (a <= 2.35d+42) then
tmp = t
else
tmp = (x * y) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= -3e-157) {
tmp = t;
} else if (a <= 1.32e-180) {
tmp = x / (z / y);
} else if (a <= 2.35e+42) {
tmp = t;
} else {
tmp = (x * y) / y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.4e+123: tmp = x elif a <= -3e-157: tmp = t elif a <= 1.32e-180: tmp = x / (z / y) elif a <= 2.35e+42: tmp = t else: tmp = (x * y) / y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.4e+123) tmp = x; elseif (a <= -3e-157) tmp = t; elseif (a <= 1.32e-180) tmp = Float64(x / Float64(z / y)); elseif (a <= 2.35e+42) tmp = t; else tmp = Float64(Float64(x * y) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.4e+123) tmp = x; elseif (a <= -3e-157) tmp = t; elseif (a <= 1.32e-180) tmp = x / (z / y); elseif (a <= 2.35e+42) tmp = t; else tmp = (x * y) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.4e+123], x, If[LessEqual[a, -3e-157], t, If[LessEqual[a, 1.32e-180], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.35e+42], t, N[(N[(x * y), $MachinePrecision] / y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-157}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 1.32 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{+42}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{y}\\
\end{array}
\end{array}
if a < -9.39999999999999958e123Initial program 96.0%
Taylor expanded in a around inf 57.2%
if -9.39999999999999958e123 < a < -3e-157 or 1.32000000000000004e-180 < a < 2.34999999999999993e42Initial program 78.8%
Taylor expanded in z around inf 34.9%
if -3e-157 < a < 1.32000000000000004e-180Initial program 67.0%
Taylor expanded in a around 0 59.7%
mul-1-neg59.7%
unsub-neg59.7%
associate-/l*61.4%
div-sub61.4%
sub-neg61.4%
*-inverses61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in x around -inf 35.0%
associate-/l*44.5%
Simplified44.5%
clear-num44.5%
un-div-inv45.7%
Applied egg-rr45.7%
if 2.34999999999999993e42 < a Initial program 86.4%
Taylor expanded in y around -inf 69.3%
mul-1-neg69.3%
*-commutative69.3%
distribute-rgt-neg-in69.3%
Simplified77.2%
Taylor expanded in a around inf 40.3%
associate-*r/40.3%
mul-1-neg40.3%
Simplified40.3%
associate-*l/46.8%
add-sqr-sqrt25.2%
sqrt-unprod23.6%
sqr-neg23.6%
sqrt-unprod1.0%
add-sqr-sqrt2.4%
add-sqr-sqrt1.1%
sqrt-unprod12.4%
sqr-neg12.4%
sqrt-unprod19.5%
add-sqr-sqrt46.8%
Applied egg-rr46.8%
Final simplification44.1%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.3e+186)
(* x (/ (- y a) z))
(if (or (<= x -1.56e-65) (not (<= x 2.2e-23)))
(* x (- 1.0 (/ y a)))
(* t (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.3e+186) {
tmp = x * ((y - a) / z);
} else if ((x <= -1.56e-65) || !(x <= 2.2e-23)) {
tmp = x * (1.0 - (y / a));
} 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 <= (-1.3d+186)) then
tmp = x * ((y - a) / z)
else if ((x <= (-1.56d-65)) .or. (.not. (x <= 2.2d-23))) then
tmp = x * (1.0d0 - (y / a))
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 <= -1.3e+186) {
tmp = x * ((y - a) / z);
} else if ((x <= -1.56e-65) || !(x <= 2.2e-23)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.3e+186: tmp = x * ((y - a) / z) elif (x <= -1.56e-65) or not (x <= 2.2e-23): tmp = x * (1.0 - (y / a)) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.3e+186) tmp = Float64(x * Float64(Float64(y - a) / z)); elseif ((x <= -1.56e-65) || !(x <= 2.2e-23)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); 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 <= -1.3e+186) tmp = x * ((y - a) / z); elseif ((x <= -1.56e-65) || ~((x <= 2.2e-23))) tmp = x * (1.0 - (y / a)); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.3e+186], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1.56e-65], N[Not[LessEqual[x, 2.2e-23]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $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 -1.3 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;x \leq -1.56 \cdot 10^{-65} \lor \neg \left(x \leq 2.2 \cdot 10^{-23}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if x < -1.3e186Initial program 62.3%
*-commutative62.3%
associate-*l/44.0%
associate-*r/62.4%
clear-num62.3%
un-div-inv62.3%
Applied egg-rr62.3%
Taylor expanded in z around inf 55.6%
associate--l+55.6%
associate-*r/55.6%
associate-*r/55.6%
mul-1-neg55.6%
div-sub55.6%
mul-1-neg55.6%
distribute-lft-out--55.6%
associate-*r/55.6%
mul-1-neg55.6%
unsub-neg55.6%
distribute-rgt-out--55.6%
Simplified55.6%
Taylor expanded in t around 0 48.6%
associate-/l*63.0%
Simplified63.0%
if -1.3e186 < x < -1.55999999999999993e-65 or 2.1999999999999999e-23 < x Initial program 78.8%
Taylor expanded in z around 0 49.2%
Taylor expanded in x around inf 55.4%
mul-1-neg55.4%
unsub-neg55.4%
Simplified55.4%
if -1.55999999999999993e-65 < x < 2.1999999999999999e-23Initial program 87.7%
Taylor expanded in x around 0 65.4%
associate-/l*77.3%
Simplified77.3%
Final simplification65.4%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.32e+186)
(* x (/ (- y a) z))
(if (or (<= x -7e-71) (not (<= x 2.35e-23)))
(* x (+ (/ (- z y) a) 1.0))
(* t (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.32e+186) {
tmp = x * ((y - a) / z);
} else if ((x <= -7e-71) || !(x <= 2.35e-23)) {
tmp = x * (((z - y) / a) + 1.0);
} 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 <= (-1.32d+186)) then
tmp = x * ((y - a) / z)
else if ((x <= (-7d-71)) .or. (.not. (x <= 2.35d-23))) then
tmp = x * (((z - y) / a) + 1.0d0)
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 <= -1.32e+186) {
tmp = x * ((y - a) / z);
} else if ((x <= -7e-71) || !(x <= 2.35e-23)) {
tmp = x * (((z - y) / a) + 1.0);
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.32e+186: tmp = x * ((y - a) / z) elif (x <= -7e-71) or not (x <= 2.35e-23): tmp = x * (((z - y) / a) + 1.0) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.32e+186) tmp = Float64(x * Float64(Float64(y - a) / z)); elseif ((x <= -7e-71) || !(x <= 2.35e-23)) tmp = Float64(x * Float64(Float64(Float64(z - y) / a) + 1.0)); 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 <= -1.32e+186) tmp = x * ((y - a) / z); elseif ((x <= -7e-71) || ~((x <= 2.35e-23))) tmp = x * (((z - y) / a) + 1.0); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.32e+186], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -7e-71], N[Not[LessEqual[x, 2.35e-23]], $MachinePrecision]], N[(x * N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] + 1.0), $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 -1.32 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-71} \lor \neg \left(x \leq 2.35 \cdot 10^{-23}\right):\\
\;\;\;\;x \cdot \left(\frac{z - y}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if x < -1.32000000000000005e186Initial program 62.3%
*-commutative62.3%
associate-*l/44.0%
associate-*r/62.4%
clear-num62.3%
un-div-inv62.3%
Applied egg-rr62.3%
Taylor expanded in z around inf 55.6%
associate--l+55.6%
associate-*r/55.6%
associate-*r/55.6%
mul-1-neg55.6%
div-sub55.6%
mul-1-neg55.6%
distribute-lft-out--55.6%
associate-*r/55.6%
mul-1-neg55.6%
unsub-neg55.6%
distribute-rgt-out--55.6%
Simplified55.6%
Taylor expanded in t around 0 48.6%
associate-/l*63.0%
Simplified63.0%
if -1.32000000000000005e186 < x < -6.9999999999999998e-71 or 2.35e-23 < x Initial program 78.8%
*-commutative78.8%
associate-*l/67.7%
associate-*r/82.7%
clear-num82.6%
un-div-inv83.3%
Applied egg-rr83.3%
Taylor expanded in a around inf 58.0%
Taylor expanded in x around inf 56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
if -6.9999999999999998e-71 < x < 2.35e-23Initial program 87.7%
Taylor expanded in x around 0 65.4%
associate-/l*77.3%
Simplified77.3%
Final simplification65.8%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.32e+187)
(* y (/ (- t x) (- a z)))
(if (or (<= x -7e-71) (not (<= x 1.8e-23)))
(* x (+ (/ (- z y) a) 1.0))
(* t (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.32e+187) {
tmp = y * ((t - x) / (a - z));
} else if ((x <= -7e-71) || !(x <= 1.8e-23)) {
tmp = x * (((z - y) / a) + 1.0);
} 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 <= (-1.32d+187)) then
tmp = y * ((t - x) / (a - z))
else if ((x <= (-7d-71)) .or. (.not. (x <= 1.8d-23))) then
tmp = x * (((z - y) / a) + 1.0d0)
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 <= -1.32e+187) {
tmp = y * ((t - x) / (a - z));
} else if ((x <= -7e-71) || !(x <= 1.8e-23)) {
tmp = x * (((z - y) / a) + 1.0);
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.32e+187: tmp = y * ((t - x) / (a - z)) elif (x <= -7e-71) or not (x <= 1.8e-23): tmp = x * (((z - y) / a) + 1.0) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.32e+187) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif ((x <= -7e-71) || !(x <= 1.8e-23)) tmp = Float64(x * Float64(Float64(Float64(z - y) / a) + 1.0)); 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 <= -1.32e+187) tmp = y * ((t - x) / (a - z)); elseif ((x <= -7e-71) || ~((x <= 1.8e-23))) tmp = x * (((z - y) / a) + 1.0); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.32e+187], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -7e-71], N[Not[LessEqual[x, 1.8e-23]], $MachinePrecision]], N[(x * N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] + 1.0), $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 -1.32 \cdot 10^{+187}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-71} \lor \neg \left(x \leq 1.8 \cdot 10^{-23}\right):\\
\;\;\;\;x \cdot \left(\frac{z - y}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if x < -1.32000000000000009e187Initial program 62.3%
Taylor expanded in y around inf 66.8%
div-sub66.8%
Simplified66.8%
if -1.32000000000000009e187 < x < -6.9999999999999998e-71 or 1.7999999999999999e-23 < x Initial program 78.8%
*-commutative78.8%
associate-*l/67.7%
associate-*r/82.7%
clear-num82.6%
un-div-inv83.3%
Applied egg-rr83.3%
Taylor expanded in a around inf 58.0%
Taylor expanded in x around inf 56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
if -6.9999999999999998e-71 < x < 1.7999999999999999e-23Initial program 87.7%
Taylor expanded in x around 0 65.4%
associate-/l*77.3%
Simplified77.3%
Final simplification66.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.4e+123)
x
(if (<= a -8e-158)
t
(if (<= a 3e-184) (* x (/ y z)) (if (<= a 4.2e+40) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= -8e-158) {
tmp = t;
} else if (a <= 3e-184) {
tmp = x * (y / z);
} else if (a <= 4.2e+40) {
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 <= (-9.4d+123)) then
tmp = x
else if (a <= (-8d-158)) then
tmp = t
else if (a <= 3d-184) then
tmp = x * (y / z)
else if (a <= 4.2d+40) 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 <= -9.4e+123) {
tmp = x;
} else if (a <= -8e-158) {
tmp = t;
} else if (a <= 3e-184) {
tmp = x * (y / z);
} else if (a <= 4.2e+40) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.4e+123: tmp = x elif a <= -8e-158: tmp = t elif a <= 3e-184: tmp = x * (y / z) elif a <= 4.2e+40: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.4e+123) tmp = x; elseif (a <= -8e-158) tmp = t; elseif (a <= 3e-184) tmp = Float64(x * Float64(y / z)); elseif (a <= 4.2e+40) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.4e+123) tmp = x; elseif (a <= -8e-158) tmp = t; elseif (a <= 3e-184) tmp = x * (y / z); elseif (a <= 4.2e+40) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.4e+123], x, If[LessEqual[a, -8e-158], t, If[LessEqual[a, 3e-184], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e+40], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-158}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-184}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+40}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 4.2000000000000002e40 < a Initial program 90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < -8.00000000000000052e-158 or 2.99999999999999991e-184 < a < 4.2000000000000002e40Initial program 78.8%
Taylor expanded in z around inf 34.9%
if -8.00000000000000052e-158 < a < 2.99999999999999991e-184Initial program 67.0%
Taylor expanded in a around 0 59.7%
mul-1-neg59.7%
unsub-neg59.7%
associate-/l*61.4%
div-sub61.4%
sub-neg61.4%
*-inverses61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in x around -inf 35.0%
associate-/l*44.5%
Simplified44.5%
Final simplification43.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.4e+123)
x
(if (<= a -5e-159)
t
(if (<= a 8.4e-181) (* y (/ x z)) (if (<= a 1.05e+40) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= -5e-159) {
tmp = t;
} else if (a <= 8.4e-181) {
tmp = y * (x / z);
} else if (a <= 1.05e+40) {
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 <= (-9.4d+123)) then
tmp = x
else if (a <= (-5d-159)) then
tmp = t
else if (a <= 8.4d-181) then
tmp = y * (x / z)
else if (a <= 1.05d+40) 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 <= -9.4e+123) {
tmp = x;
} else if (a <= -5e-159) {
tmp = t;
} else if (a <= 8.4e-181) {
tmp = y * (x / z);
} else if (a <= 1.05e+40) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.4e+123: tmp = x elif a <= -5e-159: tmp = t elif a <= 8.4e-181: tmp = y * (x / z) elif a <= 1.05e+40: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.4e+123) tmp = x; elseif (a <= -5e-159) tmp = t; elseif (a <= 8.4e-181) tmp = Float64(y * Float64(x / z)); elseif (a <= 1.05e+40) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.4e+123) tmp = x; elseif (a <= -5e-159) tmp = t; elseif (a <= 8.4e-181) tmp = y * (x / z); elseif (a <= 1.05e+40) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.4e+123], x, If[LessEqual[a, -5e-159], t, If[LessEqual[a, 8.4e-181], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+40], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-159}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 8.4 \cdot 10^{-181}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+40}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 1.05000000000000005e40 < a Initial program 90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < -5.00000000000000032e-159 or 8.40000000000000013e-181 < a < 1.05000000000000005e40Initial program 78.8%
Taylor expanded in z around inf 34.9%
if -5.00000000000000032e-159 < a < 8.40000000000000013e-181Initial program 67.0%
Taylor expanded in a around 0 59.7%
mul-1-neg59.7%
unsub-neg59.7%
associate-/l*61.4%
div-sub61.4%
sub-neg61.4%
*-inverses61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in x around -inf 35.0%
associate-/l*44.5%
Simplified44.5%
clear-num44.5%
un-div-inv45.7%
Applied egg-rr45.7%
associate-/r/45.4%
Simplified45.4%
Final simplification43.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.4e+123)
x
(if (<= a -1.9e-151)
t
(if (<= a 2.7e-185) (/ x (/ z y)) (if (<= a 2.7e+47) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= -1.9e-151) {
tmp = t;
} else if (a <= 2.7e-185) {
tmp = x / (z / y);
} else if (a <= 2.7e+47) {
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 <= (-9.4d+123)) then
tmp = x
else if (a <= (-1.9d-151)) then
tmp = t
else if (a <= 2.7d-185) then
tmp = x / (z / y)
else if (a <= 2.7d+47) 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 <= -9.4e+123) {
tmp = x;
} else if (a <= -1.9e-151) {
tmp = t;
} else if (a <= 2.7e-185) {
tmp = x / (z / y);
} else if (a <= 2.7e+47) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.4e+123: tmp = x elif a <= -1.9e-151: tmp = t elif a <= 2.7e-185: tmp = x / (z / y) elif a <= 2.7e+47: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.4e+123) tmp = x; elseif (a <= -1.9e-151) tmp = t; elseif (a <= 2.7e-185) tmp = Float64(x / Float64(z / y)); elseif (a <= 2.7e+47) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.4e+123) tmp = x; elseif (a <= -1.9e-151) tmp = t; elseif (a <= 2.7e-185) tmp = x / (z / y); elseif (a <= 2.7e+47) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.4e+123], x, If[LessEqual[a, -1.9e-151], t, If[LessEqual[a, 2.7e-185], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+47], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-151}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+47}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 2.69999999999999996e47 < a Initial program 90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < -1.89999999999999985e-151 or 2.69999999999999988e-185 < a < 2.69999999999999996e47Initial program 78.8%
Taylor expanded in z around inf 34.9%
if -1.89999999999999985e-151 < a < 2.69999999999999988e-185Initial program 67.0%
Taylor expanded in a around 0 59.7%
mul-1-neg59.7%
unsub-neg59.7%
associate-/l*61.4%
div-sub61.4%
sub-neg61.4%
*-inverses61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in x around -inf 35.0%
associate-/l*44.5%
Simplified44.5%
clear-num44.5%
un-div-inv45.7%
Applied egg-rr45.7%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6.8e+16) (not (<= a 3.8e+20))) (+ x (* (/ (- z y) a) (- x t))) (+ t (* (/ (- t x) z) (- a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.8e+16) || !(a <= 3.8e+20)) {
tmp = x + (((z - y) / a) * (x - t));
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-6.8d+16)) .or. (.not. (a <= 3.8d+20))) then
tmp = x + (((z - y) / a) * (x - t))
else
tmp = t + (((t - x) / z) * (a - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.8e+16) || !(a <= 3.8e+20)) {
tmp = x + (((z - y) / a) * (x - t));
} else {
tmp = t + (((t - x) / z) * (a - y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6.8e+16) or not (a <= 3.8e+20): tmp = x + (((z - y) / a) * (x - t)) else: tmp = t + (((t - x) / z) * (a - y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.8e+16) || !(a <= 3.8e+20)) tmp = Float64(x + Float64(Float64(Float64(z - y) / a) * Float64(x - t))); else tmp = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6.8e+16) || ~((a <= 3.8e+20))) tmp = x + (((z - y) / a) * (x - t)); else tmp = t + (((t - x) / z) * (a - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.8e+16], N[Not[LessEqual[a, 3.8e+20]], $MachinePrecision]], N[(x + N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.8 \cdot 10^{+16} \lor \neg \left(a \leq 3.8 \cdot 10^{+20}\right):\\
\;\;\;\;x + \frac{z - y}{a} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\end{array}
\end{array}
if a < -6.8e16 or 3.8e20 < a Initial program 91.5%
Taylor expanded in a around inf 64.9%
associate-/l*78.4%
Simplified78.4%
if -6.8e16 < a < 3.8e20Initial program 69.6%
Taylor expanded in z around inf 73.1%
associate--l+73.1%
distribute-lft-out--73.1%
div-sub73.1%
mul-1-neg73.1%
unsub-neg73.1%
div-sub73.1%
associate-/l*80.3%
associate-/l*78.3%
distribute-rgt-out--80.1%
Simplified80.1%
Final simplification79.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -0.17) (not (<= z 2.9e-32))) (* t (- 1.0 (/ y z))) (* x (- 1.0 (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -0.17) || !(z <= 2.9e-32)) {
tmp = t * (1.0 - (y / 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 ((z <= (-0.17d0)) .or. (.not. (z <= 2.9d-32))) then
tmp = t * (1.0d0 - (y / 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 ((z <= -0.17) || !(z <= 2.9e-32)) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -0.17) or not (z <= 2.9e-32): tmp = t * (1.0 - (y / z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -0.17) || !(z <= 2.9e-32)) tmp = Float64(t * Float64(1.0 - Float64(y / 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 ((z <= -0.17) || ~((z <= 2.9e-32))) tmp = t * (1.0 - (y / z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -0.17], N[Not[LessEqual[z, 2.9e-32]], $MachinePrecision]], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.17 \lor \neg \left(z \leq 2.9 \cdot 10^{-32}\right):\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 2.89999999999999996e-32 < z Initial program 72.1%
Taylor expanded in a around 0 31.7%
mul-1-neg31.7%
unsub-neg31.7%
associate-/l*45.9%
div-sub45.9%
sub-neg45.9%
*-inverses45.9%
metadata-eval45.9%
Simplified45.9%
Taylor expanded in t around inf 46.5%
if -0.170000000000000012 < z < 2.89999999999999996e-32Initial program 90.2%
Taylor expanded in z around 0 67.4%
Taylor expanded in x around inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
Final simplification52.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.4e+123) x (if (<= a 2.9e+47) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.4e+123) {
tmp = x;
} else if (a <= 2.9e+47) {
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 <= (-9.4d+123)) then
tmp = x
else if (a <= 2.9d+47) 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 <= -9.4e+123) {
tmp = x;
} else if (a <= 2.9e+47) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.4e+123: tmp = x elif a <= 2.9e+47: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.4e+123) tmp = x; elseif (a <= 2.9e+47) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.4e+123) tmp = x; elseif (a <= 2.9e+47) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.4e+123], x, If[LessEqual[a, 2.9e+47], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+47}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 2.8999999999999998e47 < a Initial program 90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < 2.8999999999999998e47Initial program 74.1%
Taylor expanded in z around inf 30.0%
Final simplification38.3%
(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 80.9%
Taylor expanded in z around inf 21.9%
Final simplification21.9%
herbie shell --seed 2024059
(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)))))