
(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 26 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 (<= t_1 -1e-296)
(+ x (* (- x t) (/ (- z y) (- a z))))
(if (<= t_1 0.0)
(+ t (/ (- x t) (/ z (- y a))))
(fma (/ (- y z) (- a z)) (- t x) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -1e-296) {
tmp = x + ((x - t) * ((z - y) / (a - z)));
} else if (t_1 <= 0.0) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = fma(((y - z) / (a - z)), (t - x), x);
}
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 <= -1e-296) tmp = Float64(x + Float64(Float64(x - t) * Float64(Float64(z - y) / Float64(a - z)))); elseif (t_1 <= 0.0) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); end return 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[LessEqual[t$95$1, -1e-296], N[(x + N[(N[(x - t), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $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 -1 \cdot 10^{-296}:\\
\;\;\;\;x + \left(x - t\right) \cdot \frac{z - y}{a - z}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1e-296Initial program 72.2%
associate-*l/93.2%
Simplified93.2%
if -1e-296 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 3.9%
associate-*l/3.9%
Simplified3.9%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
div-sub99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
distribute-rgt-out--99.8%
unsub-neg99.8%
associate-/l*99.8%
Simplified99.8%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 76.0%
+-commutative76.0%
associate-*l/85.5%
fma-def85.6%
Simplified85.6%
Final simplification90.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z))))
(t_2 (+ x (/ t (/ a y))))
(t_3 (* t (/ (- y z) (- a z)))))
(if (<= a -1.6e+35)
t_2
(if (<= a -7.4e-89)
t_1
(if (<= a -4.7e-181)
t_3
(if (<= a -2.4e-198)
(* y (/ (- t x) (- a z)))
(if (<= a 2.3e-24)
t_3
(if (<= a 3.2e+72)
t_1
(if (or (<= a 1.24e+225) (not (<= a 4.6e+241))) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = x + (t / (a / y));
double t_3 = t * ((y - z) / (a - z));
double tmp;
if (a <= -1.6e+35) {
tmp = t_2;
} else if (a <= -7.4e-89) {
tmp = t_1;
} else if (a <= -4.7e-181) {
tmp = t_3;
} else if (a <= -2.4e-198) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 2.3e-24) {
tmp = t_3;
} else if (a <= 3.2e+72) {
tmp = t_1;
} else if ((a <= 1.24e+225) || !(a <= 4.6e+241)) {
tmp = t_2;
} else {
tmp = t_3;
}
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 - x) * (y / (a - z))
t_2 = x + (t / (a / y))
t_3 = t * ((y - z) / (a - z))
if (a <= (-1.6d+35)) then
tmp = t_2
else if (a <= (-7.4d-89)) then
tmp = t_1
else if (a <= (-4.7d-181)) then
tmp = t_3
else if (a <= (-2.4d-198)) then
tmp = y * ((t - x) / (a - z))
else if (a <= 2.3d-24) then
tmp = t_3
else if (a <= 3.2d+72) then
tmp = t_1
else if ((a <= 1.24d+225) .or. (.not. (a <= 4.6d+241))) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = x + (t / (a / y));
double t_3 = t * ((y - z) / (a - z));
double tmp;
if (a <= -1.6e+35) {
tmp = t_2;
} else if (a <= -7.4e-89) {
tmp = t_1;
} else if (a <= -4.7e-181) {
tmp = t_3;
} else if (a <= -2.4e-198) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 2.3e-24) {
tmp = t_3;
} else if (a <= 3.2e+72) {
tmp = t_1;
} else if ((a <= 1.24e+225) || !(a <= 4.6e+241)) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) t_2 = x + (t / (a / y)) t_3 = t * ((y - z) / (a - z)) tmp = 0 if a <= -1.6e+35: tmp = t_2 elif a <= -7.4e-89: tmp = t_1 elif a <= -4.7e-181: tmp = t_3 elif a <= -2.4e-198: tmp = y * ((t - x) / (a - z)) elif a <= 2.3e-24: tmp = t_3 elif a <= 3.2e+72: tmp = t_1 elif (a <= 1.24e+225) or not (a <= 4.6e+241): tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) t_2 = Float64(x + Float64(t / Float64(a / y))) t_3 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -1.6e+35) tmp = t_2; elseif (a <= -7.4e-89) tmp = t_1; elseif (a <= -4.7e-181) tmp = t_3; elseif (a <= -2.4e-198) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 2.3e-24) tmp = t_3; elseif (a <= 3.2e+72) tmp = t_1; elseif ((a <= 1.24e+225) || !(a <= 4.6e+241)) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / (a - z)); t_2 = x + (t / (a / y)); t_3 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -1.6e+35) tmp = t_2; elseif (a <= -7.4e-89) tmp = t_1; elseif (a <= -4.7e-181) tmp = t_3; elseif (a <= -2.4e-198) tmp = y * ((t - x) / (a - z)); elseif (a <= 2.3e-24) tmp = t_3; elseif (a <= 3.2e+72) tmp = t_1; elseif ((a <= 1.24e+225) || ~((a <= 4.6e+241))) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * 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[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.6e+35], t$95$2, If[LessEqual[a, -7.4e-89], t$95$1, If[LessEqual[a, -4.7e-181], t$95$3, If[LessEqual[a, -2.4e-198], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e-24], t$95$3, If[LessEqual[a, 3.2e+72], t$95$1, If[Or[LessEqual[a, 1.24e+225], N[Not[LessEqual[a, 4.6e+241]], $MachinePrecision]], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
t_2 := x + \frac{t}{\frac{a}{y}}\\
t_3 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -1.6 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7.4 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-181}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-198}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-24}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.24 \cdot 10^{+225} \lor \neg \left(a \leq 4.6 \cdot 10^{+241}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -1.59999999999999991e35 or 3.2000000000000001e72 < a < 1.24e225 or 4.5999999999999999e241 < a Initial program 72.1%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in t around inf 84.6%
Taylor expanded in z around 0 69.1%
associate-/l*73.1%
Simplified73.1%
if -1.59999999999999991e35 < a < -7.3999999999999995e-89 or 2.3000000000000001e-24 < a < 3.2000000000000001e72Initial program 75.1%
associate-*l/84.3%
Simplified84.3%
Taylor expanded in y around -inf 63.5%
associate-*l/68.7%
Simplified68.7%
if -7.3999999999999995e-89 < a < -4.6999999999999998e-181 or -2.39999999999999986e-198 < a < 2.3000000000000001e-24 or 1.24e225 < a < 4.5999999999999999e241Initial program 63.1%
associate-*l/74.6%
Simplified74.6%
Taylor expanded in x around 0 61.9%
associate-/l*75.1%
Simplified75.1%
clear-num75.0%
associate-/r/75.0%
clear-num75.1%
Applied egg-rr75.1%
if -4.6999999999999998e-181 < a < -2.39999999999999986e-198Initial program 72.0%
associate-*l/58.6%
Simplified58.6%
Taylor expanded in y around inf 99.8%
div-sub99.8%
Simplified99.8%
Final simplification73.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z)))) (t_2 (+ x (/ t (/ a y)))))
(if (<= a -2.9e+35)
t_2
(if (<= a -2e-91)
t_1
(if (<= a -4.8e-170)
(- t (/ y (/ z t)))
(if (<= a -3.2e-197)
(* y (/ (- t x) (- a z)))
(if (<= a 6.6e-175)
(/ (- t) (/ z (- y z)))
(if (<= a 1.7e+73)
t_1
(if (or (<= a 1.12e+228) (not (<= a 4.6e+241)))
t_2
(/ (- t) (+ -1.0 (/ a z))))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = x + (t / (a / y));
double tmp;
if (a <= -2.9e+35) {
tmp = t_2;
} else if (a <= -2e-91) {
tmp = t_1;
} else if (a <= -4.8e-170) {
tmp = t - (y / (z / t));
} else if (a <= -3.2e-197) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.6e-175) {
tmp = -t / (z / (y - z));
} else if (a <= 1.7e+73) {
tmp = t_1;
} else if ((a <= 1.12e+228) || !(a <= 4.6e+241)) {
tmp = t_2;
} else {
tmp = -t / (-1.0 + (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - x) * (y / (a - z))
t_2 = x + (t / (a / y))
if (a <= (-2.9d+35)) then
tmp = t_2
else if (a <= (-2d-91)) then
tmp = t_1
else if (a <= (-4.8d-170)) then
tmp = t - (y / (z / t))
else if (a <= (-3.2d-197)) then
tmp = y * ((t - x) / (a - z))
else if (a <= 6.6d-175) then
tmp = -t / (z / (y - z))
else if (a <= 1.7d+73) then
tmp = t_1
else if ((a <= 1.12d+228) .or. (.not. (a <= 4.6d+241))) then
tmp = t_2
else
tmp = -t / ((-1.0d0) + (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = x + (t / (a / y));
double tmp;
if (a <= -2.9e+35) {
tmp = t_2;
} else if (a <= -2e-91) {
tmp = t_1;
} else if (a <= -4.8e-170) {
tmp = t - (y / (z / t));
} else if (a <= -3.2e-197) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 6.6e-175) {
tmp = -t / (z / (y - z));
} else if (a <= 1.7e+73) {
tmp = t_1;
} else if ((a <= 1.12e+228) || !(a <= 4.6e+241)) {
tmp = t_2;
} else {
tmp = -t / (-1.0 + (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) t_2 = x + (t / (a / y)) tmp = 0 if a <= -2.9e+35: tmp = t_2 elif a <= -2e-91: tmp = t_1 elif a <= -4.8e-170: tmp = t - (y / (z / t)) elif a <= -3.2e-197: tmp = y * ((t - x) / (a - z)) elif a <= 6.6e-175: tmp = -t / (z / (y - z)) elif a <= 1.7e+73: tmp = t_1 elif (a <= 1.12e+228) or not (a <= 4.6e+241): tmp = t_2 else: tmp = -t / (-1.0 + (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) t_2 = Float64(x + Float64(t / Float64(a / y))) tmp = 0.0 if (a <= -2.9e+35) tmp = t_2; elseif (a <= -2e-91) tmp = t_1; elseif (a <= -4.8e-170) tmp = Float64(t - Float64(y / Float64(z / t))); elseif (a <= -3.2e-197) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 6.6e-175) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (a <= 1.7e+73) tmp = t_1; elseif ((a <= 1.12e+228) || !(a <= 4.6e+241)) tmp = t_2; else tmp = Float64(Float64(-t) / Float64(-1.0 + Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / (a - z)); t_2 = x + (t / (a / y)); tmp = 0.0; if (a <= -2.9e+35) tmp = t_2; elseif (a <= -2e-91) tmp = t_1; elseif (a <= -4.8e-170) tmp = t - (y / (z / t)); elseif (a <= -3.2e-197) tmp = y * ((t - x) / (a - z)); elseif (a <= 6.6e-175) tmp = -t / (z / (y - z)); elseif (a <= 1.7e+73) tmp = t_1; elseif ((a <= 1.12e+228) || ~((a <= 4.6e+241))) tmp = t_2; else tmp = -t / (-1.0 + (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e+35], t$95$2, If[LessEqual[a, -2e-91], t$95$1, If[LessEqual[a, -4.8e-170], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-197], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e-175], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+73], t$95$1, If[Or[LessEqual[a, 1.12e+228], N[Not[LessEqual[a, 4.6e+241]], $MachinePrecision]], t$95$2, N[((-t) / N[(-1.0 + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
t_2 := x + \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-170}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-175}:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{+228} \lor \neg \left(a \leq 4.6 \cdot 10^{+241}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{-t}{-1 + \frac{a}{z}}\\
\end{array}
\end{array}
if a < -2.89999999999999995e35 or 1.7000000000000001e73 < a < 1.11999999999999994e228 or 4.5999999999999999e241 < a Initial program 72.4%
associate-/l*91.5%
Simplified91.5%
Taylor expanded in t around inf 84.7%
Taylor expanded in z around 0 69.5%
associate-/l*73.3%
Simplified73.3%
if -2.89999999999999995e35 < a < -2.00000000000000004e-91 or 6.59999999999999997e-175 < a < 1.7000000000000001e73Initial program 72.0%
associate-*l/83.3%
Simplified83.3%
Taylor expanded in y around -inf 59.2%
associate-*l/63.4%
Simplified63.4%
if -2.00000000000000004e-91 < a < -4.7999999999999999e-170Initial program 50.1%
associate-*l/58.4%
Simplified58.4%
Taylor expanded in x around 0 66.9%
associate-/l*83.2%
Simplified83.2%
Taylor expanded in a around 0 58.3%
mul-1-neg58.3%
associate-/l*74.5%
distribute-neg-frac74.5%
Simplified74.5%
Taylor expanded in z around 0 74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
associate-/l*74.5%
Simplified74.5%
if -4.7999999999999999e-170 < a < -3.1999999999999997e-197Initial program 73.7%
associate-*l/65.0%
Simplified65.0%
Taylor expanded in y around inf 82.7%
div-sub82.7%
Simplified82.7%
if -3.1999999999999997e-197 < a < 6.59999999999999997e-175Initial program 62.1%
associate-*l/73.4%
Simplified73.4%
Taylor expanded in x around 0 69.6%
associate-/l*79.5%
Simplified79.5%
Taylor expanded in a around 0 62.3%
mul-1-neg62.3%
associate-/l*72.2%
distribute-neg-frac72.2%
Simplified72.2%
if 1.11999999999999994e228 < a < 4.5999999999999999e241Initial program 81.1%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in x around 0 81.1%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around 0 81.1%
mul-1-neg81.1%
associate-/l*99.7%
distribute-neg-frac99.7%
div-sub99.7%
sub-neg99.7%
*-inverses99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification70.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -1e-296) (not (<= t_1 0.0)))
(+ x (* (- x t) (/ (- z y) (- a z))))
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-296) || !(t_1 <= 0.0)) {
tmp = x + ((x - t) * ((z - y) / (a - z)));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-1d-296)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((x - t) * ((z - y) / (a - z)))
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-296) || !(t_1 <= 0.0)) {
tmp = x + ((x - t) * ((z - y) / (a - z)));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -1e-296) or not (t_1 <= 0.0): tmp = x + ((x - t) * ((z - y) / (a - z))) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -1e-296) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(x - t) * Float64(Float64(z - y) / Float64(a - z)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -1e-296) || ~((t_1 <= 0.0))) tmp = x + ((x - t) * ((z - y) / (a - z))); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-296], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(x - t), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-296} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \left(x - t\right) \cdot \frac{z - y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1e-296 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 74.2%
associate-*l/89.2%
Simplified89.2%
if -1e-296 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 3.9%
associate-*l/3.9%
Simplified3.9%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
div-sub99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
distribute-rgt-out--99.8%
unsub-neg99.8%
associate-/l*99.8%
Simplified99.8%
Final simplification90.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z (- y a))))))
(if (<= z -1.12e-38)
t_1
(if (<= z 4.8e-87)
(+ x (/ (- t x) (/ a (- y z))))
(if (or (<= z 2.3e-31) (not (<= z 3.9e+58)))
t_1
(+ x (/ (- y z) (/ (- a z) t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -1.12e-38) {
tmp = t_1;
} else if (z <= 4.8e-87) {
tmp = x + ((t - x) / (a / (y - z)));
} else if ((z <= 2.3e-31) || !(z <= 3.9e+58)) {
tmp = t_1;
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((x - t) / (z / (y - a)))
if (z <= (-1.12d-38)) then
tmp = t_1
else if (z <= 4.8d-87) then
tmp = x + ((t - x) / (a / (y - z)))
else if ((z <= 2.3d-31) .or. (.not. (z <= 3.9d+58))) then
tmp = t_1
else
tmp = x + ((y - z) / ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -1.12e-38) {
tmp = t_1;
} else if (z <= 4.8e-87) {
tmp = x + ((t - x) / (a / (y - z)));
} else if ((z <= 2.3e-31) || !(z <= 3.9e+58)) {
tmp = t_1;
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / (y - a))) tmp = 0 if z <= -1.12e-38: tmp = t_1 elif z <= 4.8e-87: tmp = x + ((t - x) / (a / (y - z))) elif (z <= 2.3e-31) or not (z <= 3.9e+58): tmp = t_1 else: tmp = x + ((y - z) / ((a - z) / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))) tmp = 0.0 if (z <= -1.12e-38) tmp = t_1; elseif (z <= 4.8e-87) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); elseif ((z <= 2.3e-31) || !(z <= 3.9e+58)) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / (y - a))); tmp = 0.0; if (z <= -1.12e-38) tmp = t_1; elseif (z <= 4.8e-87) tmp = x + ((t - x) / (a / (y - z))); elseif ((z <= 2.3e-31) || ~((z <= 3.9e+58))) tmp = t_1; else tmp = x + ((y - z) / ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.12e-38], t$95$1, If[LessEqual[z, 4.8e-87], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 2.3e-31], N[Not[LessEqual[z, 3.9e+58]], $MachinePrecision]], t$95$1, N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-87}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-31} \lor \neg \left(z \leq 3.9 \cdot 10^{+58}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\end{array}
\end{array}
if z < -1.1200000000000001e-38 or 4.7999999999999999e-87 < z < 2.2999999999999998e-31 or 3.9000000000000001e58 < z Initial program 48.4%
associate-*l/71.0%
Simplified71.0%
Taylor expanded in z around inf 68.7%
associate--l+68.7%
associate-*r/68.7%
associate-*r/68.7%
div-sub68.7%
distribute-lft-out--68.7%
associate-*r/68.7%
mul-1-neg68.7%
distribute-rgt-out--68.8%
unsub-neg68.8%
associate-/l*78.1%
Simplified78.1%
if -1.1200000000000001e-38 < z < 4.7999999999999999e-87Initial program 91.3%
associate-*l/96.2%
Simplified96.2%
Taylor expanded in a around inf 82.5%
associate-/l*87.6%
Simplified87.6%
if 2.2999999999999998e-31 < z < 3.9000000000000001e58Initial program 81.3%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in t around inf 78.7%
Final simplification82.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (- t x) (/ (- z y) a)))) (t_2 (- t (* x (/ (- a y) z)))))
(if (<= z -1.2e-38)
t_2
(if (<= z 1.65e-55)
t_1
(if (<= z 7.5e-31)
(/ (* y (- t x)) (- a z))
(if (<= z 5.5e+37) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((t - x) * ((z - y) / a));
double t_2 = t - (x * ((a - y) / z));
double tmp;
if (z <= -1.2e-38) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 7.5e-31) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 5.5e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - ((t - x) * ((z - y) / a))
t_2 = t - (x * ((a - y) / z))
if (z <= (-1.2d-38)) then
tmp = t_2
else if (z <= 1.65d-55) then
tmp = t_1
else if (z <= 7.5d-31) then
tmp = (y * (t - x)) / (a - z)
else if (z <= 5.5d+37) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((t - x) * ((z - y) / a));
double t_2 = t - (x * ((a - y) / z));
double tmp;
if (z <= -1.2e-38) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 7.5e-31) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 5.5e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((t - x) * ((z - y) / a)) t_2 = t - (x * ((a - y) / z)) tmp = 0 if z <= -1.2e-38: tmp = t_2 elif z <= 1.65e-55: tmp = t_1 elif z <= 7.5e-31: tmp = (y * (t - x)) / (a - z) elif z <= 5.5e+37: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(t - x) * Float64(Float64(z - y) / a))) t_2 = Float64(t - Float64(x * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -1.2e-38) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 7.5e-31) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); elseif (z <= 5.5e+37) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((t - x) * ((z - y) / a)); t_2 = t - (x * ((a - y) / z)); tmp = 0.0; if (z <= -1.2e-38) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 7.5e-31) tmp = (y * (t - x)) / (a - z); elseif (z <= 5.5e+37) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.2e-38], t$95$2, If[LessEqual[z, 1.65e-55], t$95$1, If[LessEqual[z, 7.5e-31], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+37], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(t - x\right) \cdot \frac{z - y}{a}\\
t_2 := t - x \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.20000000000000011e-38 or 5.50000000000000016e37 < z Initial program 44.3%
associate-*l/70.9%
Simplified70.9%
Taylor expanded in z around inf 67.3%
associate--l+67.3%
associate-*r/67.3%
associate-*r/67.3%
div-sub67.3%
distribute-lft-out--67.3%
associate-*r/67.3%
mul-1-neg67.3%
distribute-rgt-out--67.4%
unsub-neg67.4%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in t around 0 64.6%
mul-1-neg64.6%
associate-*r/70.1%
distribute-lft-neg-in70.1%
Simplified70.1%
if -1.20000000000000011e-38 < z < 1.65e-55 or 7.49999999999999975e-31 < z < 5.50000000000000016e37Initial program 90.3%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in a around inf 84.7%
if 1.65e-55 < z < 7.49999999999999975e-31Initial program 99.6%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 85.9%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* x (/ (- a y) z)))))
(if (<= z -2e-38)
t_1
(if (<= z 1.7e-55)
(+ x (/ (- t x) (/ a (- y z))))
(if (<= z 1.05e-30)
(/ (* y (- t x)) (- a z))
(if (<= z 2.06e+37) (- x (* (- t x) (/ (- z y) a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (x * ((a - y) / z));
double tmp;
if (z <= -2e-38) {
tmp = t_1;
} else if (z <= 1.7e-55) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (z <= 1.05e-30) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2.06e+37) {
tmp = x - ((t - x) * ((z - y) / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - (x * ((a - y) / z))
if (z <= (-2d-38)) then
tmp = t_1
else if (z <= 1.7d-55) then
tmp = x + ((t - x) / (a / (y - z)))
else if (z <= 1.05d-30) then
tmp = (y * (t - x)) / (a - z)
else if (z <= 2.06d+37) then
tmp = x - ((t - x) * ((z - y) / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - (x * ((a - y) / z));
double tmp;
if (z <= -2e-38) {
tmp = t_1;
} else if (z <= 1.7e-55) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (z <= 1.05e-30) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2.06e+37) {
tmp = x - ((t - x) * ((z - y) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (x * ((a - y) / z)) tmp = 0 if z <= -2e-38: tmp = t_1 elif z <= 1.7e-55: tmp = x + ((t - x) / (a / (y - z))) elif z <= 1.05e-30: tmp = (y * (t - x)) / (a - z) elif z <= 2.06e+37: tmp = x - ((t - x) * ((z - y) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(x * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -2e-38) tmp = t_1; elseif (z <= 1.7e-55) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); elseif (z <= 1.05e-30) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); elseif (z <= 2.06e+37) tmp = Float64(x - Float64(Float64(t - x) * Float64(Float64(z - y) / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (x * ((a - y) / z)); tmp = 0.0; if (z <= -2e-38) tmp = t_1; elseif (z <= 1.7e-55) tmp = x + ((t - x) / (a / (y - z))); elseif (z <= 1.05e-30) tmp = (y * (t - x)) / (a - z); elseif (z <= 2.06e+37) tmp = x - ((t - x) * ((z - y) / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e-38], t$95$1, If[LessEqual[z, 1.7e-55], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-30], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.06e+37], N[(x - N[(N[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - x \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-55}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-30}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;z \leq 2.06 \cdot 10^{+37}:\\
\;\;\;\;x - \left(t - x\right) \cdot \frac{z - y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.9999999999999999e-38 or 2.05999999999999988e37 < z Initial program 44.3%
associate-*l/70.9%
Simplified70.9%
Taylor expanded in z around inf 67.3%
associate--l+67.3%
associate-*r/67.3%
associate-*r/67.3%
div-sub67.3%
distribute-lft-out--67.3%
associate-*r/67.3%
mul-1-neg67.3%
distribute-rgt-out--67.4%
unsub-neg67.4%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in t around 0 64.6%
mul-1-neg64.6%
associate-*r/70.1%
distribute-lft-neg-in70.1%
Simplified70.1%
if -1.9999999999999999e-38 < z < 1.69999999999999986e-55Initial program 91.0%
associate-*l/94.8%
Simplified94.8%
Taylor expanded in a around inf 80.3%
associate-/l*85.0%
Simplified85.0%
if 1.69999999999999986e-55 < z < 1.0500000000000001e-30Initial program 99.6%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 85.9%
if 1.0500000000000001e-30 < z < 2.05999999999999988e37Initial program 82.4%
associate-*l/82.4%
Simplified82.4%
Taylor expanded in a around inf 82.0%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z (- y a))))))
(if (<= z -3.7e-39)
t_1
(if (<= z 4.7e-87)
(+ x (/ (- t x) (/ a (- y z))))
(if (<= z 3.6e-29)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= z 1e+57) (+ x (/ (- y z) (/ (- a z) t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -3.7e-39) {
tmp = t_1;
} else if (z <= 4.7e-87) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (z <= 3.6e-29) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (z <= 1e+57) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((x - t) / (z / (y - a)))
if (z <= (-3.7d-39)) then
tmp = t_1
else if (z <= 4.7d-87) then
tmp = x + ((t - x) / (a / (y - z)))
else if (z <= 3.6d-29) then
tmp = t + (((t - x) * (a - y)) / z)
else if (z <= 1d+57) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (z <= -3.7e-39) {
tmp = t_1;
} else if (z <= 4.7e-87) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (z <= 3.6e-29) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (z <= 1e+57) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / (y - a))) tmp = 0 if z <= -3.7e-39: tmp = t_1 elif z <= 4.7e-87: tmp = x + ((t - x) / (a / (y - z))) elif z <= 3.6e-29: tmp = t + (((t - x) * (a - y)) / z) elif z <= 1e+57: tmp = x + ((y - z) / ((a - z) / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))) tmp = 0.0 if (z <= -3.7e-39) tmp = t_1; elseif (z <= 4.7e-87) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); elseif (z <= 3.6e-29) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (z <= 1e+57) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / (y - a))); tmp = 0.0; if (z <= -3.7e-39) tmp = t_1; elseif (z <= 4.7e-87) tmp = x + ((t - x) / (a / (y - z))); elseif (z <= 3.6e-29) tmp = t + (((t - x) * (a - y)) / z); elseif (z <= 1e+57) tmp = x + ((y - z) / ((a - z) / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.7e-39], t$95$1, If[LessEqual[z, 4.7e-87], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-29], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+57], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-87}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-29}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;z \leq 10^{+57}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.70000000000000015e-39 or 1.00000000000000005e57 < z Initial program 43.1%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 67.6%
associate--l+67.6%
associate-*r/67.6%
associate-*r/67.6%
div-sub67.6%
distribute-lft-out--67.6%
associate-*r/67.6%
mul-1-neg67.6%
distribute-rgt-out--67.7%
unsub-neg67.7%
associate-/l*79.3%
Simplified79.3%
if -3.70000000000000015e-39 < z < 4.7000000000000001e-87Initial program 91.3%
associate-*l/96.2%
Simplified96.2%
Taylor expanded in a around inf 82.5%
associate-/l*87.6%
Simplified87.6%
if 4.7000000000000001e-87 < z < 3.59999999999999974e-29Initial program 92.8%
+-commutative92.8%
associate-*l/79.5%
fma-def79.5%
Simplified79.5%
Taylor expanded in z around -inf 78.0%
if 3.59999999999999974e-29 < z < 1.00000000000000005e57Initial program 81.3%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in t around inf 78.7%
Final simplification82.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y (/ (- x t) a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= z -6.4e-81)
t_2
(if (<= z 1.65e-55)
t_1
(if (<= z 1.25e-27)
(* y (/ (- t x) (- a z)))
(if (<= z 4.1e+37) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * ((x - t) / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -6.4e-81) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 1.25e-27) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 4.1e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - (y * ((x - t) / a))
t_2 = t * ((y - z) / (a - z))
if (z <= (-6.4d-81)) then
tmp = t_2
else if (z <= 1.65d-55) then
tmp = t_1
else if (z <= 1.25d-27) then
tmp = y * ((t - x) / (a - z))
else if (z <= 4.1d+37) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * ((x - t) / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -6.4e-81) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 1.25e-27) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 4.1e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * ((x - t) / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if z <= -6.4e-81: tmp = t_2 elif z <= 1.65e-55: tmp = t_1 elif z <= 1.25e-27: tmp = y * ((t - x) / (a - z)) elif z <= 4.1e+37: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * Float64(Float64(x - t) / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -6.4e-81) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 1.25e-27) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 4.1e+37) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * ((x - t) / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -6.4e-81) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 1.25e-27) tmp = y * ((t - x) / (a - z)); elseif (z <= 4.1e+37) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * N[(N[(x - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.4e-81], t$95$2, If[LessEqual[z, 1.65e-55], t$95$1, If[LessEqual[z, 1.25e-27], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e+37], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \frac{x - t}{a}\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -6.4 \cdot 10^{-81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -6.4e-81 or 4.0999999999999998e37 < z Initial program 47.3%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in x around 0 41.7%
associate-/l*61.6%
Simplified61.6%
clear-num61.5%
associate-/r/61.6%
clear-num61.6%
Applied egg-rr61.6%
if -6.4e-81 < z < 1.65e-55 or 1.25e-27 < z < 4.0999999999999998e37Initial program 89.7%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in a around inf 81.7%
associate-/l*86.3%
Simplified86.3%
Taylor expanded in y around inf 80.2%
associate-*r/83.9%
Simplified83.9%
if 1.65e-55 < z < 1.25e-27Initial program 99.6%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around inf 85.5%
div-sub85.5%
Simplified85.5%
Final simplification72.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= z -9.6e-80)
t_2
(if (<= z 1.06e-55)
t_1
(if (<= z 1.95e-27)
(* y (/ (- t x) (- a z)))
(if (<= z 1.28e+39) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -9.6e-80) {
tmp = t_2;
} else if (z <= 1.06e-55) {
tmp = t_1;
} else if (z <= 1.95e-27) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.28e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
t_2 = t * ((y - z) / (a - z))
if (z <= (-9.6d-80)) then
tmp = t_2
else if (z <= 1.06d-55) then
tmp = t_1
else if (z <= 1.95d-27) then
tmp = y * ((t - x) / (a - z))
else if (z <= 1.28d+39) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -9.6e-80) {
tmp = t_2;
} else if (z <= 1.06e-55) {
tmp = t_1;
} else if (z <= 1.95e-27) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.28e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if z <= -9.6e-80: tmp = t_2 elif z <= 1.06e-55: tmp = t_1 elif z <= 1.95e-27: tmp = y * ((t - x) / (a - z)) elif z <= 1.28e+39: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -9.6e-80) tmp = t_2; elseif (z <= 1.06e-55) tmp = t_1; elseif (z <= 1.95e-27) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 1.28e+39) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -9.6e-80) tmp = t_2; elseif (z <= 1.06e-55) tmp = t_1; elseif (z <= 1.95e-27) tmp = y * ((t - x) / (a - z)); elseif (z <= 1.28e+39) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.6e-80], t$95$2, If[LessEqual[z, 1.06e-55], t$95$1, If[LessEqual[z, 1.95e-27], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.28e+39], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -9.6 \cdot 10^{-80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -9.5999999999999996e-80 or 1.27999999999999994e39 < z Initial program 47.3%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in x around 0 41.7%
associate-/l*61.6%
Simplified61.6%
clear-num61.5%
associate-/r/61.6%
clear-num61.6%
Applied egg-rr61.6%
if -9.5999999999999996e-80 < z < 1.06e-55 or 1.94999999999999986e-27 < z < 1.27999999999999994e39Initial program 89.7%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 84.6%
if 1.06e-55 < z < 1.94999999999999986e-27Initial program 99.6%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around inf 85.5%
div-sub85.5%
Simplified85.5%
Final simplification73.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= z -4.2e-80)
t_2
(if (<= z 1.7e-55)
t_1
(if (<= z 1.35e-31)
(/ (* y (- t x)) (- a z))
(if (<= z 1.3e+37) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -4.2e-80) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 1.35e-31) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 1.3e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
t_2 = t * ((y - z) / (a - z))
if (z <= (-4.2d-80)) then
tmp = t_2
else if (z <= 1.7d-55) then
tmp = t_1
else if (z <= 1.35d-31) then
tmp = (y * (t - x)) / (a - z)
else if (z <= 1.3d+37) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (z <= -4.2e-80) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 1.35e-31) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 1.3e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if z <= -4.2e-80: tmp = t_2 elif z <= 1.7e-55: tmp = t_1 elif z <= 1.35e-31: tmp = (y * (t - x)) / (a - z) elif z <= 1.3e+37: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -4.2e-80) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 1.35e-31) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); elseif (z <= 1.3e+37) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -4.2e-80) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 1.35e-31) tmp = (y * (t - x)) / (a - z); elseif (z <= 1.3e+37) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e-80], t$95$2, If[LessEqual[z, 1.7e-55], t$95$1, If[LessEqual[z, 1.35e-31], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+37], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{-80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-31}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.20000000000000003e-80 or 1.3e37 < z Initial program 47.3%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in x around 0 41.7%
associate-/l*61.6%
Simplified61.6%
clear-num61.5%
associate-/r/61.6%
clear-num61.6%
Applied egg-rr61.6%
if -4.20000000000000003e-80 < z < 1.69999999999999986e-55 or 1.35000000000000007e-31 < z < 1.3e37Initial program 89.7%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in z around 0 84.6%
if 1.69999999999999986e-55 < z < 1.35000000000000007e-31Initial program 99.6%
associate-*l/86.6%
Simplified86.6%
Taylor expanded in y around -inf 85.9%
Final simplification73.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -9.6e-80)
t_1
(if (<= z 1.45e-55)
(+ x (* (- t x) (/ y a)))
(if (<= z 2.4e+82)
(/ (* y (- t x)) (- a z))
(if (<= z 2e+175) (- t (* a (/ (- x t) z))) 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 <= -9.6e-80) {
tmp = t_1;
} else if (z <= 1.45e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 2.4e+82) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2e+175) {
tmp = t - (a * ((x - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-9.6d-80)) then
tmp = t_1
else if (z <= 1.45d-55) then
tmp = x + ((t - x) * (y / a))
else if (z <= 2.4d+82) then
tmp = (y * (t - x)) / (a - z)
else if (z <= 2d+175) then
tmp = t - (a * ((x - t) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -9.6e-80) {
tmp = t_1;
} else if (z <= 1.45e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 2.4e+82) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2e+175) {
tmp = t - (a * ((x - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -9.6e-80: tmp = t_1 elif z <= 1.45e-55: tmp = x + ((t - x) * (y / a)) elif z <= 2.4e+82: tmp = (y * (t - x)) / (a - z) elif z <= 2e+175: tmp = t - (a * ((x - t) / z)) 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 <= -9.6e-80) tmp = t_1; elseif (z <= 1.45e-55) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 2.4e+82) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); elseif (z <= 2e+175) tmp = Float64(t - Float64(a * Float64(Float64(x - t) / z))); 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 <= -9.6e-80) tmp = t_1; elseif (z <= 1.45e-55) tmp = x + ((t - x) * (y / a)); elseif (z <= 2.4e+82) tmp = (y * (t - x)) / (a - z); elseif (z <= 2e+175) tmp = t - (a * ((x - t) / z)); 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, -9.6e-80], t$95$1, If[LessEqual[z, 1.45e-55], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+82], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+175], N[(t - N[(a * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -9.6 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-55}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+82}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+175}:\\
\;\;\;\;t - a \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.5999999999999996e-80 or 1.9999999999999999e175 < z Initial program 46.6%
associate-*l/73.1%
Simplified73.1%
Taylor expanded in x around 0 43.8%
associate-/l*65.1%
Simplified65.1%
clear-num65.0%
associate-/r/65.1%
clear-num65.1%
Applied egg-rr65.1%
if -9.5999999999999996e-80 < z < 1.45e-55Initial program 90.4%
associate-*l/94.5%
Simplified94.5%
Taylor expanded in z around 0 85.7%
if 1.45e-55 < z < 2.39999999999999998e82Initial program 79.5%
associate-*l/80.9%
Simplified80.9%
Taylor expanded in y around -inf 58.7%
if 2.39999999999999998e82 < z < 1.9999999999999999e175Initial program 40.4%
associate-*l/64.6%
Simplified64.6%
Taylor expanded in z around inf 73.7%
associate--l+73.7%
associate-*r/73.7%
associate-*r/73.7%
div-sub73.7%
distribute-lft-out--73.7%
associate-*r/73.7%
mul-1-neg73.7%
distribute-rgt-out--73.7%
unsub-neg73.7%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in y around 0 56.0%
mul-1-neg56.0%
associate-*r/65.0%
distribute-rgt-neg-in65.0%
Simplified65.0%
Final simplification73.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* x (/ (- a y) z)))))
(if (<= z -1.66e-38)
t_1
(if (<= z 1.42e-56)
(+ x (* (- t x) (/ y a)))
(if (<= z 1.85e+35)
(/ (* y (- t x)) (- a z))
(if (<= z 2.3e+58) (- x (* t (/ z (- a z)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (x * ((a - y) / z));
double tmp;
if (z <= -1.66e-38) {
tmp = t_1;
} else if (z <= 1.42e-56) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.85e+35) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2.3e+58) {
tmp = x - (t * (z / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - (x * ((a - y) / z))
if (z <= (-1.66d-38)) then
tmp = t_1
else if (z <= 1.42d-56) then
tmp = x + ((t - x) * (y / a))
else if (z <= 1.85d+35) then
tmp = (y * (t - x)) / (a - z)
else if (z <= 2.3d+58) then
tmp = x - (t * (z / (a - z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - (x * ((a - y) / z));
double tmp;
if (z <= -1.66e-38) {
tmp = t_1;
} else if (z <= 1.42e-56) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.85e+35) {
tmp = (y * (t - x)) / (a - z);
} else if (z <= 2.3e+58) {
tmp = x - (t * (z / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (x * ((a - y) / z)) tmp = 0 if z <= -1.66e-38: tmp = t_1 elif z <= 1.42e-56: tmp = x + ((t - x) * (y / a)) elif z <= 1.85e+35: tmp = (y * (t - x)) / (a - z) elif z <= 2.3e+58: tmp = x - (t * (z / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(x * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -1.66e-38) tmp = t_1; elseif (z <= 1.42e-56) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 1.85e+35) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); elseif (z <= 2.3e+58) tmp = Float64(x - Float64(t * Float64(z / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (x * ((a - y) / z)); tmp = 0.0; if (z <= -1.66e-38) tmp = t_1; elseif (z <= 1.42e-56) tmp = x + ((t - x) * (y / a)); elseif (z <= 1.85e+35) tmp = (y * (t - x)) / (a - z); elseif (z <= 2.3e+58) tmp = x - (t * (z / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.66e-38], t$95$1, If[LessEqual[z, 1.42e-56], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e+35], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+58], N[(x - N[(t * N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - x \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -1.66 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-56}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+35}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+58}:\\
\;\;\;\;x - t \cdot \frac{z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.66000000000000006e-38 or 2.30000000000000002e58 < z Initial program 43.1%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 67.6%
associate--l+67.6%
associate-*r/67.6%
associate-*r/67.6%
div-sub67.6%
distribute-lft-out--67.6%
associate-*r/67.6%
mul-1-neg67.6%
distribute-rgt-out--67.7%
unsub-neg67.7%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in t around 0 65.7%
mul-1-neg65.7%
associate-*r/71.4%
distribute-lft-neg-in71.4%
Simplified71.4%
if -1.66000000000000006e-38 < z < 1.42e-56Initial program 91.0%
associate-*l/94.8%
Simplified94.8%
Taylor expanded in z around 0 83.3%
if 1.42e-56 < z < 1.85e35Initial program 87.7%
associate-*l/82.0%
Simplified82.0%
Taylor expanded in y around -inf 70.4%
if 1.85e35 < z < 2.30000000000000002e58Initial program 85.6%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 100.0%
Taylor expanded in y around 0 69.2%
*-commutative69.2%
associate-*l/83.3%
neg-mul-183.3%
distribute-rgt-neg-in83.3%
Simplified83.3%
Final simplification77.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y a))))
(if (<= a -1.5e+35)
x
(if (<= a -2.3e-47)
t_1
(if (<= a 1.06e-148) t (if (<= a 1.28e+73) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / a);
double tmp;
if (a <= -1.5e+35) {
tmp = x;
} else if (a <= -2.3e-47) {
tmp = t_1;
} else if (a <= 1.06e-148) {
tmp = t;
} else if (a <= 1.28e+73) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (t - x) * (y / a)
if (a <= (-1.5d+35)) then
tmp = x
else if (a <= (-2.3d-47)) then
tmp = t_1
else if (a <= 1.06d-148) then
tmp = t
else if (a <= 1.28d+73) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / a);
double tmp;
if (a <= -1.5e+35) {
tmp = x;
} else if (a <= -2.3e-47) {
tmp = t_1;
} else if (a <= 1.06e-148) {
tmp = t;
} else if (a <= 1.28e+73) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / a) tmp = 0 if a <= -1.5e+35: tmp = x elif a <= -2.3e-47: tmp = t_1 elif a <= 1.06e-148: tmp = t elif a <= 1.28e+73: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / a)) tmp = 0.0 if (a <= -1.5e+35) tmp = x; elseif (a <= -2.3e-47) tmp = t_1; elseif (a <= 1.06e-148) tmp = t; elseif (a <= 1.28e+73) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / a); tmp = 0.0; if (a <= -1.5e+35) tmp = x; elseif (a <= -2.3e-47) tmp = t_1; elseif (a <= 1.06e-148) tmp = t; elseif (a <= 1.28e+73) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5e+35], x, If[LessEqual[a, -2.3e-47], t$95$1, If[LessEqual[a, 1.06e-148], t, If[LessEqual[a, 1.28e+73], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+35}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{-148}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 1.28 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.49999999999999995e35 or 1.2800000000000001e73 < a Initial program 72.8%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in a around inf 55.6%
if -1.49999999999999995e35 < a < -2.29999999999999982e-47 or 1.06000000000000003e-148 < a < 1.2800000000000001e73Initial program 73.2%
associate-*l/84.2%
Simplified84.2%
Taylor expanded in y around -inf 59.3%
associate-*l/63.1%
Simplified63.1%
Taylor expanded in a around inf 42.9%
associate-/l*41.7%
associate-/r/44.0%
Simplified44.0%
if -2.29999999999999982e-47 < a < 1.06000000000000003e-148Initial program 61.0%
associate-*l/69.2%
Simplified69.2%
Taylor expanded in z around inf 45.9%
Final simplification49.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))) (t_2 (- t (/ y (/ z t)))))
(if (<= z -13000.0)
t_2
(if (<= z 4e-75)
t_1
(if (<= z 1.45e-29) (/ y (/ z (- x t))) (if (<= z 3.1e+38) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -13000.0) {
tmp = t_2;
} else if (z <= 4e-75) {
tmp = t_1;
} else if (z <= 1.45e-29) {
tmp = y / (z / (x - t));
} else if (z <= 3.1e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (t / (a / y))
t_2 = t - (y / (z / t))
if (z <= (-13000.0d0)) then
tmp = t_2
else if (z <= 4d-75) then
tmp = t_1
else if (z <= 1.45d-29) then
tmp = y / (z / (x - t))
else if (z <= 3.1d+38) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double t_2 = t - (y / (z / t));
double tmp;
if (z <= -13000.0) {
tmp = t_2;
} else if (z <= 4e-75) {
tmp = t_1;
} else if (z <= 1.45e-29) {
tmp = y / (z / (x - t));
} else if (z <= 3.1e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) t_2 = t - (y / (z / t)) tmp = 0 if z <= -13000.0: tmp = t_2 elif z <= 4e-75: tmp = t_1 elif z <= 1.45e-29: tmp = y / (z / (x - t)) elif z <= 3.1e+38: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) t_2 = Float64(t - Float64(y / Float64(z / t))) tmp = 0.0 if (z <= -13000.0) tmp = t_2; elseif (z <= 4e-75) tmp = t_1; elseif (z <= 1.45e-29) tmp = Float64(y / Float64(z / Float64(x - t))); elseif (z <= 3.1e+38) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); t_2 = t - (y / (z / t)); tmp = 0.0; if (z <= -13000.0) tmp = t_2; elseif (z <= 4e-75) tmp = t_1; elseif (z <= 1.45e-29) tmp = y / (z / (x - t)); elseif (z <= 3.1e+38) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -13000.0], t$95$2, If[LessEqual[z, 4e-75], t$95$1, If[LessEqual[z, 1.45e-29], N[(y / N[(z / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+38], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
t_2 := t - \frac{y}{\frac{z}{t}}\\
\mathbf{if}\;z \leq -13000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-29}:\\
\;\;\;\;\frac{y}{\frac{z}{x - t}}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -13000 or 3.10000000000000018e38 < z Initial program 41.5%
associate-*l/70.3%
Simplified70.3%
Taylor expanded in x around 0 40.3%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in a around 0 37.2%
mul-1-neg37.2%
associate-/l*56.1%
distribute-neg-frac56.1%
Simplified56.1%
Taylor expanded in z around 0 52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
associate-/l*56.0%
Simplified56.0%
if -13000 < z < 3.9999999999999998e-75 or 1.45000000000000012e-29 < z < 3.10000000000000018e38Initial program 89.3%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in t around inf 72.5%
Taylor expanded in z around 0 65.8%
associate-/l*68.5%
Simplified68.5%
if 3.9999999999999998e-75 < z < 1.45000000000000012e-29Initial program 99.7%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in y around -inf 80.6%
associate-*l/61.9%
Simplified61.9%
Taylor expanded in a around 0 78.9%
associate-*r/78.9%
neg-mul-178.9%
distribute-rgt-neg-in78.9%
Simplified78.9%
Taylor expanded in y around 0 78.9%
associate-/l*78.9%
Simplified78.9%
Final simplification63.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))))
(if (<= z -7000000.0)
(/ (- t) (/ z (- y z)))
(if (<= z 3.4e-76)
t_1
(if (<= z 1.5e-25)
(/ y (/ z (- x t)))
(if (<= z 2.2e+37) t_1 (- t (/ y (/ z t)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double tmp;
if (z <= -7000000.0) {
tmp = -t / (z / (y - z));
} else if (z <= 3.4e-76) {
tmp = t_1;
} else if (z <= 1.5e-25) {
tmp = y / (z / (x - t));
} else if (z <= 2.2e+37) {
tmp = t_1;
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t / (a / y))
if (z <= (-7000000.0d0)) then
tmp = -t / (z / (y - z))
else if (z <= 3.4d-76) then
tmp = t_1
else if (z <= 1.5d-25) then
tmp = y / (z / (x - t))
else if (z <= 2.2d+37) then
tmp = t_1
else
tmp = t - (y / (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double tmp;
if (z <= -7000000.0) {
tmp = -t / (z / (y - z));
} else if (z <= 3.4e-76) {
tmp = t_1;
} else if (z <= 1.5e-25) {
tmp = y / (z / (x - t));
} else if (z <= 2.2e+37) {
tmp = t_1;
} else {
tmp = t - (y / (z / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) tmp = 0 if z <= -7000000.0: tmp = -t / (z / (y - z)) elif z <= 3.4e-76: tmp = t_1 elif z <= 1.5e-25: tmp = y / (z / (x - t)) elif z <= 2.2e+37: tmp = t_1 else: tmp = t - (y / (z / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) tmp = 0.0 if (z <= -7000000.0) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (z <= 3.4e-76) tmp = t_1; elseif (z <= 1.5e-25) tmp = Float64(y / Float64(z / Float64(x - t))); elseif (z <= 2.2e+37) tmp = t_1; else tmp = Float64(t - Float64(y / Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); tmp = 0.0; if (z <= -7000000.0) tmp = -t / (z / (y - z)); elseif (z <= 3.4e-76) tmp = t_1; elseif (z <= 1.5e-25) tmp = y / (z / (x - t)); elseif (z <= 2.2e+37) tmp = t_1; else tmp = t - (y / (z / t)); 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]}, If[LessEqual[z, -7000000.0], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-76], t$95$1, If[LessEqual[z, 1.5e-25], N[(y / N[(z / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+37], t$95$1, N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;z \leq -7000000:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-25}:\\
\;\;\;\;\frac{y}{\frac{z}{x - t}}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\end{array}
\end{array}
if z < -7e6Initial program 47.9%
associate-*l/73.7%
Simplified73.7%
Taylor expanded in x around 0 39.4%
associate-/l*58.6%
Simplified58.6%
Taylor expanded in a around 0 36.5%
mul-1-neg36.5%
associate-/l*52.7%
distribute-neg-frac52.7%
Simplified52.7%
if -7e6 < z < 3.3999999999999999e-76 or 1.4999999999999999e-25 < z < 2.2000000000000001e37Initial program 89.3%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in t around inf 72.5%
Taylor expanded in z around 0 65.8%
associate-/l*68.5%
Simplified68.5%
if 3.3999999999999999e-76 < z < 1.4999999999999999e-25Initial program 99.7%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in y around -inf 80.6%
associate-*l/61.9%
Simplified61.9%
Taylor expanded in a around 0 78.9%
associate-*r/78.9%
neg-mul-178.9%
distribute-rgt-neg-in78.9%
Simplified78.9%
Taylor expanded in y around 0 78.9%
associate-/l*78.9%
Simplified78.9%
if 2.2000000000000001e37 < z Initial program 35.4%
associate-*l/67.1%
Simplified67.1%
Taylor expanded in x around 0 41.2%
associate-/l*67.4%
Simplified67.4%
Taylor expanded in a around 0 37.8%
mul-1-neg37.8%
associate-/l*59.3%
distribute-neg-frac59.3%
Simplified59.3%
Taylor expanded in z around 0 55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
associate-/l*59.3%
Simplified59.3%
Final simplification63.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2900000.0)
(/ (- t) (/ z (- y z)))
(if (<= z 4.2e-125)
(+ x (/ t (/ a y)))
(if (<= z 1.5e+149)
(* y (/ (- t x) (- a z)))
(/ (- t) (+ -1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2900000.0) {
tmp = -t / (z / (y - z));
} else if (z <= 4.2e-125) {
tmp = x + (t / (a / y));
} else if (z <= 1.5e+149) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = -t / (-1.0 + (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2900000.0d0)) then
tmp = -t / (z / (y - z))
else if (z <= 4.2d-125) then
tmp = x + (t / (a / y))
else if (z <= 1.5d+149) then
tmp = y * ((t - x) / (a - z))
else
tmp = -t / ((-1.0d0) + (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2900000.0) {
tmp = -t / (z / (y - z));
} else if (z <= 4.2e-125) {
tmp = x + (t / (a / y));
} else if (z <= 1.5e+149) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = -t / (-1.0 + (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2900000.0: tmp = -t / (z / (y - z)) elif z <= 4.2e-125: tmp = x + (t / (a / y)) elif z <= 1.5e+149: tmp = y * ((t - x) / (a - z)) else: tmp = -t / (-1.0 + (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2900000.0) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (z <= 4.2e-125) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 1.5e+149) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); else tmp = Float64(Float64(-t) / Float64(-1.0 + Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2900000.0) tmp = -t / (z / (y - z)); elseif (z <= 4.2e-125) tmp = x + (t / (a / y)); elseif (z <= 1.5e+149) tmp = y * ((t - x) / (a - z)); else tmp = -t / (-1.0 + (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2900000.0], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-125], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+149], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-t) / N[(-1.0 + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2900000:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-125}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+149}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{-t}{-1 + \frac{a}{z}}\\
\end{array}
\end{array}
if z < -2.9e6Initial program 47.9%
associate-*l/73.7%
Simplified73.7%
Taylor expanded in x around 0 39.4%
associate-/l*58.6%
Simplified58.6%
Taylor expanded in a around 0 36.5%
mul-1-neg36.5%
associate-/l*52.7%
distribute-neg-frac52.7%
Simplified52.7%
if -2.9e6 < z < 4.2e-125Initial program 89.5%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in t around inf 74.2%
Taylor expanded in z around 0 66.9%
associate-/l*70.2%
Simplified70.2%
if 4.2e-125 < z < 1.50000000000000002e149Initial program 79.5%
associate-*l/81.8%
Simplified81.8%
Taylor expanded in y around inf 56.0%
div-sub56.0%
Simplified56.0%
if 1.50000000000000002e149 < z Initial program 28.4%
associate-*l/65.1%
Simplified65.1%
Taylor expanded in x around 0 46.5%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in y around 0 43.9%
mul-1-neg43.9%
associate-/l*72.5%
distribute-neg-frac72.5%
div-sub72.5%
sub-neg72.5%
*-inverses72.5%
metadata-eval72.5%
Simplified72.5%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.16e-27)
(+ x (/ (- t x) (/ a (- y z))))
(if (<= a 5.8e-99)
(- t (* x (/ (- a y) z)))
(+ x (/ (- y z) (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.16e-27) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (a <= 5.8e-99) {
tmp = t - (x * ((a - y) / z));
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.16d-27)) then
tmp = x + ((t - x) / (a / (y - z)))
else if (a <= 5.8d-99) then
tmp = t - (x * ((a - y) / z))
else
tmp = x + ((y - z) / ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.16e-27) {
tmp = x + ((t - x) / (a / (y - z)));
} else if (a <= 5.8e-99) {
tmp = t - (x * ((a - y) / z));
} else {
tmp = x + ((y - z) / ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.16e-27: tmp = x + ((t - x) / (a / (y - z))) elif a <= 5.8e-99: tmp = t - (x * ((a - y) / z)) else: tmp = x + ((y - z) / ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.16e-27) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); elseif (a <= 5.8e-99) tmp = Float64(t - Float64(x * Float64(Float64(a - y) / z))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.16e-27) tmp = x + ((t - x) / (a / (y - z))); elseif (a <= 5.8e-99) tmp = t - (x * ((a - y) / z)); else tmp = x + ((y - z) / ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.16e-27], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e-99], N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.16 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{-99}:\\
\;\;\;\;t - x \cdot \frac{a - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\end{array}
\end{array}
if a < -1.16000000000000005e-27Initial program 72.7%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in a around inf 70.6%
associate-/l*82.3%
Simplified82.3%
if -1.16000000000000005e-27 < a < 5.79999999999999971e-99Initial program 64.9%
associate-*l/71.6%
Simplified71.6%
Taylor expanded in z around inf 79.2%
associate--l+79.2%
associate-*r/79.2%
associate-*r/79.2%
div-sub79.2%
distribute-lft-out--79.2%
associate-*r/79.2%
mul-1-neg79.2%
distribute-rgt-out--79.2%
unsub-neg79.2%
associate-/l*81.4%
Simplified81.4%
Taylor expanded in t around 0 67.8%
mul-1-neg67.8%
associate-*r/69.5%
distribute-lft-neg-in69.5%
Simplified69.5%
if 5.79999999999999971e-99 < a Initial program 71.3%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in t around inf 76.2%
Final simplification74.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.2e+21) x (if (<= a -4.7e-46) (* t (/ y a)) (if (<= a 3.2e-172) t (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e+21) {
tmp = x;
} else if (a <= -4.7e-46) {
tmp = t * (y / a);
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = 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 (a <= (-4.2d+21)) then
tmp = x
else if (a <= (-4.7d-46)) then
tmp = t * (y / a)
else if (a <= 3.2d-172) then
tmp = t
else
tmp = 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 (a <= -4.2e+21) {
tmp = x;
} else if (a <= -4.7e-46) {
tmp = t * (y / a);
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.2e+21: tmp = x elif a <= -4.7e-46: tmp = t * (y / a) elif a <= 3.2e-172: tmp = t else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.2e+21) tmp = x; elseif (a <= -4.7e-46) tmp = Float64(t * Float64(y / a)); elseif (a <= 3.2e-172) tmp = t; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.2e+21) tmp = x; elseif (a <= -4.7e-46) tmp = t * (y / a); elseif (a <= 3.2e-172) tmp = t; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.2e+21], x, If[LessEqual[a, -4.7e-46], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-172], t, N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{+21}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-46}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-172}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -4.2e21Initial program 72.2%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in a around inf 49.4%
if -4.2e21 < a < -4.69999999999999966e-46Initial program 84.4%
associate-*l/89.2%
Simplified89.2%
Taylor expanded in y around -inf 74.9%
associate-*l/79.8%
Simplified79.8%
Taylor expanded in a around inf 60.5%
associate-/l*65.5%
Simplified65.5%
Taylor expanded in t around inf 39.2%
associate-*r/44.8%
Simplified44.8%
if -4.69999999999999966e-46 < a < 3.2000000000000001e-172Initial program 60.6%
associate-*l/68.6%
Simplified68.6%
Taylor expanded in z around inf 47.9%
if 3.2000000000000001e-172 < a Initial program 71.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in t around inf 69.7%
Taylor expanded in z around inf 39.0%
Final simplification44.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.05e+21) x (if (<= a -2e-90) (/ x (/ z y)) (if (<= a 2.9e-174) t (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.05e+21) {
tmp = x;
} else if (a <= -2e-90) {
tmp = x / (z / y);
} else if (a <= 2.9e-174) {
tmp = t;
} else {
tmp = 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 (a <= (-2.05d+21)) then
tmp = x
else if (a <= (-2d-90)) then
tmp = x / (z / y)
else if (a <= 2.9d-174) then
tmp = t
else
tmp = 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 (a <= -2.05e+21) {
tmp = x;
} else if (a <= -2e-90) {
tmp = x / (z / y);
} else if (a <= 2.9e-174) {
tmp = t;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.05e+21: tmp = x elif a <= -2e-90: tmp = x / (z / y) elif a <= 2.9e-174: tmp = t else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.05e+21) tmp = x; elseif (a <= -2e-90) tmp = Float64(x / Float64(z / y)); elseif (a <= 2.9e-174) tmp = t; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.05e+21) tmp = x; elseif (a <= -2e-90) tmp = x / (z / y); elseif (a <= 2.9e-174) tmp = t; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.05e+21], x, If[LessEqual[a, -2e-90], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-174], t, N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.05 \cdot 10^{+21}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-174}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -2.05e21Initial program 72.7%
associate-*l/88.7%
Simplified88.7%
Taylor expanded in a around inf 48.7%
if -2.05e21 < a < -1.99999999999999999e-90Initial program 79.1%
associate-*l/87.3%
Simplified87.3%
Taylor expanded in y around -inf 72.1%
associate-*l/75.8%
Simplified75.8%
Taylor expanded in a around 0 45.0%
associate-*r/45.0%
neg-mul-145.0%
distribute-rgt-neg-in45.0%
Simplified45.0%
Taylor expanded in t around 0 38.2%
associate-/l*46.7%
Simplified46.7%
if -1.99999999999999999e-90 < a < 2.9000000000000001e-174Initial program 60.1%
associate-*l/67.3%
Simplified67.3%
Taylor expanded in z around inf 49.0%
if 2.9000000000000001e-174 < a Initial program 71.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in t around inf 69.7%
Taylor expanded in z around inf 39.0%
Final simplification44.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -2e+31) x (if (<= a -2.7e-45) (/ (- x) (/ a y)) (if (<= a 3.2e-172) t (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e+31) {
tmp = x;
} else if (a <= -2.7e-45) {
tmp = -x / (a / y);
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = 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 (a <= (-2d+31)) then
tmp = x
else if (a <= (-2.7d-45)) then
tmp = -x / (a / y)
else if (a <= 3.2d-172) then
tmp = t
else
tmp = 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 (a <= -2e+31) {
tmp = x;
} else if (a <= -2.7e-45) {
tmp = -x / (a / y);
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2e+31: tmp = x elif a <= -2.7e-45: tmp = -x / (a / y) elif a <= 3.2e-172: tmp = t else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2e+31) tmp = x; elseif (a <= -2.7e-45) tmp = Float64(Float64(-x) / Float64(a / y)); elseif (a <= 3.2e-172) tmp = t; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2e+31) tmp = x; elseif (a <= -2.7e-45) tmp = -x / (a / y); elseif (a <= 3.2e-172) tmp = t; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2e+31], x, If[LessEqual[a, -2.7e-45], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-172], t, N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{+31}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-45}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-172}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -1.9999999999999999e31Initial program 72.5%
associate-*l/89.8%
Simplified89.8%
Taylor expanded in a around inf 52.0%
if -1.9999999999999999e31 < a < -2.69999999999999985e-45Initial program 81.7%
associate-*l/85.9%
Simplified85.9%
Taylor expanded in y around -inf 68.9%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in a around inf 56.6%
associate-/l*60.9%
Simplified60.9%
Taylor expanded in t around 0 33.7%
mul-1-neg33.7%
associate-/l*42.6%
Simplified42.6%
if -2.69999999999999985e-45 < a < 3.2000000000000001e-172Initial program 60.6%
associate-*l/68.6%
Simplified68.6%
Taylor expanded in z around inf 47.9%
if 3.2000000000000001e-172 < a Initial program 71.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in t around inf 69.7%
Taylor expanded in z around inf 39.0%
Final simplification44.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4500000.0) (not (<= z 1e+39))) (- t (/ y (/ z t))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4500000.0) || !(z <= 1e+39)) {
tmp = t - (y / (z / t));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-4500000.0d0)) .or. (.not. (z <= 1d+39))) then
tmp = t - (y / (z / t))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4500000.0) || !(z <= 1e+39)) {
tmp = t - (y / (z / t));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4500000.0) or not (z <= 1e+39): tmp = t - (y / (z / t)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4500000.0) || !(z <= 1e+39)) tmp = Float64(t - Float64(y / Float64(z / t))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4500000.0) || ~((z <= 1e+39))) tmp = t - (y / (z / t)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4500000.0], N[Not[LessEqual[z, 1e+39]], $MachinePrecision]], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4500000 \lor \neg \left(z \leq 10^{+39}\right):\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -4.5e6 or 9.9999999999999994e38 < z Initial program 41.5%
associate-*l/70.3%
Simplified70.3%
Taylor expanded in x around 0 40.3%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in a around 0 37.2%
mul-1-neg37.2%
associate-/l*56.1%
distribute-neg-frac56.1%
Simplified56.1%
Taylor expanded in z around 0 52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
associate-/l*56.0%
Simplified56.0%
if -4.5e6 < z < 9.9999999999999994e38Initial program 90.0%
associate-/l*91.0%
Simplified91.0%
Taylor expanded in t around inf 71.8%
Taylor expanded in z around 0 62.9%
associate-/l*66.0%
Simplified66.0%
Final simplification61.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.8e+14) t (if (<= z 8.5e+86) (+ x (/ t (/ a y))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+14) {
tmp = t;
} else if (z <= 8.5e+86) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+14)) then
tmp = t
else if (z <= 8.5d+86) then
tmp = x + (t / (a / y))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+14) {
tmp = t;
} else if (z <= 8.5e+86) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+14: tmp = t elif z <= 8.5e+86: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+14) tmp = t; elseif (z <= 8.5e+86) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+14) tmp = t; elseif (z <= 8.5e+86) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+14], t, If[LessEqual[z, 8.5e+86], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+86}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.8e14 or 8.5000000000000005e86 < z Initial program 37.9%
associate-*l/68.6%
Simplified68.6%
Taylor expanded in z around inf 53.6%
if -2.8e14 < z < 8.5000000000000005e86Initial program 87.9%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in t around inf 71.3%
Taylor expanded in z around 0 59.4%
associate-/l*62.3%
Simplified62.3%
Final simplification59.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.7e+28) x (if (<= a 3.2e-172) t (+ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.7e+28) {
tmp = x;
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = 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 (a <= (-4.7d+28)) then
tmp = x
else if (a <= 3.2d-172) then
tmp = t
else
tmp = 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 (a <= -4.7e+28) {
tmp = x;
} else if (a <= 3.2e-172) {
tmp = t;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.7e+28: tmp = x elif a <= 3.2e-172: tmp = t else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.7e+28) tmp = x; elseif (a <= 3.2e-172) tmp = t; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.7e+28) tmp = x; elseif (a <= 3.2e-172) tmp = t; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.7e+28], x, If[LessEqual[a, 3.2e-172], t, N[(x + t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.7 \cdot 10^{+28}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-172}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -4.69999999999999965e28Initial program 73.1%
associate-*l/90.0%
Simplified90.0%
Taylor expanded in a around inf 51.1%
if -4.69999999999999965e28 < a < 3.2000000000000001e-172Initial program 64.6%
associate-*l/71.8%
Simplified71.8%
Taylor expanded in z around inf 42.1%
if 3.2000000000000001e-172 < a Initial program 71.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in t around inf 69.7%
Taylor expanded in z around inf 39.0%
Final simplification42.6%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.5e+28) x (if (<= a 1.52e-46) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+28) {
tmp = x;
} else if (a <= 1.52e-46) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-9.5d+28)) then
tmp = x
else if (a <= 1.52d-46) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+28) {
tmp = x;
} else if (a <= 1.52e-46) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e+28: tmp = x elif a <= 1.52e-46: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e+28) tmp = x; elseif (a <= 1.52e-46) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e+28) tmp = x; elseif (a <= 1.52e-46) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e+28], x, If[LessEqual[a, 1.52e-46], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+28}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{-46}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.49999999999999927e28 or 1.52000000000000006e-46 < a Initial program 73.3%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in a around inf 46.1%
if -9.49999999999999927e28 < a < 1.52000000000000006e-46Initial program 64.5%
associate-*l/73.3%
Simplified73.3%
Taylor expanded in z around inf 38.5%
Final simplification42.4%
(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.0%
associate-*l/82.9%
Simplified82.9%
Taylor expanded in z around inf 25.5%
Final simplification25.5%
(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 2024031
(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))))