
(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 24 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 (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-181) (not (<= t_1 0.0)))
(+ x (* (/ (- z y) (- a z)) (- x t)))
(+ t (/ (* (- t x) (- a y)) z)))))
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-181) || !(t_1 <= 0.0)) {
tmp = x + (((z - y) / (a - z)) * (x - t));
} 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) * (t - x)) / (a - z))
if ((t_1 <= (-5d-181)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + (((z - y) / (a - z)) * (x - t))
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) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-181) || !(t_1 <= 0.0)) {
tmp = x + (((z - y) / (a - z)) * (x - t));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -5e-181) or not (t_1 <= 0.0): tmp = x + (((z - y) / (a - z)) * (x - t)) 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(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -5e-181) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(Float64(z - y) / Float64(a - z)) * Float64(x - t))); 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) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-181) || ~((t_1 <= 0.0))) tmp = x + (((z - y) / (a - z)) * (x - t)); 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[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-181], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(x - t), $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(t - x\right)}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-181} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{z - y}{a - z} \cdot \left(x - t\right)\\
\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.0000000000000001e-181 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 74.5%
associate-*l/90.2%
Simplified90.2%
if -5.0000000000000001e-181 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 3.3%
associate-*l/3.3%
Simplified3.3%
Taylor expanded in z around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Final simplification90.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -5e+50)
t
(if (<= z -7.5e-117)
t_1
(if (<= z -3.1e-220)
(* y (/ (- t x) a))
(if (<= z -6.5e-235)
t_1
(if (<= z 8.6e-267)
(+ x (/ (* y t) a))
(if (<= z 4.4e-28)
t_1
(if (<= z 2.05e+125)
t
(if (<= z 8.2e+190) (* t (/ (- y z) a)) t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5e+50) {
tmp = t;
} else if (z <= -7.5e-117) {
tmp = t_1;
} else if (z <= -3.1e-220) {
tmp = y * ((t - x) / a);
} else if (z <= -6.5e-235) {
tmp = t_1;
} else if (z <= 8.6e-267) {
tmp = x + ((y * t) / a);
} else if (z <= 4.4e-28) {
tmp = t_1;
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 8.2e+190) {
tmp = t * ((y - z) / 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-5d+50)) then
tmp = t
else if (z <= (-7.5d-117)) then
tmp = t_1
else if (z <= (-3.1d-220)) then
tmp = y * ((t - x) / a)
else if (z <= (-6.5d-235)) then
tmp = t_1
else if (z <= 8.6d-267) then
tmp = x + ((y * t) / a)
else if (z <= 4.4d-28) then
tmp = t_1
else if (z <= 2.05d+125) then
tmp = t
else if (z <= 8.2d+190) then
tmp = t * ((y - z) / 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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5e+50) {
tmp = t;
} else if (z <= -7.5e-117) {
tmp = t_1;
} else if (z <= -3.1e-220) {
tmp = y * ((t - x) / a);
} else if (z <= -6.5e-235) {
tmp = t_1;
} else if (z <= 8.6e-267) {
tmp = x + ((y * t) / a);
} else if (z <= 4.4e-28) {
tmp = t_1;
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 8.2e+190) {
tmp = t * ((y - z) / a);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -5e+50: tmp = t elif z <= -7.5e-117: tmp = t_1 elif z <= -3.1e-220: tmp = y * ((t - x) / a) elif z <= -6.5e-235: tmp = t_1 elif z <= 8.6e-267: tmp = x + ((y * t) / a) elif z <= 4.4e-28: tmp = t_1 elif z <= 2.05e+125: tmp = t elif z <= 8.2e+190: tmp = t * ((y - z) / a) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -5e+50) tmp = t; elseif (z <= -7.5e-117) tmp = t_1; elseif (z <= -3.1e-220) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= -6.5e-235) tmp = t_1; elseif (z <= 8.6e-267) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 4.4e-28) tmp = t_1; elseif (z <= 2.05e+125) tmp = t; elseif (z <= 8.2e+190) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -5e+50) tmp = t; elseif (z <= -7.5e-117) tmp = t_1; elseif (z <= -3.1e-220) tmp = y * ((t - x) / a); elseif (z <= -6.5e-235) tmp = t_1; elseif (z <= 8.6e-267) tmp = x + ((y * t) / a); elseif (z <= 4.4e-28) tmp = t_1; elseif (z <= 2.05e+125) tmp = t; elseif (z <= 8.2e+190) tmp = t * ((y - z) / a); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+50], t, If[LessEqual[z, -7.5e-117], t$95$1, If[LessEqual[z, -3.1e-220], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.5e-235], t$95$1, If[LessEqual[z, 8.6e-267], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e-28], t$95$1, If[LessEqual[z, 2.05e+125], t, If[LessEqual[z, 8.2e+190], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+50}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-220}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{-267}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+190}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5e50 or 4.39999999999999992e-28 < z < 2.04999999999999996e125 or 8.2000000000000004e190 < z Initial program 41.9%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 53.3%
if -5e50 < z < -7.50000000000000066e-117 or -3.10000000000000011e-220 < z < -6.49999999999999973e-235 or 8.5999999999999992e-267 < z < 4.39999999999999992e-28Initial program 92.7%
associate-*l/94.5%
Simplified94.5%
Taylor expanded in z around 0 69.0%
Taylor expanded in x around inf 58.7%
mul-1-neg58.7%
sub-neg58.7%
Simplified58.7%
if -7.50000000000000066e-117 < z < -3.10000000000000011e-220Initial program 84.8%
associate-*l/85.2%
Simplified85.2%
Taylor expanded in z around 0 62.1%
Taylor expanded in y around inf 62.6%
div-sub62.6%
Simplified62.6%
if -6.49999999999999973e-235 < z < 8.5999999999999992e-267Initial program 91.9%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in z around 0 85.2%
Taylor expanded in t around inf 77.0%
if 2.04999999999999996e125 < z < 8.2000000000000004e190Initial program 55.0%
clear-num55.1%
associate-/r/55.0%
Applied egg-rr55.0%
Taylor expanded in t around inf 60.6%
div-sub60.6%
Simplified60.6%
Taylor expanded in a around inf 52.4%
Final simplification58.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -5.7e+50)
t
(if (<= z -1.35e-113)
t_1
(if (<= z -1.14e-218)
(* y (/ (- t x) a))
(if (<= z -4.2e-234)
t_1
(if (<= z 1.3e-263)
(+ x (/ (* y t) a))
(if (<= z 1.8e-24)
(- x (/ x (/ a y)))
(if (<= z 2.05e+125)
t
(if (<= z 5.3e+190) (* t (/ (- y z) a)) t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.7e+50) {
tmp = t;
} else if (z <= -1.35e-113) {
tmp = t_1;
} else if (z <= -1.14e-218) {
tmp = y * ((t - x) / a);
} else if (z <= -4.2e-234) {
tmp = t_1;
} else if (z <= 1.3e-263) {
tmp = x + ((y * t) / a);
} else if (z <= 1.8e-24) {
tmp = x - (x / (a / y));
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-5.7d+50)) then
tmp = t
else if (z <= (-1.35d-113)) then
tmp = t_1
else if (z <= (-1.14d-218)) then
tmp = y * ((t - x) / a)
else if (z <= (-4.2d-234)) then
tmp = t_1
else if (z <= 1.3d-263) then
tmp = x + ((y * t) / a)
else if (z <= 1.8d-24) then
tmp = x - (x / (a / y))
else if (z <= 2.05d+125) then
tmp = t
else if (z <= 5.3d+190) then
tmp = t * ((y - z) / 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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -5.7e+50) {
tmp = t;
} else if (z <= -1.35e-113) {
tmp = t_1;
} else if (z <= -1.14e-218) {
tmp = y * ((t - x) / a);
} else if (z <= -4.2e-234) {
tmp = t_1;
} else if (z <= 1.3e-263) {
tmp = x + ((y * t) / a);
} else if (z <= 1.8e-24) {
tmp = x - (x / (a / y));
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / a);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -5.7e+50: tmp = t elif z <= -1.35e-113: tmp = t_1 elif z <= -1.14e-218: tmp = y * ((t - x) / a) elif z <= -4.2e-234: tmp = t_1 elif z <= 1.3e-263: tmp = x + ((y * t) / a) elif z <= 1.8e-24: tmp = x - (x / (a / y)) elif z <= 2.05e+125: tmp = t elif z <= 5.3e+190: tmp = t * ((y - z) / a) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -5.7e+50) tmp = t; elseif (z <= -1.35e-113) tmp = t_1; elseif (z <= -1.14e-218) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= -4.2e-234) tmp = t_1; elseif (z <= 1.3e-263) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.8e-24) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= 2.05e+125) tmp = t; elseif (z <= 5.3e+190) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -5.7e+50) tmp = t; elseif (z <= -1.35e-113) tmp = t_1; elseif (z <= -1.14e-218) tmp = y * ((t - x) / a); elseif (z <= -4.2e-234) tmp = t_1; elseif (z <= 1.3e-263) tmp = x + ((y * t) / a); elseif (z <= 1.8e-24) tmp = x - (x / (a / y)); elseif (z <= 2.05e+125) tmp = t; elseif (z <= 5.3e+190) tmp = t * ((y - z) / a); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.7e+50], t, If[LessEqual[z, -1.35e-113], t$95$1, If[LessEqual[z, -1.14e-218], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.2e-234], t$95$1, If[LessEqual[z, 1.3e-263], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-24], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+125], t, If[LessEqual[z, 5.3e+190], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -5.7 \cdot 10^{+50}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.14 \cdot 10^{-218}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-234}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-263}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-24}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{+190}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.7000000000000002e50 or 1.8e-24 < z < 2.04999999999999996e125 or 5.30000000000000015e190 < z Initial program 41.9%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 53.3%
if -5.7000000000000002e50 < z < -1.34999999999999998e-113 or -1.14000000000000001e-218 < z < -4.19999999999999982e-234Initial program 93.3%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in z around 0 69.4%
Taylor expanded in x around inf 62.9%
mul-1-neg62.9%
sub-neg62.9%
Simplified62.9%
if -1.34999999999999998e-113 < z < -1.14000000000000001e-218Initial program 84.8%
associate-*l/85.2%
Simplified85.2%
Taylor expanded in z around 0 62.1%
Taylor expanded in y around inf 62.6%
div-sub62.6%
Simplified62.6%
if -4.19999999999999982e-234 < z < 1.3e-263Initial program 91.9%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in z around 0 85.2%
Taylor expanded in t around inf 77.0%
if 1.3e-263 < z < 1.8e-24Initial program 92.2%
associate-*l/95.6%
Simplified95.6%
Taylor expanded in z around 0 68.8%
Taylor expanded in t around 0 53.7%
mul-1-neg53.7%
unsub-neg53.7%
associate-/l*55.4%
Simplified55.4%
if 2.04999999999999996e125 < z < 5.30000000000000015e190Initial program 55.0%
clear-num55.1%
associate-/r/55.0%
Applied egg-rr55.0%
Taylor expanded in t around inf 60.6%
div-sub60.6%
Simplified60.6%
Taylor expanded in a around inf 52.4%
Final simplification58.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))) (t_2 (* x (/ (- y) (- a z)))))
(if (<= a -1.35e+153)
t_1
(if (<= a -2.1e+123)
(/ t (- 1.0 (/ a z)))
(if (<= a -6.2e-80)
t_1
(if (<= a -1.6e-189)
t_2
(if (<= a 9.5e-219)
(* t (- 1.0 (/ y z)))
(if (<= a 9e-158)
t_2
(if (<= a 32000.0) (* t (+ (/ (- a y) z) 1.0)) t_1)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double t_2 = x * (-y / (a - z));
double tmp;
if (a <= -1.35e+153) {
tmp = t_1;
} else if (a <= -2.1e+123) {
tmp = t / (1.0 - (a / z));
} else if (a <= -6.2e-80) {
tmp = t_1;
} else if (a <= -1.6e-189) {
tmp = t_2;
} else if (a <= 9.5e-219) {
tmp = t * (1.0 - (y / z));
} else if (a <= 9e-158) {
tmp = t_2;
} else if (a <= 32000.0) {
tmp = t * (((a - y) / z) + 1.0);
} 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) :: t_2
real(8) :: tmp
t_1 = x + (t / (a / y))
t_2 = x * (-y / (a - z))
if (a <= (-1.35d+153)) then
tmp = t_1
else if (a <= (-2.1d+123)) then
tmp = t / (1.0d0 - (a / z))
else if (a <= (-6.2d-80)) then
tmp = t_1
else if (a <= (-1.6d-189)) then
tmp = t_2
else if (a <= 9.5d-219) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 9d-158) then
tmp = t_2
else if (a <= 32000.0d0) then
tmp = t * (((a - y) / z) + 1.0d0)
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 / (a / y));
double t_2 = x * (-y / (a - z));
double tmp;
if (a <= -1.35e+153) {
tmp = t_1;
} else if (a <= -2.1e+123) {
tmp = t / (1.0 - (a / z));
} else if (a <= -6.2e-80) {
tmp = t_1;
} else if (a <= -1.6e-189) {
tmp = t_2;
} else if (a <= 9.5e-219) {
tmp = t * (1.0 - (y / z));
} else if (a <= 9e-158) {
tmp = t_2;
} else if (a <= 32000.0) {
tmp = t * (((a - y) / z) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) t_2 = x * (-y / (a - z)) tmp = 0 if a <= -1.35e+153: tmp = t_1 elif a <= -2.1e+123: tmp = t / (1.0 - (a / z)) elif a <= -6.2e-80: tmp = t_1 elif a <= -1.6e-189: tmp = t_2 elif a <= 9.5e-219: tmp = t * (1.0 - (y / z)) elif a <= 9e-158: tmp = t_2 elif a <= 32000.0: tmp = t * (((a - y) / z) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) t_2 = Float64(x * Float64(Float64(-y) / Float64(a - z))) tmp = 0.0 if (a <= -1.35e+153) tmp = t_1; elseif (a <= -2.1e+123) tmp = Float64(t / Float64(1.0 - Float64(a / z))); elseif (a <= -6.2e-80) tmp = t_1; elseif (a <= -1.6e-189) tmp = t_2; elseif (a <= 9.5e-219) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 9e-158) tmp = t_2; elseif (a <= 32000.0) tmp = Float64(t * Float64(Float64(Float64(a - y) / z) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); t_2 = x * (-y / (a - z)); tmp = 0.0; if (a <= -1.35e+153) tmp = t_1; elseif (a <= -2.1e+123) tmp = t / (1.0 - (a / z)); elseif (a <= -6.2e-80) tmp = t_1; elseif (a <= -1.6e-189) tmp = t_2; elseif (a <= 9.5e-219) tmp = t * (1.0 - (y / z)); elseif (a <= 9e-158) tmp = t_2; elseif (a <= 32000.0) tmp = t * (((a - y) / z) + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[((-y) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35e+153], t$95$1, If[LessEqual[a, -2.1e+123], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-80], t$95$1, If[LessEqual[a, -1.6e-189], t$95$2, If[LessEqual[a, 9.5e-219], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e-158], t$95$2, If[LessEqual[a, 32000.0], N[(t * N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
t_2 := x \cdot \frac{-y}{a - z}\\
\mathbf{if}\;a \leq -1.35 \cdot 10^{+153}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{+123}:\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-219}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-158}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 32000:\\
\;\;\;\;t \cdot \left(\frac{a - y}{z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.35e153 or -2.09999999999999994e123 < a < -6.20000000000000032e-80 or 32000 < a Initial program 72.1%
associate-*l/88.8%
Simplified88.8%
Taylor expanded in z around 0 59.1%
Taylor expanded in t around inf 51.3%
associate-/l*55.8%
Simplified55.8%
if -1.35e153 < a < -2.09999999999999994e123Initial program 59.3%
associate-*l/99.3%
Simplified99.3%
Taylor expanded in x around 0 31.8%
associate-/l*72.3%
Simplified72.3%
Taylor expanded in y around 0 72.3%
mul-1-neg72.3%
div-sub72.3%
sub-neg72.3%
*-inverses72.3%
metadata-eval72.3%
Simplified72.3%
if -6.20000000000000032e-80 < a < -1.6e-189 or 9.4999999999999997e-219 < a < 9e-158Initial program 69.4%
associate-*l/73.4%
Simplified73.4%
Taylor expanded in x around inf 53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in y around inf 60.7%
associate-*r/60.7%
mul-1-neg60.7%
Simplified60.7%
if -1.6e-189 < a < 9.4999999999999997e-219Initial program 69.3%
clear-num69.3%
associate-/r/69.2%
Applied egg-rr69.2%
Taylor expanded in t around inf 76.4%
div-sub76.4%
Simplified76.4%
Taylor expanded in a around 0 72.7%
mul-1-neg72.7%
div-sub72.7%
sub-neg72.7%
*-inverses72.7%
metadata-eval72.7%
Simplified72.7%
if 9e-158 < a < 32000Initial program 64.4%
clear-num64.3%
associate-/r/64.4%
Applied egg-rr64.4%
Taylor expanded in t around inf 70.4%
div-sub70.4%
Simplified70.4%
Taylor expanded in z around inf 74.0%
associate--l+74.0%
associate-*r/74.0%
associate-*r/74.0%
div-sub74.0%
distribute-lft-out--74.0%
associate-*r/74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Final simplification62.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- a z)))))
(if (<= y -7e+130)
(* x (/ (- y) a))
(if (<= y -4.4e+96)
(+ x t)
(if (<= y -9.5e+57)
(/ (- x) (/ a y))
(if (<= y -2.85e+17)
t_1
(if (<= y 2.6e-138)
(+ x t)
(if (<= y 9.5e-67) t (if (<= y 4.45e+77) x t_1)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (y <= -7e+130) {
tmp = x * (-y / a);
} else if (y <= -4.4e+96) {
tmp = x + t;
} else if (y <= -9.5e+57) {
tmp = -x / (a / y);
} else if (y <= -2.85e+17) {
tmp = t_1;
} else if (y <= 2.6e-138) {
tmp = x + t;
} else if (y <= 9.5e-67) {
tmp = t;
} else if (y <= 4.45e+77) {
tmp = 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 / (a - z))
if (y <= (-7d+130)) then
tmp = x * (-y / a)
else if (y <= (-4.4d+96)) then
tmp = x + t
else if (y <= (-9.5d+57)) then
tmp = -x / (a / y)
else if (y <= (-2.85d+17)) then
tmp = t_1
else if (y <= 2.6d-138) then
tmp = x + t
else if (y <= 9.5d-67) then
tmp = t
else if (y <= 4.45d+77) then
tmp = 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 / (a - z));
double tmp;
if (y <= -7e+130) {
tmp = x * (-y / a);
} else if (y <= -4.4e+96) {
tmp = x + t;
} else if (y <= -9.5e+57) {
tmp = -x / (a / y);
} else if (y <= -2.85e+17) {
tmp = t_1;
} else if (y <= 2.6e-138) {
tmp = x + t;
} else if (y <= 9.5e-67) {
tmp = t;
} else if (y <= 4.45e+77) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if y <= -7e+130: tmp = x * (-y / a) elif y <= -4.4e+96: tmp = x + t elif y <= -9.5e+57: tmp = -x / (a / y) elif y <= -2.85e+17: tmp = t_1 elif y <= 2.6e-138: tmp = x + t elif y <= 9.5e-67: tmp = t elif y <= 4.45e+77: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -7e+130) tmp = Float64(x * Float64(Float64(-y) / a)); elseif (y <= -4.4e+96) tmp = Float64(x + t); elseif (y <= -9.5e+57) tmp = Float64(Float64(-x) / Float64(a / y)); elseif (y <= -2.85e+17) tmp = t_1; elseif (y <= 2.6e-138) tmp = Float64(x + t); elseif (y <= 9.5e-67) tmp = t; elseif (y <= 4.45e+77) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (y <= -7e+130) tmp = x * (-y / a); elseif (y <= -4.4e+96) tmp = x + t; elseif (y <= -9.5e+57) tmp = -x / (a / y); elseif (y <= -2.85e+17) tmp = t_1; elseif (y <= 2.6e-138) tmp = x + t; elseif (y <= 9.5e-67) tmp = t; elseif (y <= 4.45e+77) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+130], N[(x * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.4e+96], N[(x + t), $MachinePrecision], If[LessEqual[y, -9.5e+57], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.85e+17], t$95$1, If[LessEqual[y, 2.6e-138], N[(x + t), $MachinePrecision], If[LessEqual[y, 9.5e-67], t, If[LessEqual[y, 4.45e+77], x, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -7 \cdot 10^{+130}:\\
\;\;\;\;x \cdot \frac{-y}{a}\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{+96}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{+57}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq -2.85 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-138}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-67}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 4.45 \cdot 10^{+77}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -7.0000000000000002e130Initial program 71.9%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in x around inf 59.5%
mul-1-neg59.5%
unsub-neg59.5%
Simplified59.5%
Taylor expanded in y around inf 54.4%
associate-*r/54.4%
mul-1-neg54.4%
Simplified54.4%
Taylor expanded in a around inf 42.1%
associate-*r/42.1%
mul-1-neg42.1%
Simplified42.1%
if -7.0000000000000002e130 < y < -4.3999999999999998e96 or -2.85e17 < y < 2.6e-138Initial program 67.4%
associate-/l*80.4%
Simplified80.4%
Taylor expanded in t around inf 71.6%
Taylor expanded in z around inf 49.9%
if -4.3999999999999998e96 < y < -9.4999999999999997e57Initial program 87.8%
associate-*l/99.4%
Simplified99.4%
Taylor expanded in z around 0 74.8%
Taylor expanded in y around inf 62.8%
div-sub62.8%
Simplified62.8%
Taylor expanded in t around 0 51.2%
mul-1-neg51.2%
associate-/l*51.4%
distribute-neg-frac51.4%
Simplified51.4%
if -9.4999999999999997e57 < y < -2.85e17 or 4.4499999999999999e77 < y Initial program 73.7%
clear-num73.6%
associate-/r/73.6%
Applied egg-rr73.6%
Taylor expanded in t around inf 59.8%
div-sub59.8%
Simplified59.8%
Taylor expanded in y around inf 50.5%
if 2.6e-138 < y < 9.4999999999999994e-67Initial program 37.4%
associate-*l/51.6%
Simplified51.6%
Taylor expanded in z around inf 78.6%
if 9.4999999999999994e-67 < y < 4.4499999999999999e77Initial program 74.2%
associate-*l/86.0%
Simplified86.0%
Taylor expanded in a around inf 30.9%
Final simplification47.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- a z)))))
(if (<= y -2e+130)
(* x (/ (- y) a))
(if (<= y -3.2e+95)
(+ x t)
(if (<= y -1.95e+59)
(/ (- x) (/ a y))
(if (<= y -7e+17)
t_1
(if (<= y 7e-141)
(+ x t)
(if (<= y 1.75e-68)
t
(if (<= y 8.5e+77) (* t (/ (- y z) a)) t_1)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (y <= -2e+130) {
tmp = x * (-y / a);
} else if (y <= -3.2e+95) {
tmp = x + t;
} else if (y <= -1.95e+59) {
tmp = -x / (a / y);
} else if (y <= -7e+17) {
tmp = t_1;
} else if (y <= 7e-141) {
tmp = x + t;
} else if (y <= 1.75e-68) {
tmp = t;
} else if (y <= 8.5e+77) {
tmp = t * ((y - z) / a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / (a - z))
if (y <= (-2d+130)) then
tmp = x * (-y / a)
else if (y <= (-3.2d+95)) then
tmp = x + t
else if (y <= (-1.95d+59)) then
tmp = -x / (a / y)
else if (y <= (-7d+17)) then
tmp = t_1
else if (y <= 7d-141) then
tmp = x + t
else if (y <= 1.75d-68) then
tmp = t
else if (y <= 8.5d+77) then
tmp = t * ((y - z) / a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (y <= -2e+130) {
tmp = x * (-y / a);
} else if (y <= -3.2e+95) {
tmp = x + t;
} else if (y <= -1.95e+59) {
tmp = -x / (a / y);
} else if (y <= -7e+17) {
tmp = t_1;
} else if (y <= 7e-141) {
tmp = x + t;
} else if (y <= 1.75e-68) {
tmp = t;
} else if (y <= 8.5e+77) {
tmp = t * ((y - z) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if y <= -2e+130: tmp = x * (-y / a) elif y <= -3.2e+95: tmp = x + t elif y <= -1.95e+59: tmp = -x / (a / y) elif y <= -7e+17: tmp = t_1 elif y <= 7e-141: tmp = x + t elif y <= 1.75e-68: tmp = t elif y <= 8.5e+77: tmp = t * ((y - z) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -2e+130) tmp = Float64(x * Float64(Float64(-y) / a)); elseif (y <= -3.2e+95) tmp = Float64(x + t); elseif (y <= -1.95e+59) tmp = Float64(Float64(-x) / Float64(a / y)); elseif (y <= -7e+17) tmp = t_1; elseif (y <= 7e-141) tmp = Float64(x + t); elseif (y <= 1.75e-68) tmp = t; elseif (y <= 8.5e+77) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (y <= -2e+130) tmp = x * (-y / a); elseif (y <= -3.2e+95) tmp = x + t; elseif (y <= -1.95e+59) tmp = -x / (a / y); elseif (y <= -7e+17) tmp = t_1; elseif (y <= 7e-141) tmp = x + t; elseif (y <= 1.75e-68) tmp = t; elseif (y <= 8.5e+77) tmp = t * ((y - z) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+130], N[(x * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.2e+95], N[(x + t), $MachinePrecision], If[LessEqual[y, -1.95e+59], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e+17], t$95$1, If[LessEqual[y, 7e-141], N[(x + t), $MachinePrecision], If[LessEqual[y, 1.75e-68], t, If[LessEqual[y, 8.5e+77], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -2 \cdot 10^{+130}:\\
\;\;\;\;x \cdot \frac{-y}{a}\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{+95}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{+59}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq -7 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-141}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-68}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+77}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.0000000000000001e130Initial program 71.9%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in x around inf 59.5%
mul-1-neg59.5%
unsub-neg59.5%
Simplified59.5%
Taylor expanded in y around inf 54.4%
associate-*r/54.4%
mul-1-neg54.4%
Simplified54.4%
Taylor expanded in a around inf 42.1%
associate-*r/42.1%
mul-1-neg42.1%
Simplified42.1%
if -2.0000000000000001e130 < y < -3.2000000000000001e95 or -7e17 < y < 7.0000000000000006e-141Initial program 67.4%
associate-/l*80.4%
Simplified80.4%
Taylor expanded in t around inf 71.6%
Taylor expanded in z around inf 49.9%
if -3.2000000000000001e95 < y < -1.95000000000000011e59Initial program 87.8%
associate-*l/99.4%
Simplified99.4%
Taylor expanded in z around 0 74.8%
Taylor expanded in y around inf 62.8%
div-sub62.8%
Simplified62.8%
Taylor expanded in t around 0 51.2%
mul-1-neg51.2%
associate-/l*51.4%
distribute-neg-frac51.4%
Simplified51.4%
if -1.95000000000000011e59 < y < -7e17 or 8.50000000000000018e77 < y Initial program 73.7%
clear-num73.6%
associate-/r/73.6%
Applied egg-rr73.6%
Taylor expanded in t around inf 59.8%
div-sub59.8%
Simplified59.8%
Taylor expanded in y around inf 50.5%
if 7.0000000000000006e-141 < y < 1.75000000000000006e-68Initial program 37.4%
associate-*l/51.6%
Simplified51.6%
Taylor expanded in z around inf 78.6%
if 1.75000000000000006e-68 < y < 8.50000000000000018e77Initial program 74.2%
clear-num74.2%
associate-/r/74.3%
Applied egg-rr74.3%
Taylor expanded in t around inf 47.4%
div-sub47.4%
Simplified47.4%
Taylor expanded in a around inf 32.3%
Final simplification47.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z))))
(t_2 (+ x (/ t (/ a y))))
(t_3 (* x (/ (- y) (- a z)))))
(if (<= a -3.6e+153)
t_2
(if (<= a -2.1e+123)
(/ t (- 1.0 (/ a z)))
(if (<= a -2.4e-76)
t_2
(if (<= a -1.7e-188)
t_3
(if (<= a 9.5e-219)
t_1
(if (<= a 1e-157) t_3 (if (<= a 36000.0) 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 / (a / y));
double t_3 = x * (-y / (a - z));
double tmp;
if (a <= -3.6e+153) {
tmp = t_2;
} else if (a <= -2.1e+123) {
tmp = t / (1.0 - (a / z));
} else if (a <= -2.4e-76) {
tmp = t_2;
} else if (a <= -1.7e-188) {
tmp = t_3;
} else if (a <= 9.5e-219) {
tmp = t_1;
} else if (a <= 1e-157) {
tmp = t_3;
} else if (a <= 36000.0) {
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) :: t_3
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
t_2 = x + (t / (a / y))
t_3 = x * (-y / (a - z))
if (a <= (-3.6d+153)) then
tmp = t_2
else if (a <= (-2.1d+123)) then
tmp = t / (1.0d0 - (a / z))
else if (a <= (-2.4d-76)) then
tmp = t_2
else if (a <= (-1.7d-188)) then
tmp = t_3
else if (a <= 9.5d-219) then
tmp = t_1
else if (a <= 1d-157) then
tmp = t_3
else if (a <= 36000.0d0) 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 / (a / y));
double t_3 = x * (-y / (a - z));
double tmp;
if (a <= -3.6e+153) {
tmp = t_2;
} else if (a <= -2.1e+123) {
tmp = t / (1.0 - (a / z));
} else if (a <= -2.4e-76) {
tmp = t_2;
} else if (a <= -1.7e-188) {
tmp = t_3;
} else if (a <= 9.5e-219) {
tmp = t_1;
} else if (a <= 1e-157) {
tmp = t_3;
} else if (a <= 36000.0) {
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 / (a / y)) t_3 = x * (-y / (a - z)) tmp = 0 if a <= -3.6e+153: tmp = t_2 elif a <= -2.1e+123: tmp = t / (1.0 - (a / z)) elif a <= -2.4e-76: tmp = t_2 elif a <= -1.7e-188: tmp = t_3 elif a <= 9.5e-219: tmp = t_1 elif a <= 1e-157: tmp = t_3 elif a <= 36000.0: 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(a / y))) t_3 = Float64(x * Float64(Float64(-y) / Float64(a - z))) tmp = 0.0 if (a <= -3.6e+153) tmp = t_2; elseif (a <= -2.1e+123) tmp = Float64(t / Float64(1.0 - Float64(a / z))); elseif (a <= -2.4e-76) tmp = t_2; elseif (a <= -1.7e-188) tmp = t_3; elseif (a <= 9.5e-219) tmp = t_1; elseif (a <= 1e-157) tmp = t_3; elseif (a <= 36000.0) 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 / (a / y)); t_3 = x * (-y / (a - z)); tmp = 0.0; if (a <= -3.6e+153) tmp = t_2; elseif (a <= -2.1e+123) tmp = t / (1.0 - (a / z)); elseif (a <= -2.4e-76) tmp = t_2; elseif (a <= -1.7e-188) tmp = t_3; elseif (a <= 9.5e-219) tmp = t_1; elseif (a <= 1e-157) tmp = t_3; elseif (a <= 36000.0) 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[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[((-y) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.6e+153], t$95$2, If[LessEqual[a, -2.1e+123], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.4e-76], t$95$2, If[LessEqual[a, -1.7e-188], t$95$3, If[LessEqual[a, 9.5e-219], t$95$1, If[LessEqual[a, 1e-157], t$95$3, If[LessEqual[a, 36000.0], 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 + \frac{t}{\frac{a}{y}}\\
t_3 := x \cdot \frac{-y}{a - z}\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{+153}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{+123}:\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-188}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{-157}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 36000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.6000000000000001e153 or -2.09999999999999994e123 < a < -2.40000000000000013e-76 or 36000 < a Initial program 72.1%
associate-*l/88.8%
Simplified88.8%
Taylor expanded in z around 0 59.1%
Taylor expanded in t around inf 51.3%
associate-/l*55.8%
Simplified55.8%
if -3.6000000000000001e153 < a < -2.09999999999999994e123Initial program 59.3%
associate-*l/99.3%
Simplified99.3%
Taylor expanded in x around 0 31.8%
associate-/l*72.3%
Simplified72.3%
Taylor expanded in y around 0 72.3%
mul-1-neg72.3%
div-sub72.3%
sub-neg72.3%
*-inverses72.3%
metadata-eval72.3%
Simplified72.3%
if -2.40000000000000013e-76 < a < -1.70000000000000014e-188 or 9.4999999999999997e-219 < a < 9.99999999999999943e-158Initial program 69.4%
associate-*l/73.4%
Simplified73.4%
Taylor expanded in x around inf 53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in y around inf 60.7%
associate-*r/60.7%
mul-1-neg60.7%
Simplified60.7%
if -1.70000000000000014e-188 < a < 9.4999999999999997e-219 or 9.99999999999999943e-158 < a < 36000Initial program 67.3%
clear-num67.4%
associate-/r/67.3%
Applied egg-rr67.3%
Taylor expanded in t around inf 74.1%
div-sub74.0%
Simplified74.0%
Taylor expanded in a around 0 73.2%
mul-1-neg73.2%
div-sub73.2%
sub-neg73.2%
*-inverses73.2%
metadata-eval73.2%
Simplified73.2%
Final simplification62.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -6.5e+50)
t
(if (<= z -1.4e-116)
t_1
(if (<= z -2.85e-272)
(* y (/ (- t x) a))
(if (<= z 4.2e-25)
t_1
(if (<= z 2.05e+125)
t
(if (<= z 5.3e+190) (* t (/ (- y z) a)) t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -6.5e+50) {
tmp = t;
} else if (z <= -1.4e-116) {
tmp = t_1;
} else if (z <= -2.85e-272) {
tmp = y * ((t - x) / a);
} else if (z <= 4.2e-25) {
tmp = t_1;
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-6.5d+50)) then
tmp = t
else if (z <= (-1.4d-116)) then
tmp = t_1
else if (z <= (-2.85d-272)) then
tmp = y * ((t - x) / a)
else if (z <= 4.2d-25) then
tmp = t_1
else if (z <= 2.05d+125) then
tmp = t
else if (z <= 5.3d+190) then
tmp = t * ((y - z) / 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 t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -6.5e+50) {
tmp = t;
} else if (z <= -1.4e-116) {
tmp = t_1;
} else if (z <= -2.85e-272) {
tmp = y * ((t - x) / a);
} else if (z <= 4.2e-25) {
tmp = t_1;
} else if (z <= 2.05e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / a);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -6.5e+50: tmp = t elif z <= -1.4e-116: tmp = t_1 elif z <= -2.85e-272: tmp = y * ((t - x) / a) elif z <= 4.2e-25: tmp = t_1 elif z <= 2.05e+125: tmp = t elif z <= 5.3e+190: tmp = t * ((y - z) / a) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -6.5e+50) tmp = t; elseif (z <= -1.4e-116) tmp = t_1; elseif (z <= -2.85e-272) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 4.2e-25) tmp = t_1; elseif (z <= 2.05e+125) tmp = t; elseif (z <= 5.3e+190) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -6.5e+50) tmp = t; elseif (z <= -1.4e-116) tmp = t_1; elseif (z <= -2.85e-272) tmp = y * ((t - x) / a); elseif (z <= 4.2e-25) tmp = t_1; elseif (z <= 2.05e+125) tmp = t; elseif (z <= 5.3e+190) tmp = t * ((y - z) / a); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+50], t, If[LessEqual[z, -1.4e-116], t$95$1, If[LessEqual[z, -2.85e-272], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-25], t$95$1, If[LessEqual[z, 2.05e+125], t, If[LessEqual[z, 5.3e+190], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+50}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.85 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{+190}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.5000000000000003e50 or 4.20000000000000005e-25 < z < 2.04999999999999996e125 or 5.30000000000000015e190 < z Initial program 41.9%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 53.3%
if -6.5000000000000003e50 < z < -1.3999999999999999e-116 or -2.8499999999999999e-272 < z < 4.20000000000000005e-25Initial program 92.6%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 70.0%
Taylor expanded in x around inf 57.1%
mul-1-neg57.1%
sub-neg57.1%
Simplified57.1%
if -1.3999999999999999e-116 < z < -2.8499999999999999e-272Initial program 87.8%
associate-*l/91.1%
Simplified91.1%
Taylor expanded in z around 0 74.2%
Taylor expanded in y around inf 67.8%
div-sub67.8%
Simplified67.8%
if 2.04999999999999996e125 < z < 5.30000000000000015e190Initial program 55.0%
clear-num55.1%
associate-/r/55.0%
Applied egg-rr55.0%
Taylor expanded in t around inf 60.6%
div-sub60.6%
Simplified60.6%
Taylor expanded in a around inf 52.4%
Final simplification56.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (- z y) (/ (- a z) t)))))
(if (<= t -1.35e-123)
t_1
(if (<= t -1.05e-230)
(* y (/ (- t x) (- a z)))
(if (<= t 4.8e-138)
(* x (+ (/ (- z y) (- a z)) 1.0))
(if (<= t 4.3e-41)
(+ x (* (- t x) (/ (- y z) a)))
(if (<= t 1.9e-28) (* x (/ (- y) (- a z))) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((z - y) / ((a - z) / t));
double tmp;
if (t <= -1.35e-123) {
tmp = t_1;
} else if (t <= -1.05e-230) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 4.8e-138) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} else if (t <= 4.3e-41) {
tmp = x + ((t - x) * ((y - z) / a));
} else if (t <= 1.9e-28) {
tmp = x * (-y / (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 - z) / t))
if (t <= (-1.35d-123)) then
tmp = t_1
else if (t <= (-1.05d-230)) then
tmp = y * ((t - x) / (a - z))
else if (t <= 4.8d-138) then
tmp = x * (((z - y) / (a - z)) + 1.0d0)
else if (t <= 4.3d-41) then
tmp = x + ((t - x) * ((y - z) / a))
else if (t <= 1.9d-28) then
tmp = x * (-y / (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 - z) / t));
double tmp;
if (t <= -1.35e-123) {
tmp = t_1;
} else if (t <= -1.05e-230) {
tmp = y * ((t - x) / (a - z));
} else if (t <= 4.8e-138) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} else if (t <= 4.3e-41) {
tmp = x + ((t - x) * ((y - z) / a));
} else if (t <= 1.9e-28) {
tmp = x * (-y / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((z - y) / ((a - z) / t)) tmp = 0 if t <= -1.35e-123: tmp = t_1 elif t <= -1.05e-230: tmp = y * ((t - x) / (a - z)) elif t <= 4.8e-138: tmp = x * (((z - y) / (a - z)) + 1.0) elif t <= 4.3e-41: tmp = x + ((t - x) * ((y - z) / a)) elif t <= 1.9e-28: tmp = x * (-y / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(z - y) / Float64(Float64(a - z) / t))) tmp = 0.0 if (t <= -1.35e-123) tmp = t_1; elseif (t <= -1.05e-230) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (t <= 4.8e-138) tmp = Float64(x * Float64(Float64(Float64(z - y) / Float64(a - z)) + 1.0)); elseif (t <= 4.3e-41) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); elseif (t <= 1.9e-28) tmp = Float64(x * Float64(Float64(-y) / 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 - z) / t)); tmp = 0.0; if (t <= -1.35e-123) tmp = t_1; elseif (t <= -1.05e-230) tmp = y * ((t - x) / (a - z)); elseif (t <= 4.8e-138) tmp = x * (((z - y) / (a - z)) + 1.0); elseif (t <= 4.3e-41) tmp = x + ((t - x) * ((y - z) / a)); elseif (t <= 1.9e-28) tmp = x * (-y / (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[(z - y), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e-123], t$95$1, If[LessEqual[t, -1.05e-230], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-138], N[(x * N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e-41], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-28], N[(x * N[((-y) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{z - y}{\frac{a - z}{t}}\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{-123}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-230}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-138}:\\
\;\;\;\;x \cdot \left(\frac{z - y}{a - z} + 1\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-41}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-28}:\\
\;\;\;\;x \cdot \frac{-y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.35e-123 or 1.90000000000000005e-28 < t Initial program 64.6%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in t around inf 79.4%
if -1.35e-123 < t < -1.0499999999999999e-230Initial program 57.4%
associate-*l/61.3%
Simplified61.3%
Taylor expanded in y around inf 68.4%
div-sub68.4%
Simplified68.4%
if -1.0499999999999999e-230 < t < 4.7999999999999998e-138Initial program 83.3%
associate-*l/83.4%
Simplified83.4%
Taylor expanded in x around inf 81.2%
mul-1-neg81.2%
unsub-neg81.2%
Simplified81.2%
if 4.7999999999999998e-138 < t < 4.2999999999999999e-41Initial program 91.0%
associate-*l/86.5%
Simplified86.5%
Taylor expanded in a around inf 73.2%
if 4.2999999999999999e-41 < t < 1.90000000000000005e-28Initial program 83.1%
associate-*l/82.9%
Simplified82.9%
Taylor expanded in x around inf 66.8%
mul-1-neg66.8%
unsub-neg66.8%
Simplified66.8%
Taylor expanded in y around inf 83.5%
associate-*r/83.5%
mul-1-neg83.5%
Simplified83.5%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))) (t_2 (* t (- 1.0 (/ y z)))))
(if (<= a -1.65e-36)
t_1
(if (<= a -4.4e-188)
(/ x (/ z (- y a)))
(if (<= a 7.6e-219)
t_2
(if (<= a 1.2e-171) (/ (* x (- y a)) z) (if (<= a 1.0) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.65e-36) {
tmp = t_1;
} else if (a <= -4.4e-188) {
tmp = x / (z / (y - a));
} else if (a <= 7.6e-219) {
tmp = t_2;
} else if (a <= 1.2e-171) {
tmp = (x * (y - a)) / z;
} else if (a <= 1.0) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x + (t / (a / y))
t_2 = t * (1.0d0 - (y / z))
if (a <= (-1.65d-36)) then
tmp = t_1
else if (a <= (-4.4d-188)) then
tmp = x / (z / (y - a))
else if (a <= 7.6d-219) then
tmp = t_2
else if (a <= 1.2d-171) then
tmp = (x * (y - a)) / z
else if (a <= 1.0d0) then
tmp = t_2
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 / (a / y));
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.65e-36) {
tmp = t_1;
} else if (a <= -4.4e-188) {
tmp = x / (z / (y - a));
} else if (a <= 7.6e-219) {
tmp = t_2;
} else if (a <= 1.2e-171) {
tmp = (x * (y - a)) / z;
} else if (a <= 1.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) t_2 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.65e-36: tmp = t_1 elif a <= -4.4e-188: tmp = x / (z / (y - a)) elif a <= 7.6e-219: tmp = t_2 elif a <= 1.2e-171: tmp = (x * (y - a)) / z elif a <= 1.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) t_2 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.65e-36) tmp = t_1; elseif (a <= -4.4e-188) tmp = Float64(x / Float64(z / Float64(y - a))); elseif (a <= 7.6e-219) tmp = t_2; elseif (a <= 1.2e-171) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif (a <= 1.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); t_2 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.65e-36) tmp = t_1; elseif (a <= -4.4e-188) tmp = x / (z / (y - a)); elseif (a <= 7.6e-219) tmp = t_2; elseif (a <= 1.2e-171) tmp = (x * (y - a)) / z; elseif (a <= 1.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.65e-36], t$95$1, If[LessEqual[a, -4.4e-188], N[(x / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e-219], t$95$2, If[LessEqual[a, 1.2e-171], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 1.0], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
t_2 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.65 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-188}:\\
\;\;\;\;\frac{x}{\frac{z}{y - a}}\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{-219}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-171}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;a \leq 1:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.64999999999999995e-36 or 1 < a Initial program 72.8%
associate-*l/91.7%
Simplified91.7%
Taylor expanded in z around 0 58.6%
Taylor expanded in t around inf 50.3%
associate-/l*55.0%
Simplified55.0%
if -1.64999999999999995e-36 < a < -4.3999999999999999e-188Initial program 66.8%
associate-*l/76.3%
Simplified76.3%
Taylor expanded in x around -inf 56.9%
associate-*r*56.9%
neg-mul-156.9%
Simplified56.9%
Taylor expanded in z around -inf 38.9%
associate-/l*47.8%
Simplified47.8%
if -4.3999999999999999e-188 < a < 7.60000000000000049e-219 or 1.19999999999999993e-171 < a < 1Initial program 67.3%
clear-num67.4%
associate-/r/67.3%
Applied egg-rr67.3%
Taylor expanded in t around inf 69.9%
div-sub69.9%
Simplified69.9%
Taylor expanded in a around 0 69.2%
mul-1-neg69.2%
div-sub69.2%
sub-neg69.2%
*-inverses69.2%
metadata-eval69.2%
Simplified69.2%
if 7.60000000000000049e-219 < a < 1.19999999999999993e-171Initial program 67.6%
associate-*l/57.7%
Simplified57.7%
Taylor expanded in x around -inf 57.3%
associate-*r*57.3%
neg-mul-157.3%
Simplified57.3%
Taylor expanded in z around -inf 68.1%
Final simplification59.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- y) (- a z))))
(t_2 (+ x (/ t (/ a y))))
(t_3 (* t (- 1.0 (/ y z)))))
(if (<= a -2.9e-78)
t_2
(if (<= a -6e-189)
t_1
(if (<= a 9.5e-219)
t_3
(if (<= a 2.05e-151) t_1 (if (<= a 50.0) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (-y / (a - z));
double t_2 = x + (t / (a / y));
double t_3 = t * (1.0 - (y / z));
double tmp;
if (a <= -2.9e-78) {
tmp = t_2;
} else if (a <= -6e-189) {
tmp = t_1;
} else if (a <= 9.5e-219) {
tmp = t_3;
} else if (a <= 2.05e-151) {
tmp = t_1;
} else if (a <= 50.0) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = x * (-y / (a - z))
t_2 = x + (t / (a / y))
t_3 = t * (1.0d0 - (y / z))
if (a <= (-2.9d-78)) then
tmp = t_2
else if (a <= (-6d-189)) then
tmp = t_1
else if (a <= 9.5d-219) then
tmp = t_3
else if (a <= 2.05d-151) then
tmp = t_1
else if (a <= 50.0d0) then
tmp = t_3
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 * (-y / (a - z));
double t_2 = x + (t / (a / y));
double t_3 = t * (1.0 - (y / z));
double tmp;
if (a <= -2.9e-78) {
tmp = t_2;
} else if (a <= -6e-189) {
tmp = t_1;
} else if (a <= 9.5e-219) {
tmp = t_3;
} else if (a <= 2.05e-151) {
tmp = t_1;
} else if (a <= 50.0) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (-y / (a - z)) t_2 = x + (t / (a / y)) t_3 = t * (1.0 - (y / z)) tmp = 0 if a <= -2.9e-78: tmp = t_2 elif a <= -6e-189: tmp = t_1 elif a <= 9.5e-219: tmp = t_3 elif a <= 2.05e-151: tmp = t_1 elif a <= 50.0: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(-y) / Float64(a - z))) t_2 = Float64(x + Float64(t / Float64(a / y))) t_3 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -2.9e-78) tmp = t_2; elseif (a <= -6e-189) tmp = t_1; elseif (a <= 9.5e-219) tmp = t_3; elseif (a <= 2.05e-151) tmp = t_1; elseif (a <= 50.0) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (-y / (a - z)); t_2 = x + (t / (a / y)); t_3 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -2.9e-78) tmp = t_2; elseif (a <= -6e-189) tmp = t_1; elseif (a <= 9.5e-219) tmp = t_3; elseif (a <= 2.05e-151) tmp = t_1; elseif (a <= 50.0) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[((-y) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e-78], t$95$2, If[LessEqual[a, -6e-189], t$95$1, If[LessEqual[a, 9.5e-219], t$95$3, If[LessEqual[a, 2.05e-151], t$95$1, If[LessEqual[a, 50.0], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{-y}{a - z}\\
t_2 := x + \frac{t}{\frac{a}{y}}\\
t_3 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-219}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 50:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.9000000000000001e-78 or 50 < a Initial program 71.4%
associate-*l/89.4%
Simplified89.4%
Taylor expanded in z around 0 57.6%
Taylor expanded in t around inf 48.7%
associate-/l*53.0%
Simplified53.0%
if -2.9000000000000001e-78 < a < -6e-189 or 9.4999999999999997e-219 < a < 2.0500000000000001e-151Initial program 69.4%
associate-*l/73.4%
Simplified73.4%
Taylor expanded in x around inf 53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in y around inf 60.7%
associate-*r/60.7%
mul-1-neg60.7%
Simplified60.7%
if -6e-189 < a < 9.4999999999999997e-219 or 2.0500000000000001e-151 < a < 50Initial program 67.3%
clear-num67.4%
associate-/r/67.3%
Applied egg-rr67.3%
Taylor expanded in t around inf 74.1%
div-sub74.0%
Simplified74.0%
Taylor expanded in a around 0 73.2%
mul-1-neg73.2%
div-sub73.2%
sub-neg73.2%
*-inverses73.2%
metadata-eval73.2%
Simplified73.2%
Final simplification60.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -6.8e+50)
t_1
(if (<= z 2.3e-26)
(- x (* (/ y a) (- x t)))
(if (or (<= z 4e+62) (not (<= z 1.95e+83)))
t_1
(* x (+ (/ (- z y) (- a z)) 1.0)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -6.8e+50) {
tmp = t_1;
} else if (z <= 2.3e-26) {
tmp = x - ((y / a) * (x - t));
} else if ((z <= 4e+62) || !(z <= 1.95e+83)) {
tmp = t_1;
} else {
tmp = x * (((z - y) / (a - z)) + 1.0);
}
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 (z <= (-6.8d+50)) then
tmp = t_1
else if (z <= 2.3d-26) then
tmp = x - ((y / a) * (x - t))
else if ((z <= 4d+62) .or. (.not. (z <= 1.95d+83))) then
tmp = t_1
else
tmp = x * (((z - y) / (a - z)) + 1.0d0)
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 (z <= -6.8e+50) {
tmp = t_1;
} else if (z <= 2.3e-26) {
tmp = x - ((y / a) * (x - t));
} else if ((z <= 4e+62) || !(z <= 1.95e+83)) {
tmp = t_1;
} else {
tmp = x * (((z - y) / (a - z)) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -6.8e+50: tmp = t_1 elif z <= 2.3e-26: tmp = x - ((y / a) * (x - t)) elif (z <= 4e+62) or not (z <= 1.95e+83): tmp = t_1 else: tmp = x * (((z - y) / (a - z)) + 1.0) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -6.8e+50) tmp = t_1; elseif (z <= 2.3e-26) tmp = Float64(x - Float64(Float64(y / a) * Float64(x - t))); elseif ((z <= 4e+62) || !(z <= 1.95e+83)) tmp = t_1; else tmp = Float64(x * Float64(Float64(Float64(z - y) / Float64(a - z)) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -6.8e+50) tmp = t_1; elseif (z <= 2.3e-26) tmp = x - ((y / a) * (x - t)); elseif ((z <= 4e+62) || ~((z <= 1.95e+83))) tmp = t_1; else tmp = x * (((z - y) / (a - z)) + 1.0); 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[z, -6.8e+50], t$95$1, If[LessEqual[z, 2.3e-26], N[(x - N[(N[(y / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 4e+62], N[Not[LessEqual[z, 1.95e+83]], $MachinePrecision]], t$95$1, N[(x * N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-26}:\\
\;\;\;\;x - \frac{y}{a} \cdot \left(x - t\right)\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+62} \lor \neg \left(z \leq 1.95 \cdot 10^{+83}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{z - y}{a - z} + 1\right)\\
\end{array}
\end{array}
if z < -6.7999999999999997e50 or 2.30000000000000009e-26 < z < 4.00000000000000014e62 or 1.9500000000000001e83 < z Initial program 40.4%
clear-num40.4%
associate-/r/40.4%
Applied egg-rr40.4%
Taylor expanded in t around inf 73.9%
div-sub73.9%
Simplified73.9%
if -6.7999999999999997e50 < z < 2.30000000000000009e-26Initial program 91.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 73.7%
if 4.00000000000000014e62 < z < 1.9500000000000001e83Initial program 91.3%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in x around inf 85.0%
mul-1-neg85.0%
unsub-neg85.0%
Simplified85.0%
Final simplification74.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -4e+37)
t_1
(if (<= z 3.2e-7)
(+ x (* (- t x) (/ (- y z) a)))
(if (<= z 9e+61)
(/ t (- 1.0 (/ a z)))
(if (<= z 2.9e+83) (* x (+ (/ (- z y) (- a z)) 1.0)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -4e+37) {
tmp = t_1;
} else if (z <= 3.2e-7) {
tmp = x + ((t - x) * ((y - z) / a));
} else if (z <= 9e+61) {
tmp = t / (1.0 - (a / z));
} else if (z <= 2.9e+83) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} 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) / (a - z))
if (z <= (-4d+37)) then
tmp = t_1
else if (z <= 3.2d-7) then
tmp = x + ((t - x) * ((y - z) / a))
else if (z <= 9d+61) then
tmp = t / (1.0d0 - (a / z))
else if (z <= 2.9d+83) then
tmp = x * (((z - y) / (a - z)) + 1.0d0)
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) / (a - z));
double tmp;
if (z <= -4e+37) {
tmp = t_1;
} else if (z <= 3.2e-7) {
tmp = x + ((t - x) * ((y - z) / a));
} else if (z <= 9e+61) {
tmp = t / (1.0 - (a / z));
} else if (z <= 2.9e+83) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -4e+37: tmp = t_1 elif z <= 3.2e-7: tmp = x + ((t - x) * ((y - z) / a)) elif z <= 9e+61: tmp = t / (1.0 - (a / z)) elif z <= 2.9e+83: tmp = x * (((z - y) / (a - z)) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -4e+37) tmp = t_1; elseif (z <= 3.2e-7) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); elseif (z <= 9e+61) tmp = Float64(t / Float64(1.0 - Float64(a / z))); elseif (z <= 2.9e+83) tmp = Float64(x * Float64(Float64(Float64(z - y) / Float64(a - z)) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -4e+37) tmp = t_1; elseif (z <= 3.2e-7) tmp = x + ((t - x) * ((y - z) / a)); elseif (z <= 9e+61) tmp = t / (1.0 - (a / z)); elseif (z <= 2.9e+83) tmp = x * (((z - y) / (a - z)) + 1.0); 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[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4e+37], t$95$1, If[LessEqual[z, 3.2e-7], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+61], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+83], N[(x * N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -4 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-7}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+61}:\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+83}:\\
\;\;\;\;x \cdot \left(\frac{z - y}{a - z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -3.99999999999999982e37 or 2.89999999999999999e83 < z Initial program 39.3%
clear-num39.2%
associate-/r/39.2%
Applied egg-rr39.2%
Taylor expanded in t around inf 71.4%
div-sub71.4%
Simplified71.4%
if -3.99999999999999982e37 < z < 3.2000000000000001e-7Initial program 91.5%
associate-*l/92.8%
Simplified92.8%
Taylor expanded in a around inf 78.5%
if 3.2000000000000001e-7 < z < 9e61Initial program 55.5%
associate-*l/69.5%
Simplified69.5%
Taylor expanded in x around 0 68.1%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in y around 0 80.3%
mul-1-neg80.3%
div-sub80.3%
sub-neg80.3%
*-inverses80.3%
metadata-eval80.3%
Simplified80.3%
if 9e61 < z < 2.89999999999999999e83Initial program 91.3%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in x around inf 85.0%
mul-1-neg85.0%
unsub-neg85.0%
Simplified85.0%
Final simplification76.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (* (- t x) (- a y)) z))))
(if (<= a -1.55e-45)
(- x (/ (- z y) (/ (- a z) t)))
(if (<= a -6.8e-72)
t_1
(if (<= a -4.2e-97)
(* y (/ (- t x) (- a z)))
(if (<= a 1.8e-48) t_1 (+ x (* (- t x) (/ (- y z) a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (((t - x) * (a - y)) / z);
double tmp;
if (a <= -1.55e-45) {
tmp = x - ((z - y) / ((a - z) / t));
} else if (a <= -6.8e-72) {
tmp = t_1;
} else if (a <= -4.2e-97) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 1.8e-48) {
tmp = t_1;
} else {
tmp = x + ((t - x) * ((y - z) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (((t - x) * (a - y)) / z)
if (a <= (-1.55d-45)) then
tmp = x - ((z - y) / ((a - z) / t))
else if (a <= (-6.8d-72)) then
tmp = t_1
else if (a <= (-4.2d-97)) then
tmp = y * ((t - x) / (a - z))
else if (a <= 1.8d-48) then
tmp = t_1
else
tmp = x + ((t - x) * ((y - z) / 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 + (((t - x) * (a - y)) / z);
double tmp;
if (a <= -1.55e-45) {
tmp = x - ((z - y) / ((a - z) / t));
} else if (a <= -6.8e-72) {
tmp = t_1;
} else if (a <= -4.2e-97) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 1.8e-48) {
tmp = t_1;
} else {
tmp = x + ((t - x) * ((y - z) / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (((t - x) * (a - y)) / z) tmp = 0 if a <= -1.55e-45: tmp = x - ((z - y) / ((a - z) / t)) elif a <= -6.8e-72: tmp = t_1 elif a <= -4.2e-97: tmp = y * ((t - x) / (a - z)) elif a <= 1.8e-48: tmp = t_1 else: tmp = x + ((t - x) * ((y - z) / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)) tmp = 0.0 if (a <= -1.55e-45) tmp = Float64(x - Float64(Float64(z - y) / Float64(Float64(a - z) / t))); elseif (a <= -6.8e-72) tmp = t_1; elseif (a <= -4.2e-97) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 1.8e-48) tmp = t_1; else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (((t - x) * (a - y)) / z); tmp = 0.0; if (a <= -1.55e-45) tmp = x - ((z - y) / ((a - z) / t)); elseif (a <= -6.8e-72) tmp = t_1; elseif (a <= -4.2e-97) tmp = y * ((t - x) / (a - z)); elseif (a <= 1.8e-48) tmp = t_1; else tmp = x + ((t - x) * ((y - z) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.55e-45], N[(x - N[(N[(z - y), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.8e-72], t$95$1, If[LessEqual[a, -4.2e-97], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-48], t$95$1, N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{-45}:\\
\;\;\;\;x - \frac{z - y}{\frac{a - z}{t}}\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-97}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-48}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\end{array}
\end{array}
if a < -1.55e-45Initial program 74.2%
associate-/l*87.4%
Simplified87.4%
Taylor expanded in t around inf 76.6%
if -1.55e-45 < a < -6.7999999999999997e-72 or -4.2000000000000002e-97 < a < 1.8000000000000001e-48Initial program 64.4%
associate-*l/76.4%
Simplified76.4%
Taylor expanded in z around inf 77.9%
associate--l+77.9%
associate-*r/77.9%
associate-*r/77.9%
div-sub77.9%
distribute-lft-out--77.9%
associate-*r/77.9%
mul-1-neg77.9%
unsub-neg77.9%
distribute-rgt-out--77.9%
Simplified77.9%
if -6.7999999999999997e-72 < a < -4.2000000000000002e-97Initial program 72.9%
associate-*l/82.1%
Simplified82.1%
Taylor expanded in y around inf 90.8%
div-sub90.8%
Simplified90.8%
if 1.8000000000000001e-48 < a Initial program 74.6%
associate-*l/96.7%
Simplified96.7%
Taylor expanded in a around inf 83.2%
Final simplification79.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6.6e+50)
t
(if (<= z 2.3e-24)
(* x (- 1.0 (/ y a)))
(if (<= z 1.6e+125) t (if (<= z 5.3e+190) (* t (/ (- y z) a)) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.6e+50) {
tmp = t;
} else if (z <= 2.3e-24) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.6e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / 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 <= (-6.6d+50)) then
tmp = t
else if (z <= 2.3d-24) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 1.6d+125) then
tmp = t
else if (z <= 5.3d+190) then
tmp = t * ((y - z) / 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 <= -6.6e+50) {
tmp = t;
} else if (z <= 2.3e-24) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.6e+125) {
tmp = t;
} else if (z <= 5.3e+190) {
tmp = t * ((y - z) / a);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.6e+50: tmp = t elif z <= 2.3e-24: tmp = x * (1.0 - (y / a)) elif z <= 1.6e+125: tmp = t elif z <= 5.3e+190: tmp = t * ((y - z) / a) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.6e+50) tmp = t; elseif (z <= 2.3e-24) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 1.6e+125) tmp = t; elseif (z <= 5.3e+190) tmp = Float64(t * Float64(Float64(y - z) / a)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.6e+50) tmp = t; elseif (z <= 2.3e-24) tmp = x * (1.0 - (y / a)); elseif (z <= 1.6e+125) tmp = t; elseif (z <= 5.3e+190) tmp = t * ((y - z) / a); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.6e+50], t, If[LessEqual[z, 2.3e-24], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+125], t, If[LessEqual[z, 5.3e+190], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+50}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-24}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{+190}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.6000000000000001e50 or 2.3000000000000001e-24 < z < 1.59999999999999992e125 or 5.30000000000000015e190 < z Initial program 41.9%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 53.3%
if -6.6000000000000001e50 < z < 2.3000000000000001e-24Initial program 91.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 70.9%
Taylor expanded in x around inf 55.7%
mul-1-neg55.7%
sub-neg55.7%
Simplified55.7%
if 1.59999999999999992e125 < z < 5.30000000000000015e190Initial program 55.0%
clear-num55.1%
associate-/r/55.0%
Applied egg-rr55.0%
Taylor expanded in t around inf 60.6%
div-sub60.6%
Simplified60.6%
Taylor expanded in a around inf 52.4%
Final simplification54.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ y z))))
(if (<= y -2.2e+136)
t_1
(if (<= y 2.9e-138)
(+ x t)
(if (<= y 4.8e-70) t (if (<= y 9e+57) (+ x t) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (y / z);
double tmp;
if (y <= -2.2e+136) {
tmp = t_1;
} else if (y <= 2.9e-138) {
tmp = x + t;
} else if (y <= 4.8e-70) {
tmp = t;
} else if (y <= 9e+57) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y / z)
if (y <= (-2.2d+136)) then
tmp = t_1
else if (y <= 2.9d-138) then
tmp = x + t
else if (y <= 4.8d-70) then
tmp = t
else if (y <= 9d+57) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (y / z);
double tmp;
if (y <= -2.2e+136) {
tmp = t_1;
} else if (y <= 2.9e-138) {
tmp = x + t;
} else if (y <= 4.8e-70) {
tmp = t;
} else if (y <= 9e+57) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (y / z) tmp = 0 if y <= -2.2e+136: tmp = t_1 elif y <= 2.9e-138: tmp = x + t elif y <= 4.8e-70: tmp = t elif y <= 9e+57: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(y / z)) tmp = 0.0 if (y <= -2.2e+136) tmp = t_1; elseif (y <= 2.9e-138) tmp = Float64(x + t); elseif (y <= 4.8e-70) tmp = t; elseif (y <= 9e+57) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (y / z); tmp = 0.0; if (y <= -2.2e+136) tmp = t_1; elseif (y <= 2.9e-138) tmp = x + t; elseif (y <= 4.8e-70) tmp = t; elseif (y <= 9e+57) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+136], t$95$1, If[LessEqual[y, 2.9e-138], N[(x + t), $MachinePrecision], If[LessEqual[y, 4.8e-70], t, If[LessEqual[y, 9e+57], N[(x + t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y}{z}\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-138}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-70}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+57}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.1999999999999999e136 or 8.99999999999999991e57 < y Initial program 74.9%
associate-*l/88.6%
Simplified88.6%
Taylor expanded in x around inf 50.6%
mul-1-neg50.6%
unsub-neg50.6%
Simplified50.6%
Taylor expanded in a around 0 38.2%
if -2.1999999999999999e136 < y < 2.89999999999999973e-138 or 4.8000000000000002e-70 < y < 8.99999999999999991e57Initial program 68.3%
associate-/l*81.9%
Simplified81.9%
Taylor expanded in t around inf 70.5%
Taylor expanded in z around inf 43.9%
if 2.89999999999999973e-138 < y < 4.8000000000000002e-70Initial program 41.3%
associate-*l/45.5%
Simplified45.5%
Taylor expanded in z around inf 76.0%
Final simplification42.9%
(FPCore (x y z t a)
:precision binary64
(if (<= y -5.3e+129)
(* x (/ (- y) a))
(if (<= y 4.1e-139)
(+ x t)
(if (<= y 3.8e-70) t (if (<= y 5.6e+57) (+ x t) (* x (/ y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5.3e+129) {
tmp = x * (-y / a);
} else if (y <= 4.1e-139) {
tmp = x + t;
} else if (y <= 3.8e-70) {
tmp = t;
} else if (y <= 5.6e+57) {
tmp = x + t;
} else {
tmp = x * (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 (y <= (-5.3d+129)) then
tmp = x * (-y / a)
else if (y <= 4.1d-139) then
tmp = x + t
else if (y <= 3.8d-70) then
tmp = t
else if (y <= 5.6d+57) then
tmp = x + t
else
tmp = x * (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 (y <= -5.3e+129) {
tmp = x * (-y / a);
} else if (y <= 4.1e-139) {
tmp = x + t;
} else if (y <= 3.8e-70) {
tmp = t;
} else if (y <= 5.6e+57) {
tmp = x + t;
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -5.3e+129: tmp = x * (-y / a) elif y <= 4.1e-139: tmp = x + t elif y <= 3.8e-70: tmp = t elif y <= 5.6e+57: tmp = x + t else: tmp = x * (y / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -5.3e+129) tmp = Float64(x * Float64(Float64(-y) / a)); elseif (y <= 4.1e-139) tmp = Float64(x + t); elseif (y <= 3.8e-70) tmp = t; elseif (y <= 5.6e+57) tmp = Float64(x + t); else tmp = Float64(x * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -5.3e+129) tmp = x * (-y / a); elseif (y <= 4.1e-139) tmp = x + t; elseif (y <= 3.8e-70) tmp = t; elseif (y <= 5.6e+57) tmp = x + t; else tmp = x * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -5.3e+129], N[(x * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.1e-139], N[(x + t), $MachinePrecision], If[LessEqual[y, 3.8e-70], t, If[LessEqual[y, 5.6e+57], N[(x + t), $MachinePrecision], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+129}:\\
\;\;\;\;x \cdot \frac{-y}{a}\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{-139}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-70}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+57}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -5.2999999999999999e129Initial program 71.9%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in x around inf 59.5%
mul-1-neg59.5%
unsub-neg59.5%
Simplified59.5%
Taylor expanded in y around inf 54.4%
associate-*r/54.4%
mul-1-neg54.4%
Simplified54.4%
Taylor expanded in a around inf 42.1%
associate-*r/42.1%
mul-1-neg42.1%
Simplified42.1%
if -5.2999999999999999e129 < y < 4.10000000000000014e-139 or 3.7999999999999998e-70 < y < 5.59999999999999999e57Initial program 68.4%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in t around inf 71.2%
Taylor expanded in z around inf 44.7%
if 4.10000000000000014e-139 < y < 3.7999999999999998e-70Initial program 41.3%
associate-*l/45.5%
Simplified45.5%
Taylor expanded in z around inf 76.0%
if 5.59999999999999999e57 < y Initial program 76.9%
associate-*l/85.8%
Simplified85.8%
Taylor expanded in x around inf 44.7%
mul-1-neg44.7%
unsub-neg44.7%
Simplified44.7%
Taylor expanded in a around 0 40.1%
Final simplification44.3%
(FPCore (x y z t a)
:precision binary64
(if (<= x -8e+257)
(* y (/ (- t x) (- a z)))
(if (<= x -2.3e+73)
(- x (/ x (/ a y)))
(if (<= x 1.3e+89) (* t (/ (- y z) (- a z))) (* x (- 1.0 (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -8e+257) {
tmp = y * ((t - x) / (a - z));
} else if (x <= -2.3e+73) {
tmp = x - (x / (a / y));
} else if (x <= 1.3e+89) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-8d+257)) then
tmp = y * ((t - x) / (a - z))
else if (x <= (-2.3d+73)) then
tmp = x - (x / (a / y))
else if (x <= 1.3d+89) then
tmp = t * ((y - z) / (a - z))
else
tmp = x * (1.0d0 - (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -8e+257) {
tmp = y * ((t - x) / (a - z));
} else if (x <= -2.3e+73) {
tmp = x - (x / (a / y));
} else if (x <= 1.3e+89) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -8e+257: tmp = y * ((t - x) / (a - z)) elif x <= -2.3e+73: tmp = x - (x / (a / y)) elif x <= 1.3e+89: tmp = t * ((y - z) / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -8e+257) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (x <= -2.3e+73) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (x <= 1.3e+89) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -8e+257) tmp = y * ((t - x) / (a - z)); elseif (x <= -2.3e+73) tmp = x - (x / (a / y)); elseif (x <= 1.3e+89) tmp = t * ((y - z) / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -8e+257], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e+73], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e+89], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+257}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+73}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -8.00000000000000024e257Initial program 77.8%
associate-*l/78.2%
Simplified78.2%
Taylor expanded in y around inf 89.6%
div-sub89.6%
Simplified89.6%
if -8.00000000000000024e257 < x < -2.3e73Initial program 64.2%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in z around 0 61.5%
Taylor expanded in t around 0 61.2%
mul-1-neg61.2%
unsub-neg61.2%
associate-/l*63.1%
Simplified63.1%
if -2.3e73 < x < 1.3e89Initial program 71.0%
clear-num70.9%
associate-/r/70.9%
Applied egg-rr70.9%
Taylor expanded in t around inf 71.1%
div-sub71.1%
Simplified71.1%
if 1.3e89 < x Initial program 70.1%
associate-*l/77.3%
Simplified77.3%
Taylor expanded in z around 0 55.6%
Taylor expanded in x around inf 53.3%
mul-1-neg53.3%
sub-neg53.3%
Simplified53.3%
Final simplification67.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.5e+30) (not (<= t 2.3e+14))) (- x (/ (- z y) (/ (- a z) t))) (- x (* (/ 1.0 (- a z)) (* y (- x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.5e+30) || !(t <= 2.3e+14)) {
tmp = x - ((z - y) / ((a - z) / t));
} else {
tmp = x - ((1.0 / (a - z)) * (y * (x - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.5d+30)) .or. (.not. (t <= 2.3d+14))) then
tmp = x - ((z - y) / ((a - z) / t))
else
tmp = x - ((1.0d0 / (a - z)) * (y * (x - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.5e+30) || !(t <= 2.3e+14)) {
tmp = x - ((z - y) / ((a - z) / t));
} else {
tmp = x - ((1.0 / (a - z)) * (y * (x - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.5e+30) or not (t <= 2.3e+14): tmp = x - ((z - y) / ((a - z) / t)) else: tmp = x - ((1.0 / (a - z)) * (y * (x - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.5e+30) || !(t <= 2.3e+14)) tmp = Float64(x - Float64(Float64(z - y) / Float64(Float64(a - z) / t))); else tmp = Float64(x - Float64(Float64(1.0 / Float64(a - z)) * Float64(y * Float64(x - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.5e+30) || ~((t <= 2.3e+14))) tmp = x - ((z - y) / ((a - z) / t)); else tmp = x - ((1.0 / (a - z)) * (y * (x - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.5e+30], N[Not[LessEqual[t, 2.3e+14]], $MachinePrecision]], N[(x - N[(N[(z - y), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(1.0 / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+30} \lor \neg \left(t \leq 2.3 \cdot 10^{+14}\right):\\
\;\;\;\;x - \frac{z - y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{1}{a - z} \cdot \left(y \cdot \left(x - t\right)\right)\\
\end{array}
\end{array}
if t < -1.49999999999999989e30 or 2.3e14 < t Initial program 62.1%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in t around inf 83.5%
if -1.49999999999999989e30 < t < 2.3e14Initial program 77.1%
clear-num77.1%
associate-/r/77.1%
Applied egg-rr77.1%
Taylor expanded in y around inf 69.6%
Final simplification76.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.7e+18)
t
(if (<= z -2e-116)
x
(if (<= z -2.3e-273) (* t (/ y a)) (if (<= z 1.26e-25) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.7e+18) {
tmp = t;
} else if (z <= -2e-116) {
tmp = x;
} else if (z <= -2.3e-273) {
tmp = t * (y / a);
} else if (z <= 1.26e-25) {
tmp = x;
} 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.7d+18)) then
tmp = t
else if (z <= (-2d-116)) then
tmp = x
else if (z <= (-2.3d-273)) then
tmp = t * (y / a)
else if (z <= 1.26d-25) then
tmp = x
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.7e+18) {
tmp = t;
} else if (z <= -2e-116) {
tmp = x;
} else if (z <= -2.3e-273) {
tmp = t * (y / a);
} else if (z <= 1.26e-25) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.7e+18: tmp = t elif z <= -2e-116: tmp = x elif z <= -2.3e-273: tmp = t * (y / a) elif z <= 1.26e-25: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.7e+18) tmp = t; elseif (z <= -2e-116) tmp = x; elseif (z <= -2.3e-273) tmp = Float64(t * Float64(y / a)); elseif (z <= 1.26e-25) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.7e+18) tmp = t; elseif (z <= -2e-116) tmp = x; elseif (z <= -2.3e-273) tmp = t * (y / a); elseif (z <= 1.26e-25) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.7e+18], t, If[LessEqual[z, -2e-116], x, If[LessEqual[z, -2.3e-273], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.26e-25], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+18}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-116}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-273}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{-25}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.7e18 or 1.26e-25 < z Initial program 46.4%
associate-*l/75.0%
Simplified75.0%
Taylor expanded in z around inf 46.4%
if -1.7e18 < z < -2e-116 or -2.29999999999999981e-273 < z < 1.26e-25Initial program 93.0%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in a around inf 35.2%
if -2e-116 < z < -2.29999999999999981e-273Initial program 87.8%
clear-num87.8%
associate-/r/87.9%
Applied egg-rr87.9%
Taylor expanded in t around inf 48.5%
div-sub48.5%
Simplified48.5%
Taylor expanded in z around 0 45.6%
Final simplification41.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.6e+51) (not (<= z 5.6e-30))) (* t (/ (- y z) (- a z))) (- x (* (/ y a) (- x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.6e+51) || !(z <= 5.6e-30)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - ((y / a) * (x - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7.6d+51)) .or. (.not. (z <= 5.6d-30))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x - ((y / a) * (x - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.6e+51) || !(z <= 5.6e-30)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - ((y / a) * (x - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.6e+51) or not (z <= 5.6e-30): tmp = t * ((y - z) / (a - z)) else: tmp = x - ((y / a) * (x - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.6e+51) || !(z <= 5.6e-30)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x - Float64(Float64(y / a) * Float64(x - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.6e+51) || ~((z <= 5.6e-30))) tmp = t * ((y - z) / (a - z)); else tmp = x - ((y / a) * (x - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.6e+51], N[Not[LessEqual[z, 5.6e-30]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{+51} \lor \neg \left(z \leq 5.6 \cdot 10^{-30}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{a} \cdot \left(x - t\right)\\
\end{array}
\end{array}
if z < -7.5999999999999994e51 or 5.59999999999999977e-30 < z Initial program 43.1%
clear-num43.0%
associate-/r/43.0%
Applied egg-rr43.0%
Taylor expanded in t around inf 70.2%
div-sub70.2%
Simplified70.2%
if -7.5999999999999994e51 < z < 5.59999999999999977e-30Initial program 91.6%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 73.7%
Final simplification72.1%
(FPCore (x y z t a) :precision binary64 (if (<= x -7.5e+73) (- x (/ x (/ a y))) (if (<= x 1.3e+90) (* t (/ (- y z) (- a z))) (* x (- 1.0 (/ y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -7.5e+73) {
tmp = x - (x / (a / y));
} else if (x <= 1.3e+90) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-7.5d+73)) then
tmp = x - (x / (a / y))
else if (x <= 1.3d+90) then
tmp = t * ((y - z) / (a - z))
else
tmp = x * (1.0d0 - (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -7.5e+73) {
tmp = x - (x / (a / y));
} else if (x <= 1.3e+90) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -7.5e+73: tmp = x - (x / (a / y)) elif x <= 1.3e+90: tmp = t * ((y - z) / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -7.5e+73) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (x <= 1.3e+90) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -7.5e+73) tmp = x - (x / (a / y)); elseif (x <= 1.3e+90) tmp = t * ((y - z) / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -7.5e+73], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e+90], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+73}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+90}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if x < -7.5e73Initial program 66.4%
associate-*l/77.2%
Simplified77.2%
Taylor expanded in z around 0 58.9%
Taylor expanded in t around 0 58.6%
mul-1-neg58.6%
unsub-neg58.6%
associate-/l*60.2%
Simplified60.2%
if -7.5e73 < x < 1.2999999999999999e90Initial program 71.0%
clear-num70.9%
associate-/r/70.9%
Applied egg-rr70.9%
Taylor expanded in t around inf 71.1%
div-sub71.1%
Simplified71.1%
if 1.2999999999999999e90 < x Initial program 70.1%
associate-*l/77.3%
Simplified77.3%
Taylor expanded in z around 0 55.6%
Taylor expanded in x around inf 53.3%
mul-1-neg53.3%
sub-neg53.3%
Simplified53.3%
Final simplification65.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.14e+17) t (if (<= z 5.2e-28) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.14e+17) {
tmp = t;
} else if (z <= 5.2e-28) {
tmp = x;
} 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.14d+17)) then
tmp = t
else if (z <= 5.2d-28) then
tmp = x
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.14e+17) {
tmp = t;
} else if (z <= 5.2e-28) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.14e+17: tmp = t elif z <= 5.2e-28: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.14e+17) tmp = t; elseif (z <= 5.2e-28) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.14e+17) tmp = t; elseif (z <= 5.2e-28) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.14e+17], t, If[LessEqual[z, 5.2e-28], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.14 \cdot 10^{+17}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-28}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.14e17 or 5.2e-28 < z Initial program 46.4%
associate-*l/75.0%
Simplified75.0%
Taylor expanded in z around inf 46.4%
if -1.14e17 < z < 5.2e-28Initial program 91.8%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in a around inf 30.8%
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 69.8%
associate-*l/84.4%
Simplified84.4%
Taylor expanded in z around inf 25.1%
Final simplification25.1%
(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 2024021
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))