
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_1 -1e-294)
(+ x (/ (- t x) (/ (- a z) (- y z))))
(if (<= t_1 0.0)
(+ t (* x (/ (- y a) z)))
(+ x (* (- t x) (/ (- y z) (- a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -1e-294) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else if (t_1 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if (t_1 <= (-1d-294)) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else if (t_1 <= 0.0d0) then
tmp = t + (x * ((y - a) / z))
else
tmp = x + ((t - x) * ((y - z) / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -1e-294) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else if (t_1 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_1 <= -1e-294: tmp = x + ((t - x) / ((a - z) / (y - z))) elif t_1 <= 0.0: tmp = t + (x * ((y - a) / z)) else: tmp = x + ((t - x) * ((y - z) / (a - z))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -1e-294) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); elseif (t_1 <= 0.0) tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_1 <= -1e-294) tmp = x + ((t - x) / ((a - z) / (y - z))); elseif (t_1 <= 0.0) tmp = t + (x * ((y - a) / z)); else tmp = x + ((t - x) * ((y - z) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-294], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-294}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-294Initial program 91.2%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6495.7%
Applied egg-rr95.7%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.3%
Applied egg-rr96.3%
if -1.00000000000000002e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64100.0%
Simplified100.0%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 87.2%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6493.8%
Applied egg-rr93.8%
Final simplification95.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ (- y z) (- a z)))))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_2 -1e-294) t_1 (if (<= t_2 0.0) (+ t (* x (/ (- y a) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / (a - z)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -1e-294) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * ((y - z) / (a - z)))
t_2 = x + ((y - z) * ((t - x) / (a - z)))
if (t_2 <= (-1d-294)) then
tmp = t_1
else if (t_2 <= 0.0d0) then
tmp = t + (x * ((y - a) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / (a - z)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -1e-294) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * ((y - z) / (a - z))) t_2 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_2 <= -1e-294: tmp = t_1 elif t_2 <= 0.0: tmp = t + (x * ((y - a) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -1e-294) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * ((y - z) / (a - z))); t_2 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_2 <= -1e-294) tmp = t_1; elseif (t_2 <= 0.0) tmp = t + (x * ((y - a) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-294], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 89.1%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6494.7%
Applied egg-rr94.7%
if -1.00000000000000002e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64100.0%
Simplified100.0%
Final simplification95.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))) (if (<= t_1 -1e-294) t_1 (if (<= t_1 0.0) (+ t (* x (/ (- y a) z))) t_1))))
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-294) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if (t_1 <= (-1d-294)) then
tmp = t_1
else if (t_1 <= 0.0d0) then
tmp = t + (x * ((y - a) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -1e-294) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_1 <= -1e-294: tmp = t_1 elif t_1 <= 0.0: tmp = t + (x * ((y - a) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -1e-294) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); else tmp = t_1; 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-294) tmp = t_1; elseif (t_1 <= 0.0) tmp = t + (x * ((y - a) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-294], t$95$1, If[LessEqual[t$95$1, 0.0], N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 89.1%
if -1.00000000000000002e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64100.0%
Simplified100.0%
Final simplification90.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (* x y) z))))
(if (<= z -1.65e+84)
t_1
(if (<= z 1.8e-8)
(+ x (/ (- t x) (/ a y)))
(if (<= z 3.1e+172) t_1 (- t (* x (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x * y) / z);
double tmp;
if (z <= -1.65e+84) {
tmp = t_1;
} else if (z <= 1.8e-8) {
tmp = x + ((t - x) / (a / y));
} else if (z <= 3.1e+172) {
tmp = t_1;
} else {
tmp = t - (x * (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) :: tmp
t_1 = t + ((x * y) / z)
if (z <= (-1.65d+84)) then
tmp = t_1
else if (z <= 1.8d-8) then
tmp = x + ((t - x) / (a / y))
else if (z <= 3.1d+172) then
tmp = t_1
else
tmp = t - (x * (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) / z);
double tmp;
if (z <= -1.65e+84) {
tmp = t_1;
} else if (z <= 1.8e-8) {
tmp = x + ((t - x) / (a / y));
} else if (z <= 3.1e+172) {
tmp = t_1;
} else {
tmp = t - (x * (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x * y) / z) tmp = 0 if z <= -1.65e+84: tmp = t_1 elif z <= 1.8e-8: tmp = x + ((t - x) / (a / y)) elif z <= 3.1e+172: tmp = t_1 else: tmp = t - (x * (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x * y) / z)) tmp = 0.0 if (z <= -1.65e+84) tmp = t_1; elseif (z <= 1.8e-8) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); elseif (z <= 3.1e+172) tmp = t_1; else tmp = Float64(t - Float64(x * Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x * y) / z); tmp = 0.0; if (z <= -1.65e+84) tmp = t_1; elseif (z <= 1.8e-8) tmp = x + ((t - x) / (a / y)); elseif (z <= 3.1e+172) tmp = t_1; else tmp = t - (x * (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.65e+84], t$95$1, If[LessEqual[z, 1.8e-8], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+172], t$95$1, N[(t - N[(x * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x \cdot y}{z}\\
\mathbf{if}\;z \leq -1.65 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t - x \cdot \frac{a}{z}\\
\end{array}
\end{array}
if z < -1.65000000000000008e84 or 1.79999999999999991e-8 < z < 3.09999999999999988e172Initial program 69.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.3%
Simplified73.3%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6468.8%
Simplified68.8%
Taylor expanded in a around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6462.2%
Simplified62.2%
if -1.65000000000000008e84 < z < 1.79999999999999991e-8Initial program 90.5%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.9%
Applied egg-rr96.9%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6497.3%
Applied egg-rr97.3%
Taylor expanded in z around 0
/-lowering-/.f6474.7%
Simplified74.7%
if 3.09999999999999988e172 < z Initial program 57.6%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6488.7%
Simplified88.7%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6481.5%
Simplified81.5%
Taylor expanded in a around inf
/-lowering-/.f6481.2%
Simplified81.2%
Final simplification71.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (* x y) z))))
(if (<= z -8.2e+77)
t_1
(if (<= z 1.45e-8)
(+ x (* (- t x) (/ y a)))
(if (<= z 5.7e+171) t_1 (- t (* x (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x * y) / z);
double tmp;
if (z <= -8.2e+77) {
tmp = t_1;
} else if (z <= 1.45e-8) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 5.7e+171) {
tmp = t_1;
} else {
tmp = t - (x * (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) :: tmp
t_1 = t + ((x * y) / z)
if (z <= (-8.2d+77)) then
tmp = t_1
else if (z <= 1.45d-8) then
tmp = x + ((t - x) * (y / a))
else if (z <= 5.7d+171) then
tmp = t_1
else
tmp = t - (x * (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) / z);
double tmp;
if (z <= -8.2e+77) {
tmp = t_1;
} else if (z <= 1.45e-8) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 5.7e+171) {
tmp = t_1;
} else {
tmp = t - (x * (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x * y) / z) tmp = 0 if z <= -8.2e+77: tmp = t_1 elif z <= 1.45e-8: tmp = x + ((t - x) * (y / a)) elif z <= 5.7e+171: tmp = t_1 else: tmp = t - (x * (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x * y) / z)) tmp = 0.0 if (z <= -8.2e+77) tmp = t_1; elseif (z <= 1.45e-8) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 5.7e+171) tmp = t_1; else tmp = Float64(t - Float64(x * Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x * y) / z); tmp = 0.0; if (z <= -8.2e+77) tmp = t_1; elseif (z <= 1.45e-8) tmp = x + ((t - x) * (y / a)); elseif (z <= 5.7e+171) tmp = t_1; else tmp = t - (x * (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.2e+77], t$95$1, If[LessEqual[z, 1.45e-8], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.7e+171], t$95$1, N[(t - N[(x * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x \cdot y}{z}\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-8}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t - x \cdot \frac{a}{z}\\
\end{array}
\end{array}
if z < -8.2000000000000002e77 or 1.4500000000000001e-8 < z < 5.7e171Initial program 69.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.3%
Simplified73.3%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6468.8%
Simplified68.8%
Taylor expanded in a around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6462.2%
Simplified62.2%
if -8.2000000000000002e77 < z < 1.4500000000000001e-8Initial program 90.5%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.9%
Applied egg-rr96.9%
Taylor expanded in z around 0
/-lowering-/.f6474.7%
Simplified74.7%
if 5.7e171 < z Initial program 57.6%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6488.7%
Simplified88.7%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6481.5%
Simplified81.5%
Taylor expanded in a around inf
/-lowering-/.f6481.2%
Simplified81.2%
Final simplification71.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (* x y) z))))
(if (<= z -4.2e+45)
t_1
(if (<= z 6.4e-10)
(* x (- 1.0 (/ y a)))
(if (<= z 4.8e+171) t_1 (- t (* x (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x * y) / z);
double tmp;
if (z <= -4.2e+45) {
tmp = t_1;
} else if (z <= 6.4e-10) {
tmp = x * (1.0 - (y / a));
} else if (z <= 4.8e+171) {
tmp = t_1;
} else {
tmp = t - (x * (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) :: tmp
t_1 = t + ((x * y) / z)
if (z <= (-4.2d+45)) then
tmp = t_1
else if (z <= 6.4d-10) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 4.8d+171) then
tmp = t_1
else
tmp = t - (x * (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) / z);
double tmp;
if (z <= -4.2e+45) {
tmp = t_1;
} else if (z <= 6.4e-10) {
tmp = x * (1.0 - (y / a));
} else if (z <= 4.8e+171) {
tmp = t_1;
} else {
tmp = t - (x * (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x * y) / z) tmp = 0 if z <= -4.2e+45: tmp = t_1 elif z <= 6.4e-10: tmp = x * (1.0 - (y / a)) elif z <= 4.8e+171: tmp = t_1 else: tmp = t - (x * (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x * y) / z)) tmp = 0.0 if (z <= -4.2e+45) tmp = t_1; elseif (z <= 6.4e-10) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 4.8e+171) tmp = t_1; else tmp = Float64(t - Float64(x * Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x * y) / z); tmp = 0.0; if (z <= -4.2e+45) tmp = t_1; elseif (z <= 6.4e-10) tmp = x * (1.0 - (y / a)); elseif (z <= 4.8e+171) tmp = t_1; else tmp = t - (x * (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+45], t$95$1, If[LessEqual[z, 6.4e-10], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e+171], t$95$1, N[(t - N[(x * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x \cdot y}{z}\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t - x \cdot \frac{a}{z}\\
\end{array}
\end{array}
if z < -4.1999999999999999e45 or 6.39999999999999961e-10 < z < 4.79999999999999995e171Initial program 71.6%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6471.3%
Simplified71.3%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6464.5%
Simplified64.5%
Taylor expanded in a around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6458.6%
Simplified58.6%
if -4.1999999999999999e45 < z < 6.39999999999999961e-10Initial program 90.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.2%
Simplified69.2%
Taylor expanded in z around 0
/-lowering-/.f6461.9%
Simplified61.9%
if 4.79999999999999995e171 < z Initial program 57.6%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6488.7%
Simplified88.7%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6481.5%
Simplified81.5%
Taylor expanded in a around inf
/-lowering-/.f6481.2%
Simplified81.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ (- y z) (- a z))))))
(if (<= a -3.8e-80)
t_1
(if (<= a 9.2e+54) (+ t (* (- t x) (/ (- a y) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * ((y - z) / (a - z)));
double tmp;
if (a <= -3.8e-80) {
tmp = t_1;
} else if (a <= 9.2e+54) {
tmp = t + ((t - x) * ((a - y) / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * ((y - z) / (a - z)))
if (a <= (-3.8d-80)) then
tmp = t_1
else if (a <= 9.2d+54) then
tmp = t + ((t - x) * ((a - y) / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * ((y - z) / (a - z)));
double tmp;
if (a <= -3.8e-80) {
tmp = t_1;
} else if (a <= 9.2e+54) {
tmp = t + ((t - x) * ((a - y) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * ((y - z) / (a - z))) tmp = 0 if a <= -3.8e-80: tmp = t_1 elif a <= 9.2e+54: tmp = t + ((t - x) * ((a - y) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))) tmp = 0.0 if (a <= -3.8e-80) tmp = t_1; elseif (a <= 9.2e+54) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * ((y - z) / (a - z))); tmp = 0.0; if (a <= -3.8e-80) tmp = t_1; elseif (a <= 9.2e+54) tmp = t + ((t - x) * ((a - y) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e-80], t$95$1, If[LessEqual[a, 9.2e+54], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{+54}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.79999999999999967e-80 or 9.19999999999999977e54 < a Initial program 85.9%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6490.0%
Applied egg-rr90.0%
Taylor expanded in t around inf
Simplified78.7%
if -3.79999999999999967e-80 < a < 9.19999999999999977e54Initial program 71.4%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6484.2%
Simplified84.2%
Final simplification81.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* t (/ (- y z) (- a z)))))) (if (<= a -8e-79) t_1 (if (<= a 8.6e+54) (+ t (* (/ y z) (- x t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * ((y - z) / (a - z)));
double tmp;
if (a <= -8e-79) {
tmp = t_1;
} else if (a <= 8.6e+54) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * ((y - z) / (a - z)))
if (a <= (-8d-79)) then
tmp = t_1
else if (a <= 8.6d+54) then
tmp = t + ((y / z) * (x - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * ((y - z) / (a - z)));
double tmp;
if (a <= -8e-79) {
tmp = t_1;
} else if (a <= 8.6e+54) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * ((y - z) / (a - z))) tmp = 0 if a <= -8e-79: tmp = t_1 elif a <= 8.6e+54: tmp = t + ((y / z) * (x - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))) tmp = 0.0 if (a <= -8e-79) tmp = t_1; elseif (a <= 8.6e+54) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * ((y - z) / (a - z))); tmp = 0.0; if (a <= -8e-79) tmp = t_1; elseif (a <= 8.6e+54) tmp = t + ((y / z) * (x - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e-79], t$95$1, If[LessEqual[a, 8.6e+54], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -8 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{+54}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -8e-79 or 8.59999999999999952e54 < a Initial program 85.9%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6490.0%
Applied egg-rr90.0%
Taylor expanded in t around inf
Simplified78.7%
if -8e-79 < a < 8.59999999999999952e54Initial program 71.4%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6484.2%
Simplified84.2%
Taylor expanded in y around inf
/-lowering-/.f6482.4%
Simplified82.4%
Final simplification80.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ t (- a z))))))
(if (<= a -2.2e-78)
t_1
(if (<= a 2.35e+55) (+ t (* (/ y z) (- x t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -2.2e-78) {
tmp = t_1;
} else if (a <= 2.35e+55) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * (t / (a - z)))
if (a <= (-2.2d-78)) then
tmp = t_1
else if (a <= 2.35d+55) then
tmp = t + ((y / z) * (x - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -2.2e-78) {
tmp = t_1;
} else if (a <= 2.35e+55) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * (t / (a - z))) tmp = 0 if a <= -2.2e-78: tmp = t_1 elif a <= 2.35e+55: tmp = t + ((y / z) * (x - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))) tmp = 0.0 if (a <= -2.2e-78) tmp = t_1; elseif (a <= 2.35e+55) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * (t / (a - z))); tmp = 0.0; if (a <= -2.2e-78) tmp = t_1; elseif (a <= 2.35e+55) tmp = t + ((y / z) * (x - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e-78], t$95$1, If[LessEqual[a, 2.35e+55], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{+55}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.1999999999999999e-78 or 2.35e55 < a Initial program 85.9%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6476.6%
Simplified76.6%
if -2.1999999999999999e-78 < a < 2.35e55Initial program 71.4%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6484.2%
Simplified84.2%
Taylor expanded in y around inf
/-lowering-/.f6482.4%
Simplified82.4%
Final simplification79.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.65e+73) (+ x (/ (- t x) (/ a y))) (if (<= a 1.4e+59) (+ t (* (/ y z) (- x t))) (+ x (* (- t x) (/ y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.65e+73) {
tmp = x + ((t - x) / (a / y));
} else if (a <= 1.4e+59) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.65d+73)) then
tmp = x + ((t - x) / (a / y))
else if (a <= 1.4d+59) then
tmp = t + ((y / z) * (x - t))
else
tmp = x + ((t - x) * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.65e+73) {
tmp = x + ((t - x) / (a / y));
} else if (a <= 1.4e+59) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.65e+73: tmp = x + ((t - x) / (a / y)) elif a <= 1.4e+59: tmp = t + ((y / z) * (x - t)) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.65e+73) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); elseif (a <= 1.4e+59) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.65e+73) tmp = x + ((t - x) / (a / y)); elseif (a <= 1.4e+59) tmp = t + ((y / z) * (x - t)); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.65e+73], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+59], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.65 \cdot 10^{+73}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+59}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -1.65000000000000015e73Initial program 84.3%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6489.9%
Applied egg-rr89.9%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.0%
Applied egg-rr90.0%
Taylor expanded in z around 0
/-lowering-/.f6478.2%
Simplified78.2%
if -1.65000000000000015e73 < a < 1.3999999999999999e59Initial program 73.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6480.2%
Simplified80.2%
Taylor expanded in y around inf
/-lowering-/.f6478.3%
Simplified78.3%
if 1.3999999999999999e59 < a Initial program 90.0%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6493.3%
Applied egg-rr93.3%
Taylor expanded in z around 0
/-lowering-/.f6468.0%
Simplified68.0%
Final simplification76.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ (- y a) z)))))
(if (<= z -1.45e+84)
t_1
(if (<= z 5.3e-11) (+ x (/ (- t x) (/ a y))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * ((y - a) / z));
double tmp;
if (z <= -1.45e+84) {
tmp = t_1;
} else if (z <= 5.3e-11) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (x * ((y - a) / z))
if (z <= (-1.45d+84)) then
tmp = t_1
else if (z <= 5.3d-11) then
tmp = x + ((t - x) / (a / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * ((y - a) / z));
double tmp;
if (z <= -1.45e+84) {
tmp = t_1;
} else if (z <= 5.3e-11) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * ((y - a) / z)) tmp = 0 if z <= -1.45e+84: tmp = t_1 elif z <= 5.3e-11: tmp = x + ((t - x) / (a / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(Float64(y - a) / z))) tmp = 0.0 if (z <= -1.45e+84) tmp = t_1; elseif (z <= 5.3e-11) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * ((y - a) / z)); tmp = 0.0; if (z <= -1.45e+84) tmp = t_1; elseif (z <= 5.3e-11) tmp = x + ((t - x) / (a / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+84], t$95$1, If[LessEqual[z, 5.3e-11], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-11}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.44999999999999994e84 or 5.2999999999999998e-11 < z Initial program 66.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.4%
Simplified77.4%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6472.2%
Simplified72.2%
if -1.44999999999999994e84 < z < 5.2999999999999998e-11Initial program 90.5%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.9%
Applied egg-rr96.9%
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6497.3%
Applied egg-rr97.3%
Taylor expanded in z around 0
/-lowering-/.f6474.7%
Simplified74.7%
Final simplification73.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ t (/ (* x y) z)))) (if (<= z -1.4e+46) t_1 (if (<= z 7e-10) (* x (- 1.0 (/ y a))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x * y) / z);
double tmp;
if (z <= -1.4e+46) {
tmp = t_1;
} else if (z <= 7e-10) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((x * y) / z)
if (z <= (-1.4d+46)) then
tmp = t_1
else if (z <= 7d-10) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x * y) / z);
double tmp;
if (z <= -1.4e+46) {
tmp = t_1;
} else if (z <= 7e-10) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x * y) / z) tmp = 0 if z <= -1.4e+46: tmp = t_1 elif z <= 7e-10: tmp = x * (1.0 - (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x * y) / z)) tmp = 0.0 if (z <= -1.4e+46) tmp = t_1; elseif (z <= 7e-10) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x * y) / z); tmp = 0.0; if (z <= -1.4e+46) tmp = t_1; elseif (z <= 7e-10) tmp = x * (1.0 - (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+46], t$95$1, If[LessEqual[z, 7e-10], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x \cdot y}{z}\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.40000000000000009e46 or 6.99999999999999961e-10 < z Initial program 68.2%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6475.6%
Simplified75.6%
Taylor expanded in t around 0
mul-1-negN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6468.6%
Simplified68.6%
Taylor expanded in a around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6459.3%
Simplified59.3%
if -1.40000000000000009e46 < z < 6.99999999999999961e-10Initial program 90.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.2%
Simplified69.2%
Taylor expanded in z around 0
/-lowering-/.f6461.9%
Simplified61.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -8.8e+45) t (if (<= z 1.65e+100) (* x (- 1.0 (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+45) {
tmp = t;
} else if (z <= 1.65e+100) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8.8d+45)) then
tmp = t
else if (z <= 1.65d+100) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+45) {
tmp = t;
} else if (z <= 1.65e+100) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.8e+45: tmp = t elif z <= 1.65e+100: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.8e+45) tmp = t; elseif (z <= 1.65e+100) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.8e+45) tmp = t; elseif (z <= 1.65e+100) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.8e+45], t, If[LessEqual[z, 1.65e+100], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+45}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+100}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.8000000000000001e45 or 1.6500000000000001e100 < z Initial program 65.5%
Taylor expanded in z around inf
Simplified55.0%
if -8.8000000000000001e45 < z < 1.6500000000000001e100Initial program 88.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6464.9%
Simplified64.9%
Taylor expanded in z around 0
/-lowering-/.f6458.2%
Simplified58.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.4e+60) t (if (<= z 4.3e-9) (* x (+ (/ z a) 1.0)) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.4e+60) {
tmp = t;
} else if (z <= 4.3e-9) {
tmp = x * ((z / a) + 1.0);
} 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 <= (-5.4d+60)) then
tmp = t
else if (z <= 4.3d-9) then
tmp = x * ((z / a) + 1.0d0)
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 <= -5.4e+60) {
tmp = t;
} else if (z <= 4.3e-9) {
tmp = x * ((z / a) + 1.0);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.4e+60: tmp = t elif z <= 4.3e-9: tmp = x * ((z / a) + 1.0) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.4e+60) tmp = t; elseif (z <= 4.3e-9) tmp = Float64(x * Float64(Float64(z / a) + 1.0)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.4e+60) tmp = t; elseif (z <= 4.3e-9) tmp = x * ((z / a) + 1.0); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.4e+60], t, If[LessEqual[z, 4.3e-9], N[(x * N[(N[(z / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{+60}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-9}:\\
\;\;\;\;x \cdot \left(\frac{z}{a} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.3999999999999999e60 or 4.29999999999999963e-9 < z Initial program 67.4%
Taylor expanded in z around inf
Simplified51.5%
if -5.3999999999999999e60 < z < 4.29999999999999963e-9Initial program 90.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.7%
Simplified67.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
--lowering--.f6433.2%
Simplified33.2%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f6436.4%
Simplified36.4%
Final simplification43.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.5e+60) t (if (<= z 0.00106) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+60) {
tmp = t;
} else if (z <= 0.00106) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4.5d+60)) then
tmp = t
else if (z <= 0.00106d0) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+60) {
tmp = t;
} else if (z <= 0.00106) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.5e+60: tmp = t elif z <= 0.00106: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.5e+60) tmp = t; elseif (z <= 0.00106) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.5e+60) tmp = t; elseif (z <= 0.00106) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e+60], t, If[LessEqual[z, 0.00106], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+60}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 0.00106:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.50000000000000013e60 or 0.00105999999999999996 < z Initial program 67.1%
Taylor expanded in z around inf
Simplified51.9%
if -4.50000000000000013e60 < z < 0.00105999999999999996Initial program 90.2%
Taylor expanded in a around inf
Simplified33.5%
(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 79.0%
Taylor expanded in z around inf
Simplified28.0%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 79.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6445.0%
Simplified45.0%
Taylor expanded in z around inf
Simplified2.8%
metadata-evalN/A
mul0-rgt2.8%
Applied egg-rr2.8%
herbie shell --seed 2024138
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))