
(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 (- x (* (/ (- x t) (- z a)) (- z y))))
(t_2 (- x (/ (* (- y z) (- x t)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-250)
t_2
(if (<= t_2 5e-260) (+ t (/ (* (- t x) (- a y)) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((x - t) / (z - a)) * (z - y));
double t_2 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-250) {
tmp = t_2;
} else if (t_2 <= 5e-260) {
tmp = t + (((t - x) * (a - y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((x - t) / (z - a)) * (z - y));
double t_2 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -5e-250) {
tmp = t_2;
} else if (t_2 <= 5e-260) {
tmp = t + (((t - x) * (a - y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((x - t) / (z - a)) * (z - y)) t_2 = x - (((y - z) * (x - t)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -5e-250: tmp = t_2 elif t_2 <= 5e-260: tmp = t + (((t - x) * (a - y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(x - t) / Float64(z - a)) * Float64(z - y))) t_2 = Float64(x - Float64(Float64(Float64(y - z) * Float64(x - t)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-250) tmp = t_2; elseif (t_2 <= 5e-260) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((x - t) / (z - a)) * (z - y)); t_2 = x - (((y - z) * (x - t)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -5e-250) tmp = t_2; elseif (t_2 <= 5e-260) tmp = t + (((t - x) * (a - y)) / 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[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(y - z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-250], t$95$2, If[LessEqual[t$95$2, 5e-260], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{x - t}{z - a} \cdot \left(z - y\right)\\
t_2 := x - \frac{\left(y - z\right) \cdot \left(x - t\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-250}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 5.0000000000000003e-260 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 61.4%
associate-/l*84.8%
Simplified84.8%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000027e-250Initial program 97.7%
if -5.00000000000000027e-250 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5.0000000000000003e-260Initial program 12.8%
associate-/l*5.2%
Simplified5.2%
Taylor expanded in z around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
associate-*r/99.0%
mul-1-neg99.0%
div-sub99.0%
mul-1-neg99.0%
distribute-lft-out--99.0%
associate-*r/99.0%
mul-1-neg99.0%
unsub-neg99.0%
distribute-rgt-out--99.0%
Simplified99.0%
Final simplification89.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y z) (- x t)) (- a z)))))
(if (or (<= t_1 -5e-250) (not (<= t_1 5e-260)))
(+ x (/ (- x t) (/ (- z a) (- y z))))
(+ t (/ (* (- t x) (- a y)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if ((t_1 <= -5e-250) || !(t_1 <= 5e-260)) {
tmp = x + ((x - t) / ((z - a) / (y - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (((y - z) * (x - t)) / (a - z))
if ((t_1 <= (-5d-250)) .or. (.not. (t_1 <= 5d-260))) then
tmp = x + ((x - t) / ((z - a) / (y - z)))
else
tmp = t + (((t - x) * (a - y)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if ((t_1 <= -5e-250) || !(t_1 <= 5e-260)) {
tmp = x + ((x - t) / ((z - a) / (y - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - z) * (x - t)) / (a - z)) tmp = 0 if (t_1 <= -5e-250) or not (t_1 <= 5e-260): tmp = x + ((x - t) / ((z - a) / (y - z))) else: tmp = t + (((t - x) * (a - y)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - z) * Float64(x - t)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-250) || !(t_1 <= 5e-260)) tmp = Float64(x + Float64(Float64(x - t) / Float64(Float64(z - a) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - z) * (x - t)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-250) || ~((t_1 <= 5e-260))) tmp = x + ((x - t) / ((z - a) / (y - z))); else tmp = t + (((t - x) * (a - y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(y - z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-250], N[Not[LessEqual[t$95$1, 5e-260]], $MachinePrecision]], N[(x + N[(N[(x - t), $MachinePrecision] / N[(N[(z - a), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - z\right) \cdot \left(x - t\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-250} \lor \neg \left(t\_1 \leq 5 \cdot 10^{-260}\right):\\
\;\;\;\;x + \frac{x - t}{\frac{z - a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000027e-250 or 5.0000000000000003e-260 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 73.4%
associate-/l*85.3%
Simplified85.3%
*-commutative85.3%
associate-*l/73.4%
associate-*r/88.4%
clear-num88.3%
un-div-inv88.7%
Applied egg-rr88.7%
if -5.00000000000000027e-250 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5.0000000000000003e-260Initial program 12.8%
associate-/l*5.2%
Simplified5.2%
Taylor expanded in z around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
associate-*r/99.0%
mul-1-neg99.0%
div-sub99.0%
mul-1-neg99.0%
distribute-lft-out--99.0%
associate-*r/99.0%
mul-1-neg99.0%
unsub-neg99.0%
distribute-rgt-out--99.0%
Simplified99.0%
Final simplification89.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y z) (- x t)) (- a z)))))
(if (<= t_1 -5e-250)
(+ x (/ (- t x) (- (/ z (- z y)) (/ a (- z y)))))
(if (<= t_1 5e-260)
(+ t (/ (* (- t x) (- a y)) z))
(+ x (/ (- x t) (/ (- z a) (- y z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if (t_1 <= -5e-250) {
tmp = x + ((t - x) / ((z / (z - y)) - (a / (z - y))));
} else if (t_1 <= 5e-260) {
tmp = t + (((t - x) * (a - y)) / z);
} else {
tmp = x + ((x - t) / ((z - a) / (y - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (((y - z) * (x - t)) / (a - z))
if (t_1 <= (-5d-250)) then
tmp = x + ((t - x) / ((z / (z - y)) - (a / (z - y))))
else if (t_1 <= 5d-260) then
tmp = t + (((t - x) * (a - y)) / z)
else
tmp = x + ((x - t) / ((z - a) / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - z) * (x - t)) / (a - z));
double tmp;
if (t_1 <= -5e-250) {
tmp = x + ((t - x) / ((z / (z - y)) - (a / (z - y))));
} else if (t_1 <= 5e-260) {
tmp = t + (((t - x) * (a - y)) / z);
} else {
tmp = x + ((x - t) / ((z - a) / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - z) * (x - t)) / (a - z)) tmp = 0 if t_1 <= -5e-250: tmp = x + ((t - x) / ((z / (z - y)) - (a / (z - y)))) elif t_1 <= 5e-260: tmp = t + (((t - x) * (a - y)) / z) else: tmp = x + ((x - t) / ((z - a) / (y - z))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - z) * Float64(x - t)) / Float64(a - z))) tmp = 0.0 if (t_1 <= -5e-250) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(z / Float64(z - y)) - Float64(a / Float64(z - y))))); elseif (t_1 <= 5e-260) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); else tmp = Float64(x + Float64(Float64(x - t) / Float64(Float64(z - a) / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - z) * (x - t)) / (a - z)); tmp = 0.0; if (t_1 <= -5e-250) tmp = x + ((t - x) / ((z / (z - y)) - (a / (z - y)))); elseif (t_1 <= 5e-260) tmp = t + (((t - x) * (a - y)) / z); else tmp = x + ((x - t) / ((z - a) / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(y - z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-250], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(z / N[(z - y), $MachinePrecision]), $MachinePrecision] - N[(a / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-260], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(x - t), $MachinePrecision] / N[(N[(z - a), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - z\right) \cdot \left(x - t\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-250}:\\
\;\;\;\;x + \frac{t - x}{\frac{z}{z - y} - \frac{a}{z - y}}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-260}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{x - t}{\frac{z - a}{y - z}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -5.00000000000000027e-250Initial program 77.8%
associate-/l*84.5%
Simplified84.5%
*-commutative84.5%
associate-*l/77.8%
associate-*r/90.5%
clear-num90.4%
un-div-inv90.5%
Applied egg-rr90.5%
div-sub90.5%
Applied egg-rr90.5%
if -5.00000000000000027e-250 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5.0000000000000003e-260Initial program 12.8%
associate-/l*5.2%
Simplified5.2%
Taylor expanded in z around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
associate-*r/99.0%
mul-1-neg99.0%
div-sub99.0%
mul-1-neg99.0%
distribute-lft-out--99.0%
associate-*r/99.0%
mul-1-neg99.0%
unsub-neg99.0%
distribute-rgt-out--99.0%
Simplified99.0%
if 5.0000000000000003e-260 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 68.9%
associate-/l*86.0%
Simplified86.0%
*-commutative86.0%
associate-*l/68.9%
associate-*r/86.2%
clear-num86.1%
un-div-inv86.8%
Applied egg-rr86.8%
Final simplification89.3%
(FPCore (x y z t a)
:precision binary64
(if (or (<= x -4.7e+17) (not (<= x 2.7e-86)))
(*
x
(+
(- 1.0 (/ z (- z a)))
(+ (* t (/ (- y z) (* x (- a z)))) (/ y (- z a)))))
(+ x (/ -1.0 (/ (/ (- z a) (- y z)) (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -4.7e+17) || !(x <= 2.7e-86)) {
tmp = x * ((1.0 - (z / (z - a))) + ((t * ((y - z) / (x * (a - z)))) + (y / (z - a))));
} else {
tmp = x + (-1.0 / (((z - a) / (y - z)) / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((x <= (-4.7d+17)) .or. (.not. (x <= 2.7d-86))) then
tmp = x * ((1.0d0 - (z / (z - a))) + ((t * ((y - z) / (x * (a - z)))) + (y / (z - a))))
else
tmp = x + ((-1.0d0) / (((z - a) / (y - z)) / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -4.7e+17) || !(x <= 2.7e-86)) {
tmp = x * ((1.0 - (z / (z - a))) + ((t * ((y - z) / (x * (a - z)))) + (y / (z - a))));
} else {
tmp = x + (-1.0 / (((z - a) / (y - z)) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -4.7e+17) or not (x <= 2.7e-86): tmp = x * ((1.0 - (z / (z - a))) + ((t * ((y - z) / (x * (a - z)))) + (y / (z - a)))) else: tmp = x + (-1.0 / (((z - a) / (y - z)) / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -4.7e+17) || !(x <= 2.7e-86)) tmp = Float64(x * Float64(Float64(1.0 - Float64(z / Float64(z - a))) + Float64(Float64(t * Float64(Float64(y - z) / Float64(x * Float64(a - z)))) + Float64(y / Float64(z - a))))); else tmp = Float64(x + Float64(-1.0 / Float64(Float64(Float64(z - a) / Float64(y - z)) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -4.7e+17) || ~((x <= 2.7e-86))) tmp = x * ((1.0 - (z / (z - a))) + ((t * ((y - z) / (x * (a - z)))) + (y / (z - a)))); else tmp = x + (-1.0 / (((z - a) / (y - z)) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -4.7e+17], N[Not[LessEqual[x, 2.7e-86]], $MachinePrecision]], N[(x * N[(N[(1.0 - N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * N[(N[(y - z), $MachinePrecision] / N[(x * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(-1.0 / N[(N[(N[(z - a), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.7 \cdot 10^{+17} \lor \neg \left(x \leq 2.7 \cdot 10^{-86}\right):\\
\;\;\;\;x \cdot \left(\left(1 - \frac{z}{z - a}\right) + \left(t \cdot \frac{y - z}{x \cdot \left(a - z\right)} + \frac{y}{z - a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{-1}{\frac{\frac{z - a}{y - z}}{t - x}}\\
\end{array}
\end{array}
if x < -4.7e17 or 2.69999999999999992e-86 < x Initial program 60.0%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in x around -inf 77.1%
mul-1-neg77.1%
*-commutative77.1%
distribute-rgt-neg-in77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
associate-/l*86.9%
*-commutative86.9%
Simplified86.9%
if -4.7e17 < x < 2.69999999999999992e-86Initial program 82.4%
associate-/l*89.5%
Simplified89.5%
associate-*r/82.4%
clear-num82.4%
associate-/r*92.9%
Applied egg-rr92.9%
Final simplification89.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (- x (* (- t x) (/ (- z y) a)))))
(if (<= a -2.15e+17)
t_2
(if (<= a -3.8e-199)
t_1
(if (<= a 1.1e-246)
(* y (/ (- x t) (- z a)))
(if (<= a 3.05e+24) 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 - x) * ((z - y) / a));
double tmp;
if (a <= -2.15e+17) {
tmp = t_2;
} else if (a <= -3.8e-199) {
tmp = t_1;
} else if (a <= 1.1e-246) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 3.05e+24) {
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 - x) * ((z - y) / a))
if (a <= (-2.15d+17)) then
tmp = t_2
else if (a <= (-3.8d-199)) then
tmp = t_1
else if (a <= 1.1d-246) then
tmp = y * ((x - t) / (z - a))
else if (a <= 3.05d+24) 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 - x) * ((z - y) / a));
double tmp;
if (a <= -2.15e+17) {
tmp = t_2;
} else if (a <= -3.8e-199) {
tmp = t_1;
} else if (a <= 1.1e-246) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 3.05e+24) {
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 - x) * ((z - y) / a)) tmp = 0 if a <= -2.15e+17: tmp = t_2 elif a <= -3.8e-199: tmp = t_1 elif a <= 1.1e-246: tmp = y * ((x - t) / (z - a)) elif a <= 3.05e+24: 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(t - x) * Float64(Float64(z - y) / a))) tmp = 0.0 if (a <= -2.15e+17) tmp = t_2; elseif (a <= -3.8e-199) tmp = t_1; elseif (a <= 1.1e-246) tmp = Float64(y * Float64(Float64(x - t) / Float64(z - a))); elseif (a <= 3.05e+24) 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 - x) * ((z - y) / a)); tmp = 0.0; if (a <= -2.15e+17) tmp = t_2; elseif (a <= -3.8e-199) tmp = t_1; elseif (a <= 1.1e-246) tmp = y * ((x - t) / (z - a)); elseif (a <= 3.05e+24) 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[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.15e+17], t$95$2, If[LessEqual[a, -3.8e-199], t$95$1, If[LessEqual[a, 1.1e-246], N[(y * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.05e+24], 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(t - x\right) \cdot \frac{z - y}{a}\\
\mathbf{if}\;a \leq -2.15 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-246}:\\
\;\;\;\;y \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;a \leq 3.05 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.15e17 or 3.05000000000000003e24 < a Initial program 72.1%
associate-/l*91.5%
Simplified91.5%
Taylor expanded in a around inf 64.9%
associate-/l*78.4%
Simplified78.4%
if -2.15e17 < a < -3.7999999999999998e-199 or 1.09999999999999999e-246 < a < 3.05000000000000003e24Initial program 67.8%
associate-/l*69.8%
Simplified69.8%
Taylor expanded in x around 0 56.6%
associate-/l*66.7%
Simplified66.7%
if -3.7999999999999998e-199 < a < 1.09999999999999999e-246Initial program 68.6%
associate-/l*68.9%
Simplified68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
Final simplification73.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (+ x (* y (/ (- t x) a)))))
(if (<= a -6.2e+125)
t_2
(if (<= a -3.8e-203)
t_1
(if (<= a 1.65e-248)
(* y (/ (- x t) (- z a)))
(if (<= a 2.9e+41) 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 * ((t - x) / a));
double tmp;
if (a <= -6.2e+125) {
tmp = t_2;
} else if (a <= -3.8e-203) {
tmp = t_1;
} else if (a <= 1.65e-248) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 2.9e+41) {
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 * ((t - x) / a))
if (a <= (-6.2d+125)) then
tmp = t_2
else if (a <= (-3.8d-203)) then
tmp = t_1
else if (a <= 1.65d-248) then
tmp = y * ((x - t) / (z - a))
else if (a <= 2.9d+41) 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 * ((t - x) / a));
double tmp;
if (a <= -6.2e+125) {
tmp = t_2;
} else if (a <= -3.8e-203) {
tmp = t_1;
} else if (a <= 1.65e-248) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 2.9e+41) {
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 * ((t - x) / a)) tmp = 0 if a <= -6.2e+125: tmp = t_2 elif a <= -3.8e-203: tmp = t_1 elif a <= 1.65e-248: tmp = y * ((x - t) / (z - a)) elif a <= 2.9e+41: 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(y * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -6.2e+125) tmp = t_2; elseif (a <= -3.8e-203) tmp = t_1; elseif (a <= 1.65e-248) tmp = Float64(y * Float64(Float64(x - t) / Float64(z - a))); elseif (a <= 2.9e+41) 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 * ((t - x) / a)); tmp = 0.0; if (a <= -6.2e+125) tmp = t_2; elseif (a <= -3.8e-203) tmp = t_1; elseif (a <= 1.65e-248) tmp = y * ((x - t) / (z - a)); elseif (a <= 2.9e+41) 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[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.2e+125], t$95$2, If[LessEqual[a, -3.8e-203], t$95$1, If[LessEqual[a, 1.65e-248], N[(y * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+41], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x + y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -6.2 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-248}:\\
\;\;\;\;y \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.2e125 or 2.89999999999999988e41 < a Initial program 69.4%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in z around 0 59.4%
associate-/l*71.9%
Simplified71.9%
if -6.2e125 < a < -3.80000000000000025e-203 or 1.6500000000000001e-248 < a < 2.89999999999999988e41Initial program 71.2%
associate-/l*76.0%
Simplified76.0%
Taylor expanded in x around 0 55.2%
associate-/l*66.9%
Simplified66.9%
if -3.80000000000000025e-203 < a < 1.6500000000000001e-248Initial program 68.6%
associate-/l*68.9%
Simplified68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
Final simplification69.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -5.6e+125)
(+ x (* y (/ (- t x) a)))
(if (<= a -3.1e-193)
t_1
(if (<= a 1.05e-246)
(* y (/ (- x t) (- z a)))
(if (<= a 4.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 <= -5.6e+125) {
tmp = x + (y * ((t - x) / a));
} else if (a <= -3.1e-193) {
tmp = t_1;
} else if (a <= 1.05e-246) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 4.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 <= (-5.6d+125)) then
tmp = x + (y * ((t - x) / a))
else if (a <= (-3.1d-193)) then
tmp = t_1
else if (a <= 1.05d-246) then
tmp = y * ((x - t) / (z - a))
else if (a <= 4.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 <= -5.6e+125) {
tmp = x + (y * ((t - x) / a));
} else if (a <= -3.1e-193) {
tmp = t_1;
} else if (a <= 1.05e-246) {
tmp = y * ((x - t) / (z - a));
} else if (a <= 4.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 <= -5.6e+125: tmp = x + (y * ((t - x) / a)) elif a <= -3.1e-193: tmp = t_1 elif a <= 1.05e-246: tmp = y * ((x - t) / (z - a)) elif a <= 4.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 <= -5.6e+125) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); elseif (a <= -3.1e-193) tmp = t_1; elseif (a <= 1.05e-246) tmp = Float64(y * Float64(Float64(x - t) / Float64(z - a))); elseif (a <= 4.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 <= -5.6e+125) tmp = x + (y * ((t - x) / a)); elseif (a <= -3.1e-193) tmp = t_1; elseif (a <= 1.05e-246) tmp = y * ((x - t) / (z - a)); elseif (a <= 4.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, -5.6e+125], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.1e-193], t$95$1, If[LessEqual[a, 1.05e-246], N[(y * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.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 -5.6 \cdot 10^{+125}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-246}:\\
\;\;\;\;y \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -5.6000000000000002e125Initial program 71.1%
associate-/l*95.9%
Simplified95.9%
Taylor expanded in z around 0 63.2%
associate-/l*83.1%
Simplified83.1%
if -5.6000000000000002e125 < a < -3.1000000000000002e-193 or 1.04999999999999997e-246 < a < 4.0999999999999998e35Initial program 70.7%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in x around 0 54.4%
associate-/l*66.3%
Simplified66.3%
if -3.1000000000000002e-193 < a < 1.04999999999999997e-246Initial program 68.6%
associate-/l*68.9%
Simplified68.9%
Taylor expanded in y around inf 72.8%
div-sub72.8%
Simplified72.8%
if 4.0999999999999998e35 < a Initial program 69.2%
associate-/l*86.8%
Simplified86.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
(if (<= z -1.26e+172)
t
(if (<= z -2.8e+41)
(* (/ y (- a z)) t)
(if (<= z -195000000.0)
(* x (/ y z))
(if (<= z 3.8e+87) (* x (- 1.0 (/ y a))) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.26e+172) {
tmp = t;
} else if (z <= -2.8e+41) {
tmp = (y / (a - z)) * t;
} else if (z <= -195000000.0) {
tmp = x * (y / z);
} else if (z <= 3.8e+87) {
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 <= (-1.26d+172)) then
tmp = t
else if (z <= (-2.8d+41)) then
tmp = (y / (a - z)) * t
else if (z <= (-195000000.0d0)) then
tmp = x * (y / z)
else if (z <= 3.8d+87) 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 <= -1.26e+172) {
tmp = t;
} else if (z <= -2.8e+41) {
tmp = (y / (a - z)) * t;
} else if (z <= -195000000.0) {
tmp = x * (y / z);
} else if (z <= 3.8e+87) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.26e+172: tmp = t elif z <= -2.8e+41: tmp = (y / (a - z)) * t elif z <= -195000000.0: tmp = x * (y / z) elif z <= 3.8e+87: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.26e+172) tmp = t; elseif (z <= -2.8e+41) tmp = Float64(Float64(y / Float64(a - z)) * t); elseif (z <= -195000000.0) tmp = Float64(x * Float64(y / z)); elseif (z <= 3.8e+87) 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 <= -1.26e+172) tmp = t; elseif (z <= -2.8e+41) tmp = (y / (a - z)) * t; elseif (z <= -195000000.0) tmp = x * (y / z); elseif (z <= 3.8e+87) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.26e+172], t, If[LessEqual[z, -2.8e+41], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -195000000.0], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+87], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.26 \cdot 10^{+172}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{+41}:\\
\;\;\;\;\frac{y}{a - z} \cdot t\\
\mathbf{elif}\;z \leq -195000000:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+87}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.2600000000000001e172 or 3.80000000000000011e87 < z Initial program 36.5%
associate-/l*64.1%
Simplified64.1%
Taylor expanded in z around inf 51.2%
if -1.2600000000000001e172 < z < -2.7999999999999999e41Initial program 66.6%
associate-/l*82.9%
Simplified82.9%
Taylor expanded in x around 0 40.9%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in y around inf 24.7%
associate-/l*36.9%
Simplified36.9%
if -2.7999999999999999e41 < z < -1.95e8Initial program 58.7%
associate-/l*68.7%
Simplified68.7%
Taylor expanded in y around -inf 27.2%
Taylor expanded in t around 0 26.9%
associate-*r*26.9%
mul-1-neg26.9%
Simplified26.9%
Taylor expanded in a around 0 26.9%
associate-/l*35.5%
Simplified35.5%
if -1.95e8 < z < 3.80000000000000011e87Initial program 87.6%
associate-/l*89.4%
Simplified89.4%
Taylor expanded in z around 0 61.7%
Taylor expanded in x around inf 53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Final simplification50.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.26e+172)
t
(if (<= z -7.6e+40)
(* (/ y (- a z)) t)
(if (<= z -225000000.0)
(* x (/ y z))
(if (<= z 9.5e+84) (* x (- 1.0 (/ y a))) (+ t (* a (/ t z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.26e+172) {
tmp = t;
} else if (z <= -7.6e+40) {
tmp = (y / (a - z)) * t;
} else if (z <= -225000000.0) {
tmp = x * (y / z);
} else if (z <= 9.5e+84) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t + (a * (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.26d+172)) then
tmp = t
else if (z <= (-7.6d+40)) then
tmp = (y / (a - z)) * t
else if (z <= (-225000000.0d0)) then
tmp = x * (y / z)
else if (z <= 9.5d+84) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t + (a * (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.26e+172) {
tmp = t;
} else if (z <= -7.6e+40) {
tmp = (y / (a - z)) * t;
} else if (z <= -225000000.0) {
tmp = x * (y / z);
} else if (z <= 9.5e+84) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t + (a * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.26e+172: tmp = t elif z <= -7.6e+40: tmp = (y / (a - z)) * t elif z <= -225000000.0: tmp = x * (y / z) elif z <= 9.5e+84: tmp = x * (1.0 - (y / a)) else: tmp = t + (a * (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.26e+172) tmp = t; elseif (z <= -7.6e+40) tmp = Float64(Float64(y / Float64(a - z)) * t); elseif (z <= -225000000.0) tmp = Float64(x * Float64(y / z)); elseif (z <= 9.5e+84) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t + Float64(a * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.26e+172) tmp = t; elseif (z <= -7.6e+40) tmp = (y / (a - z)) * t; elseif (z <= -225000000.0) tmp = x * (y / z); elseif (z <= 9.5e+84) tmp = x * (1.0 - (y / a)); else tmp = t + (a * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.26e+172], t, If[LessEqual[z, -7.6e+40], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -225000000.0], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+84], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.26 \cdot 10^{+172}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -7.6 \cdot 10^{+40}:\\
\;\;\;\;\frac{y}{a - z} \cdot t\\
\mathbf{elif}\;z \leq -225000000:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+84}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\end{array}
\end{array}
if z < -1.2600000000000001e172Initial program 29.7%
associate-/l*59.1%
Simplified59.1%
Taylor expanded in z around inf 53.2%
if -1.2600000000000001e172 < z < -7.60000000000000009e40Initial program 66.6%
associate-/l*82.9%
Simplified82.9%
Taylor expanded in x around 0 40.9%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in y around inf 24.7%
associate-/l*36.9%
Simplified36.9%
if -7.60000000000000009e40 < z < -2.25e8Initial program 58.7%
associate-/l*68.7%
Simplified68.7%
Taylor expanded in y around -inf 27.2%
Taylor expanded in t around 0 26.9%
associate-*r*26.9%
mul-1-neg26.9%
Simplified26.9%
Taylor expanded in a around 0 26.9%
associate-/l*35.5%
Simplified35.5%
if -2.25e8 < z < 9.49999999999999979e84Initial program 87.5%
associate-/l*89.3%
Simplified89.3%
Taylor expanded in z around 0 61.5%
Taylor expanded in x around inf 53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if 9.49999999999999979e84 < z Initial program 41.5%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in y around 0 33.0%
mul-1-neg33.0%
unsub-neg33.0%
associate-/l*54.7%
Simplified54.7%
Taylor expanded in z around inf 47.7%
mul-1-neg47.7%
associate-+r+47.7%
mul-1-neg47.7%
distribute-rgt1-in47.7%
metadata-eval47.7%
mul0-lft47.7%
associate-/l*55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
associate-/l*57.1%
Simplified57.1%
Taylor expanded in x around 0 43.3%
associate-/l*51.4%
Simplified51.4%
Final simplification50.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= z -7.8e+134)
t
(if (<= z 1.65e-223)
t_1
(if (<= z 6.2e-114)
(* x (- 1.0 (/ y a)))
(if (<= z 3.2e+98) t_1 (+ t (* a (/ t z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (z <= -7.8e+134) {
tmp = t;
} else if (z <= 1.65e-223) {
tmp = t_1;
} else if (z <= 6.2e-114) {
tmp = x * (1.0 - (y / a));
} else if (z <= 3.2e+98) {
tmp = t_1;
} else {
tmp = t + (a * (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) :: t_1
real(8) :: tmp
t_1 = x + (t * (y / a))
if (z <= (-7.8d+134)) then
tmp = t
else if (z <= 1.65d-223) then
tmp = t_1
else if (z <= 6.2d-114) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 3.2d+98) then
tmp = t_1
else
tmp = t + (a * (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (z <= -7.8e+134) {
tmp = t;
} else if (z <= 1.65e-223) {
tmp = t_1;
} else if (z <= 6.2e-114) {
tmp = x * (1.0 - (y / a));
} else if (z <= 3.2e+98) {
tmp = t_1;
} else {
tmp = t + (a * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if z <= -7.8e+134: tmp = t elif z <= 1.65e-223: tmp = t_1 elif z <= 6.2e-114: tmp = x * (1.0 - (y / a)) elif z <= 3.2e+98: tmp = t_1 else: tmp = t + (a * (t / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (z <= -7.8e+134) tmp = t; elseif (z <= 1.65e-223) tmp = t_1; elseif (z <= 6.2e-114) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 3.2e+98) tmp = t_1; else tmp = Float64(t + Float64(a * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (z <= -7.8e+134) tmp = t; elseif (z <= 1.65e-223) tmp = t_1; elseif (z <= 6.2e-114) tmp = x * (1.0 - (y / a)); elseif (z <= 3.2e+98) tmp = t_1; else tmp = t + (a * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+134], t, If[LessEqual[z, 1.65e-223], t$95$1, If[LessEqual[z, 6.2e-114], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+98], t$95$1, N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+134}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-223}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-114}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\end{array}
\end{array}
if z < -7.79999999999999967e134Initial program 34.0%
associate-/l*66.7%
Simplified66.7%
Taylor expanded in z around inf 46.9%
if -7.79999999999999967e134 < z < 1.64999999999999997e-223 or 6.2e-114 < z < 3.2000000000000002e98Initial program 82.8%
associate-/l*86.4%
Simplified86.4%
Taylor expanded in z around 0 53.9%
Taylor expanded in t around inf 47.8%
associate-/l*52.7%
Simplified52.7%
if 1.64999999999999997e-223 < z < 6.2e-114Initial program 92.6%
associate-/l*92.4%
Simplified92.4%
Taylor expanded in z around 0 67.1%
Taylor expanded in x around inf 69.9%
mul-1-neg69.9%
unsub-neg69.9%
Simplified69.9%
if 3.2000000000000002e98 < z Initial program 39.7%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in y around 0 32.8%
mul-1-neg32.8%
unsub-neg32.8%
associate-/l*56.0%
Simplified56.0%
Taylor expanded in z around inf 46.4%
mul-1-neg46.4%
associate-+r+46.4%
mul-1-neg46.4%
distribute-rgt1-in46.4%
metadata-eval46.4%
mul0-lft46.4%
associate-/l*55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
associate-/l*56.4%
Simplified56.4%
Taylor expanded in x around 0 41.8%
associate-/l*50.4%
Simplified50.4%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))) (t_2 (* t (/ z (- z a)))))
(if (<= z -4.9e+100)
t_2
(if (<= z 3.4e-224)
t_1
(if (<= z 5.3e-114)
(* x (- 1.0 (/ y a)))
(if (<= z 2.6e+95) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = t * (z / (z - a));
double tmp;
if (z <= -4.9e+100) {
tmp = t_2;
} else if (z <= 3.4e-224) {
tmp = t_1;
} else if (z <= 5.3e-114) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.6e+95) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (t * (y / a))
t_2 = t * (z / (z - a))
if (z <= (-4.9d+100)) then
tmp = t_2
else if (z <= 3.4d-224) then
tmp = t_1
else if (z <= 5.3d-114) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 2.6d+95) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = t * (z / (z - a));
double tmp;
if (z <= -4.9e+100) {
tmp = t_2;
} else if (z <= 3.4e-224) {
tmp = t_1;
} else if (z <= 5.3e-114) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.6e+95) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) t_2 = t * (z / (z - a)) tmp = 0 if z <= -4.9e+100: tmp = t_2 elif z <= 3.4e-224: tmp = t_1 elif z <= 5.3e-114: tmp = x * (1.0 - (y / a)) elif z <= 2.6e+95: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) t_2 = Float64(t * Float64(z / Float64(z - a))) tmp = 0.0 if (z <= -4.9e+100) tmp = t_2; elseif (z <= 3.4e-224) tmp = t_1; elseif (z <= 5.3e-114) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 2.6e+95) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); t_2 = t * (z / (z - a)); tmp = 0.0; if (z <= -4.9e+100) tmp = t_2; elseif (z <= 3.4e-224) tmp = t_1; elseif (z <= 5.3e-114) tmp = x * (1.0 - (y / a)); elseif (z <= 2.6e+95) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.9e+100], t$95$2, If[LessEqual[z, 3.4e-224], t$95$1, If[LessEqual[z, 5.3e-114], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+95], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
t_2 := t \cdot \frac{z}{z - a}\\
\mathbf{if}\;z \leq -4.9 \cdot 10^{+100}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-114}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.89999999999999967e100 or 2.5999999999999999e95 < z Initial program 41.6%
associate-/l*66.1%
Simplified66.1%
Taylor expanded in y around 0 32.7%
mul-1-neg32.7%
unsub-neg32.7%
associate-/l*52.6%
Simplified52.6%
Taylor expanded in x around 0 31.6%
mul-1-neg31.6%
associate-/l*52.4%
distribute-rgt-neg-in52.4%
mul-1-neg52.4%
associate-*r/52.4%
neg-mul-152.4%
Simplified52.4%
if -4.89999999999999967e100 < z < 3.39999999999999992e-224 or 5.29999999999999973e-114 < z < 2.5999999999999999e95Initial program 83.1%
associate-/l*87.6%
Simplified87.6%
Taylor expanded in z around 0 55.7%
Taylor expanded in t around inf 49.2%
associate-/l*54.4%
Simplified54.4%
if 3.39999999999999992e-224 < z < 5.29999999999999973e-114Initial program 92.6%
associate-/l*92.4%
Simplified92.4%
Taylor expanded in z around 0 67.1%
Taylor expanded in x around inf 69.9%
mul-1-neg69.9%
unsub-neg69.9%
Simplified69.9%
Final simplification55.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) z))) (t_2 (+ x (* t (/ y a)))))
(if (<= a -7.8e+29)
t_2
(if (<= a -7e-208)
t_1
(if (<= a 1.15e-261)
(* x (/ y (- z a)))
(if (<= a 1.6e+35) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / z);
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -7.8e+29) {
tmp = t_2;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 1.15e-261) {
tmp = x * (y / (z - a));
} else if (a <= 1.6e+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 * ((z - y) / z)
t_2 = x + (t * (y / a))
if (a <= (-7.8d+29)) then
tmp = t_2
else if (a <= (-7d-208)) then
tmp = t_1
else if (a <= 1.15d-261) then
tmp = x * (y / (z - a))
else if (a <= 1.6d+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 * ((z - y) / z);
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -7.8e+29) {
tmp = t_2;
} else if (a <= -7e-208) {
tmp = t_1;
} else if (a <= 1.15e-261) {
tmp = x * (y / (z - a));
} else if (a <= 1.6e+35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / z) t_2 = x + (t * (y / a)) tmp = 0 if a <= -7.8e+29: tmp = t_2 elif a <= -7e-208: tmp = t_1 elif a <= 1.15e-261: tmp = x * (y / (z - a)) elif a <= 1.6e+35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / z)) t_2 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -7.8e+29) tmp = t_2; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 1.15e-261) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (a <= 1.6e+35) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / z); t_2 = x + (t * (y / a)); tmp = 0.0; if (a <= -7.8e+29) tmp = t_2; elseif (a <= -7e-208) tmp = t_1; elseif (a <= 1.15e-261) tmp = x * (y / (z - a)); elseif (a <= 1.6e+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[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+29], t$95$2, If[LessEqual[a, -7e-208], t$95$1, If[LessEqual[a, 1.15e-261], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+35], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z}\\
t_2 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-261}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.79999999999999937e29 or 1.59999999999999991e35 < a Initial program 70.7%
associate-/l*91.1%
Simplified91.1%
Taylor expanded in z around 0 59.9%
Taylor expanded in t around inf 57.8%
associate-/l*63.1%
Simplified63.1%
if -7.79999999999999937e29 < a < -6.99999999999999982e-208 or 1.15e-261 < a < 1.59999999999999991e35Initial program 70.8%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in x around 0 55.7%
associate-/l*64.8%
Simplified64.8%
Taylor expanded in a around 0 52.5%
associate-*r/52.5%
neg-mul-152.5%
Simplified52.5%
if -6.99999999999999982e-208 < a < 1.15e-261Initial program 65.8%
associate-/l*69.0%
Simplified69.0%
Taylor expanded in y around -inf 62.3%
Taylor expanded in t around 0 47.5%
mul-1-neg47.5%
associate-/l*61.5%
Simplified61.5%
Final simplification58.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- z y) z))) (t_2 (+ x (* t (/ y a)))))
(if (<= a -1.35e+30)
t_2
(if (<= a -2.45e-236)
t_1
(if (<= a 3.1e-251) (/ (* y (- x t)) z) (if (<= a 1.2e+35) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((z - y) / z);
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -1.35e+30) {
tmp = t_2;
} else if (a <= -2.45e-236) {
tmp = t_1;
} else if (a <= 3.1e-251) {
tmp = (y * (x - t)) / z;
} else if (a <= 1.2e+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 * ((z - y) / z)
t_2 = x + (t * (y / a))
if (a <= (-1.35d+30)) then
tmp = t_2
else if (a <= (-2.45d-236)) then
tmp = t_1
else if (a <= 3.1d-251) then
tmp = (y * (x - t)) / z
else if (a <= 1.2d+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 * ((z - y) / z);
double t_2 = x + (t * (y / a));
double tmp;
if (a <= -1.35e+30) {
tmp = t_2;
} else if (a <= -2.45e-236) {
tmp = t_1;
} else if (a <= 3.1e-251) {
tmp = (y * (x - t)) / z;
} else if (a <= 1.2e+35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((z - y) / z) t_2 = x + (t * (y / a)) tmp = 0 if a <= -1.35e+30: tmp = t_2 elif a <= -2.45e-236: tmp = t_1 elif a <= 3.1e-251: tmp = (y * (x - t)) / z elif a <= 1.2e+35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(z - y) / z)) t_2 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -1.35e+30) tmp = t_2; elseif (a <= -2.45e-236) tmp = t_1; elseif (a <= 3.1e-251) tmp = Float64(Float64(y * Float64(x - t)) / z); elseif (a <= 1.2e+35) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((z - y) / z); t_2 = x + (t * (y / a)); tmp = 0.0; if (a <= -1.35e+30) tmp = t_2; elseif (a <= -2.45e-236) tmp = t_1; elseif (a <= 3.1e-251) tmp = (y * (x - t)) / z; elseif (a <= 1.2e+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[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35e+30], t$95$2, If[LessEqual[a, -2.45e-236], t$95$1, If[LessEqual[a, 3.1e-251], N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 1.2e+35], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{z - y}{z}\\
t_2 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -1.35 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-251}:\\
\;\;\;\;\frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.3499999999999999e30 or 1.20000000000000007e35 < a Initial program 70.7%
associate-/l*91.1%
Simplified91.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.3499999999999999e30 < a < -2.4499999999999998e-236 or 3.10000000000000003e-251 < a < 1.20000000000000007e35Initial program 68.5%
associate-/l*71.3%
Simplified71.3%
Taylor expanded in x around 0 55.6%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in a around 0 52.5%
associate-*r/52.5%
neg-mul-152.5%
Simplified52.5%
if -2.4499999999999998e-236 < a < 3.10000000000000003e-251Initial program 72.6%
associate-/l*70.0%
Simplified70.0%
Taylor expanded in y around -inf 71.7%
Taylor expanded in a around 0 65.0%
associate-*r/65.0%
mul-1-neg65.0%
Simplified65.0%
Final simplification59.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (- t x) (/ (- z y) a)))))
(if (<= a -18000000000000.0)
t_1
(if (<= a 2.75e-151)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= a 3.1e+19) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((t - x) * ((z - y) / a));
double tmp;
if (a <= -18000000000000.0) {
tmp = t_1;
} else if (a <= 2.75e-151) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 3.1e+19) {
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 - ((t - x) * ((z - y) / a))
if (a <= (-18000000000000.0d0)) then
tmp = t_1
else if (a <= 2.75d-151) then
tmp = t + (((t - x) * (a - y)) / z)
else if (a <= 3.1d+19) 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 - ((t - x) * ((z - y) / a));
double tmp;
if (a <= -18000000000000.0) {
tmp = t_1;
} else if (a <= 2.75e-151) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 3.1e+19) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((t - x) * ((z - y) / a)) tmp = 0 if a <= -18000000000000.0: tmp = t_1 elif a <= 2.75e-151: tmp = t + (((t - x) * (a - y)) / z) elif a <= 3.1e+19: 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(t - x) * Float64(Float64(z - y) / a))) tmp = 0.0 if (a <= -18000000000000.0) tmp = t_1; elseif (a <= 2.75e-151) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (a <= 3.1e+19) 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 - ((t - x) * ((z - y) / a)); tmp = 0.0; if (a <= -18000000000000.0) tmp = t_1; elseif (a <= 2.75e-151) tmp = t + (((t - x) * (a - y)) / z); elseif (a <= 3.1e+19) 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[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -18000000000000.0], t$95$1, If[LessEqual[a, 2.75e-151], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+19], 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 - \left(t - x\right) \cdot \frac{z - y}{a}\\
\mathbf{if}\;a \leq -18000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.75 \cdot 10^{-151}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.8e13 or 3.1e19 < a Initial program 72.1%
associate-/l*91.5%
Simplified91.5%
Taylor expanded in a around inf 64.9%
associate-/l*78.4%
Simplified78.4%
if -1.8e13 < a < 2.7499999999999999e-151Initial program 65.5%
associate-/l*67.6%
Simplified67.6%
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%
if 2.7499999999999999e-151 < a < 3.1e19Initial program 75.5%
associate-/l*75.3%
Simplified75.3%
Taylor expanded in x around 0 60.0%
associate-/l*74.9%
Simplified74.9%
Final simplification77.4%
(FPCore (x y z t a)
:precision binary64
(if (<= x -9e+186)
(* x (/ y (- z a)))
(if (or (<= x -7e-71) (not (<= x 2.35e-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 <= -9e+186) {
tmp = x * (y / (z - a));
} else if ((x <= -7e-71) || !(x <= 2.35e-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 <= (-9d+186)) then
tmp = x * (y / (z - a))
else if ((x <= (-7d-71)) .or. (.not. (x <= 2.35d-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 <= -9e+186) {
tmp = x * (y / (z - a));
} else if ((x <= -7e-71) || !(x <= 2.35e-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 <= -9e+186: tmp = x * (y / (z - a)) elif (x <= -7e-71) or not (x <= 2.35e-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 <= -9e+186) tmp = Float64(x * Float64(y / Float64(z - a))); elseif ((x <= -7e-71) || !(x <= 2.35e-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 <= -9e+186) tmp = x * (y / (z - a)); elseif ((x <= -7e-71) || ~((x <= 2.35e-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, -9e+186], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -7e-71], N[Not[LessEqual[x, 2.35e-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 -9 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-71} \lor \neg \left(x \leq 2.35 \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 < -9.0000000000000009e186Initial program 44.0%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in y around -inf 44.8%
Taylor expanded in t around 0 40.7%
mul-1-neg40.7%
associate-/l*55.5%
Simplified55.5%
if -9.0000000000000009e186 < x < -6.9999999999999998e-71 or 2.35e-23 < x Initial program 67.7%
associate-/l*78.8%
Simplified78.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 -6.9999999999999998e-71 < x < 2.35e-23Initial program 79.1%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in x around 0 65.4%
associate-/l*77.3%
Simplified77.3%
Final simplification64.7%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.75e+187)
(* y (/ (- x t) (- z a)))
(if (or (<= x -1.56e-65) (not (<= x 2.35e-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.75e+187) {
tmp = y * ((x - t) / (z - a));
} else if ((x <= -1.56e-65) || !(x <= 2.35e-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.75d+187)) then
tmp = y * ((x - t) / (z - a))
else if ((x <= (-1.56d-65)) .or. (.not. (x <= 2.35d-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.75e+187) {
tmp = y * ((x - t) / (z - a));
} else if ((x <= -1.56e-65) || !(x <= 2.35e-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.75e+187: tmp = y * ((x - t) / (z - a)) elif (x <= -1.56e-65) or not (x <= 2.35e-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.75e+187) tmp = Float64(y * Float64(Float64(x - t) / Float64(z - a))); elseif ((x <= -1.56e-65) || !(x <= 2.35e-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.75e+187) tmp = y * ((x - t) / (z - a)); elseif ((x <= -1.56e-65) || ~((x <= 2.35e-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.75e+187], N[(y * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1.56e-65], N[Not[LessEqual[x, 2.35e-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.75 \cdot 10^{+187}:\\
\;\;\;\;y \cdot \frac{x - t}{z - a}\\
\mathbf{elif}\;x \leq -1.56 \cdot 10^{-65} \lor \neg \left(x \leq 2.35 \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.7499999999999999e187Initial program 44.0%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in y around inf 66.8%
div-sub66.8%
Simplified66.8%
if -1.7499999999999999e187 < x < -1.55999999999999993e-65 or 2.35e-23 < x Initial program 67.7%
associate-/l*78.8%
Simplified78.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.35e-23Initial program 79.1%
associate-/l*87.7%
Simplified87.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 (or (<= a -1.75e-78) (not (<= a 1.75e-116))) (- x (* (/ (- x t) (- z a)) (- z y))) (+ t (/ (* (- t x) (- a y)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.75e-78) || !(a <= 1.75e-116)) {
tmp = x - (((x - t) / (z - a)) * (z - y));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.75d-78)) .or. (.not. (a <= 1.75d-116))) then
tmp = x - (((x - t) / (z - a)) * (z - y))
else
tmp = t + (((t - x) * (a - y)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.75e-78) || !(a <= 1.75e-116)) {
tmp = x - (((x - t) / (z - a)) * (z - y));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.75e-78) or not (a <= 1.75e-116): tmp = x - (((x - t) / (z - a)) * (z - y)) else: tmp = t + (((t - x) * (a - y)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.75e-78) || !(a <= 1.75e-116)) tmp = Float64(x - Float64(Float64(Float64(x - t) / Float64(z - a)) * Float64(z - y))); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.75e-78) || ~((a <= 1.75e-116))) tmp = x - (((x - t) / (z - a)) * (z - y)); else tmp = t + (((t - x) * (a - y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.75e-78], N[Not[LessEqual[a, 1.75e-116]], $MachinePrecision]], N[(x - N[(N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.75 \cdot 10^{-78} \lor \neg \left(a \leq 1.75 \cdot 10^{-116}\right):\\
\;\;\;\;x - \frac{x - t}{z - a} \cdot \left(z - y\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if a < -1.75e-78 or 1.74999999999999992e-116 < a Initial program 72.2%
associate-/l*88.7%
Simplified88.7%
if -1.75e-78 < a < 1.74999999999999992e-116Initial program 66.1%
associate-/l*66.2%
Simplified66.2%
Taylor expanded in z around inf 78.2%
associate--l+78.2%
associate-*r/78.2%
associate-*r/78.2%
mul-1-neg78.2%
div-sub78.2%
mul-1-neg78.2%
distribute-lft-out--78.2%
associate-*r/78.2%
mul-1-neg78.2%
unsub-neg78.2%
distribute-rgt-out--78.2%
Simplified78.2%
Final simplification85.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= a -7.1e-90)
t_1
(if (<= a 1.65e-184)
(* x (/ y (- z a)))
(if (<= a 8e+36) (+ t (* a (/ t z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -7.1e-90) {
tmp = t_1;
} else if (a <= 1.65e-184) {
tmp = x * (y / (z - a));
} else if (a <= 8e+36) {
tmp = t + (a * (t / 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 + (t * (y / a))
if (a <= (-7.1d-90)) then
tmp = t_1
else if (a <= 1.65d-184) then
tmp = x * (y / (z - a))
else if (a <= 8d+36) then
tmp = t + (a * (t / 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 + (t * (y / a));
double tmp;
if (a <= -7.1e-90) {
tmp = t_1;
} else if (a <= 1.65e-184) {
tmp = x * (y / (z - a));
} else if (a <= 8e+36) {
tmp = t + (a * (t / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if a <= -7.1e-90: tmp = t_1 elif a <= 1.65e-184: tmp = x * (y / (z - a)) elif a <= 8e+36: tmp = t + (a * (t / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -7.1e-90) tmp = t_1; elseif (a <= 1.65e-184) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (a <= 8e+36) tmp = Float64(t + Float64(a * Float64(t / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (a <= -7.1e-90) tmp = t_1; elseif (a <= 1.65e-184) tmp = x * (y / (z - a)); elseif (a <= 8e+36) tmp = t + (a * (t / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.1e-90], t$95$1, If[LessEqual[a, 1.65e-184], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e+36], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -7.1 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-184}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+36}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.1000000000000001e-90 or 8.00000000000000034e36 < a Initial program 69.8%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in z around 0 55.0%
Taylor expanded in t around inf 52.6%
associate-/l*57.2%
Simplified57.2%
if -7.1000000000000001e-90 < a < 1.6499999999999999e-184Initial program 67.4%
associate-/l*66.2%
Simplified66.2%
Taylor expanded in y around -inf 57.4%
Taylor expanded in t around 0 41.5%
mul-1-neg41.5%
associate-/l*48.0%
Simplified48.0%
if 1.6499999999999999e-184 < a < 8.00000000000000034e36Initial program 76.3%
associate-/l*78.5%
Simplified78.5%
Taylor expanded in y around 0 40.4%
mul-1-neg40.4%
unsub-neg40.4%
associate-/l*47.2%
Simplified47.2%
Taylor expanded in z around inf 53.4%
mul-1-neg53.4%
associate-+r+53.4%
mul-1-neg53.4%
distribute-rgt1-in53.4%
metadata-eval53.4%
mul0-lft53.4%
associate-/l*55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
associate-/l*55.7%
Simplified55.7%
Taylor expanded in x around 0 44.0%
associate-/l*46.3%
Simplified46.3%
Final simplification52.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.4e+123)
x
(if (<= a -2.9e-157)
t
(if (<= a 8.2e-183) (* x (/ y z)) (if (<= a 2.2e+46) 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-157) {
tmp = t;
} else if (a <= 8.2e-183) {
tmp = x * (y / z);
} else if (a <= 2.2e+46) {
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-157)) then
tmp = t
else if (a <= 8.2d-183) then
tmp = x * (y / z)
else if (a <= 2.2d+46) 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-157) {
tmp = t;
} else if (a <= 8.2e-183) {
tmp = x * (y / z);
} else if (a <= 2.2e+46) {
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-157: tmp = t elif a <= 8.2e-183: tmp = x * (y / z) elif a <= 2.2e+46: 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-157) tmp = t; elseif (a <= 8.2e-183) tmp = Float64(x * Float64(y / z)); elseif (a <= 2.2e+46) 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-157) tmp = t; elseif (a <= 8.2e-183) tmp = x * (y / z); elseif (a <= 2.2e+46) 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-157], t, If[LessEqual[a, 8.2e-183], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+46], 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^{-157}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{-183}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+46}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 2.2e46 < a Initial program 69.7%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < -2.89999999999999988e-157 or 8.1999999999999996e-183 < a < 2.2e46Initial program 70.8%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in z around inf 34.9%
if -2.89999999999999988e-157 < a < 8.1999999999999996e-183Initial program 69.9%
associate-/l*67.0%
Simplified67.0%
Taylor expanded in y around -inf 59.5%
Taylor expanded in t around 0 41.8%
associate-*r*41.8%
mul-1-neg41.8%
Simplified41.8%
Taylor expanded in a around 0 35.0%
associate-/l*44.5%
Simplified44.5%
Final simplification43.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7.2e+126)
x
(if (<= a -2.6e-189)
(* (/ y (- a z)) t)
(if (<= a 2.7e-185) (* x (/ y z)) (if (<= a 5e+41) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.2e+126) {
tmp = x;
} else if (a <= -2.6e-189) {
tmp = (y / (a - z)) * t;
} else if (a <= 2.7e-185) {
tmp = x * (y / z);
} else if (a <= 5e+41) {
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 <= (-7.2d+126)) then
tmp = x
else if (a <= (-2.6d-189)) then
tmp = (y / (a - z)) * t
else if (a <= 2.7d-185) then
tmp = x * (y / z)
else if (a <= 5d+41) 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 <= -7.2e+126) {
tmp = x;
} else if (a <= -2.6e-189) {
tmp = (y / (a - z)) * t;
} else if (a <= 2.7e-185) {
tmp = x * (y / z);
} else if (a <= 5e+41) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.2e+126: tmp = x elif a <= -2.6e-189: tmp = (y / (a - z)) * t elif a <= 2.7e-185: tmp = x * (y / z) elif a <= 5e+41: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.2e+126) tmp = x; elseif (a <= -2.6e-189) tmp = Float64(Float64(y / Float64(a - z)) * t); elseif (a <= 2.7e-185) tmp = Float64(x * Float64(y / z)); elseif (a <= 5e+41) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.2e+126) tmp = x; elseif (a <= -2.6e-189) tmp = (y / (a - z)) * t; elseif (a <= 2.7e-185) tmp = x * (y / z); elseif (a <= 5e+41) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.2e+126], x, If[LessEqual[a, -2.6e-189], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 2.7e-185], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+41], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{+126}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-189}:\\
\;\;\;\;\frac{y}{a - z} \cdot t\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-185}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+41}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -7.2000000000000001e126 or 5.00000000000000022e41 < a Initial program 69.4%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in a around inf 50.5%
if -7.2000000000000001e126 < a < -2.5999999999999999e-189Initial program 66.5%
associate-/l*78.4%
Simplified78.4%
Taylor expanded in x around 0 51.8%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in y around inf 27.0%
associate-/l*32.0%
Simplified32.0%
if -2.5999999999999999e-189 < a < 2.69999999999999988e-185Initial program 69.5%
associate-/l*66.4%
Simplified66.4%
Taylor expanded in y around -inf 60.0%
Taylor expanded in t around 0 42.9%
associate-*r*42.9%
mul-1-neg42.9%
Simplified42.9%
Taylor expanded in a around 0 35.6%
associate-/l*45.7%
Simplified45.7%
if 2.69999999999999988e-185 < a < 5.00000000000000022e41Initial program 77.4%
associate-/l*79.5%
Simplified79.5%
Taylor expanded in z around inf 39.3%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.4e+123) x (if (<= a 7.2e+42) 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 <= 7.2e+42) {
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 <= 7.2d+42) 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 <= 7.2e+42) {
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 <= 7.2e+42: 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 <= 7.2e+42) 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 <= 7.2e+42) 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, 7.2e+42], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+42}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.39999999999999958e123 or 7.2000000000000002e42 < a Initial program 69.7%
associate-/l*90.4%
Simplified90.4%
Taylor expanded in a around inf 50.1%
if -9.39999999999999958e123 < a < 7.2000000000000002e42Initial program 70.4%
associate-/l*74.1%
Simplified74.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 70.1%
associate-/l*80.9%
Simplified80.9%
Taylor expanded in z around inf 21.9%
Final simplification21.9%
(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 2024059
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(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))))