
(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 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(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 (* (- t x) (/ (- y z) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 -1e-302)
t_1
(if (<= t_2 0.0) (+ 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 - x) * ((y - z) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -1e-302) {
tmp = t_1;
} else if (t_2 <= 0.0) {
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) :: 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-302)) then
tmp = t_1
else if (t_2 <= 0.0d0) 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 - x) * ((y - z) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -1e-302) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t + (((t - x) * (a - y)) / 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-302: tmp = t_1 elif t_2 <= 0.0: tmp = t + (((t - x) * (a - y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= -1e-302) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * ((y - z) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -1e-302) tmp = t_1; elseif (t_2 <= 0.0) tmp = t + (((t - x) * (a - y)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-302], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.9999999999999996e-303 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 72.4%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.6%
Applied egg-rr87.6%
if -9.9999999999999996e-303 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.5%
Simplified99.5%
Final simplification88.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (+ (/ (- a y) z) 1.0)))
(t_2 (+ x (* t (/ (- y z) a))))
(t_3 (* y (/ (- t x) (- a z)))))
(if (<= a -1.9e+116)
t_2
(if (<= a -5.7e-106)
t_1
(if (<= a -4.3e-145)
t_3
(if (<= a 2.85e-154) t_1 (if (<= a 7e-8) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (((a - y) / z) + 1.0);
double t_2 = x + (t * ((y - z) / a));
double t_3 = y * ((t - x) / (a - z));
double tmp;
if (a <= -1.9e+116) {
tmp = t_2;
} else if (a <= -5.7e-106) {
tmp = t_1;
} else if (a <= -4.3e-145) {
tmp = t_3;
} else if (a <= 2.85e-154) {
tmp = t_1;
} else if (a <= 7e-8) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = t * (((a - y) / z) + 1.0d0)
t_2 = x + (t * ((y - z) / a))
t_3 = y * ((t - x) / (a - z))
if (a <= (-1.9d+116)) then
tmp = t_2
else if (a <= (-5.7d-106)) then
tmp = t_1
else if (a <= (-4.3d-145)) then
tmp = t_3
else if (a <= 2.85d-154) then
tmp = t_1
else if (a <= 7d-8) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (((a - y) / z) + 1.0);
double t_2 = x + (t * ((y - z) / a));
double t_3 = y * ((t - x) / (a - z));
double tmp;
if (a <= -1.9e+116) {
tmp = t_2;
} else if (a <= -5.7e-106) {
tmp = t_1;
} else if (a <= -4.3e-145) {
tmp = t_3;
} else if (a <= 2.85e-154) {
tmp = t_1;
} else if (a <= 7e-8) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (((a - y) / z) + 1.0) t_2 = x + (t * ((y - z) / a)) t_3 = y * ((t - x) / (a - z)) tmp = 0 if a <= -1.9e+116: tmp = t_2 elif a <= -5.7e-106: tmp = t_1 elif a <= -4.3e-145: tmp = t_3 elif a <= 2.85e-154: tmp = t_1 elif a <= 7e-8: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(Float64(a - y) / z) + 1.0)) t_2 = Float64(x + Float64(t * Float64(Float64(y - z) / a))) t_3 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (a <= -1.9e+116) tmp = t_2; elseif (a <= -5.7e-106) tmp = t_1; elseif (a <= -4.3e-145) tmp = t_3; elseif (a <= 2.85e-154) tmp = t_1; elseif (a <= 7e-8) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (((a - y) / z) + 1.0); t_2 = x + (t * ((y - z) / a)); t_3 = y * ((t - x) / (a - z)); tmp = 0.0; if (a <= -1.9e+116) tmp = t_2; elseif (a <= -5.7e-106) tmp = t_1; elseif (a <= -4.3e-145) tmp = t_3; elseif (a <= 2.85e-154) tmp = t_1; elseif (a <= 7e-8) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+116], t$95$2, If[LessEqual[a, -5.7e-106], t$95$1, If[LessEqual[a, -4.3e-145], t$95$3, If[LessEqual[a, 2.85e-154], t$95$1, If[LessEqual[a, 7e-8], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(\frac{a - y}{z} + 1\right)\\
t_2 := x + t \cdot \frac{y - z}{a}\\
t_3 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+116}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.7 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.3 \cdot 10^{-145}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 2.85 \cdot 10^{-154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-8}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.8999999999999999e116 or 7.00000000000000048e-8 < a Initial program 68.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6489.9%
Applied egg-rr89.9%
Taylor expanded in t around inf
Simplified77.7%
Taylor expanded in a around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6467.1%
Simplified67.1%
if -1.8999999999999999e116 < a < -5.7000000000000004e-106 or -4.2999999999999999e-145 < a < 2.8499999999999999e-154Initial program 60.0%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.7%
Simplified76.7%
Taylor expanded in t around -inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6459.1%
Simplified59.1%
if -5.7000000000000004e-106 < a < -4.2999999999999999e-145 or 2.8499999999999999e-154 < a < 7.00000000000000048e-8Initial program 83.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6468.7%
Simplified68.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6473.5%
Applied egg-rr73.5%
Final simplification65.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (/ (- t x) z) (- a y)))))
(if (<= z -4.7e+54)
t_1
(if (<= z -5.2e-163)
(+ x (* t (/ (- y z) (- a z))))
(if (<= z 2.9e+38) (+ x (* (- y z) (/ (- t x) a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (((t - x) / z) * (a - y));
double tmp;
if (z <= -4.7e+54) {
tmp = t_1;
} else if (z <= -5.2e-163) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (z <= 2.9e+38) {
tmp = x + ((y - z) * ((t - x) / 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 + (((t - x) / z) * (a - y))
if (z <= (-4.7d+54)) then
tmp = t_1
else if (z <= (-5.2d-163)) then
tmp = x + (t * ((y - z) / (a - z)))
else if (z <= 2.9d+38) then
tmp = x + ((y - z) * ((t - x) / 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 + (((t - x) / z) * (a - y));
double tmp;
if (z <= -4.7e+54) {
tmp = t_1;
} else if (z <= -5.2e-163) {
tmp = x + (t * ((y - z) / (a - z)));
} else if (z <= 2.9e+38) {
tmp = x + ((y - z) * ((t - x) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (((t - x) / z) * (a - y)) tmp = 0 if z <= -4.7e+54: tmp = t_1 elif z <= -5.2e-163: tmp = x + (t * ((y - z) / (a - z))) elif z <= 2.9e+38: tmp = x + ((y - z) * ((t - x) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(Float64(t - x) / z) * Float64(a - y))) tmp = 0.0 if (z <= -4.7e+54) tmp = t_1; elseif (z <= -5.2e-163) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); elseif (z <= 2.9e+38) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (((t - x) / z) * (a - y)); tmp = 0.0; if (z <= -4.7e+54) tmp = t_1; elseif (z <= -5.2e-163) tmp = x + (t * ((y - z) / (a - z))); elseif (z <= 2.9e+38) tmp = x + ((y - z) * ((t - x) / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.7e+54], t$95$1, If[LessEqual[z, -5.2e-163], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+38], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{t - x}{z} \cdot \left(a - y\right)\\
\mathbf{if}\;z \leq -4.7 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-163}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+38}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.69999999999999993e54 or 2.90000000000000007e38 < z Initial program 38.9%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6460.6%
Simplified60.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6476.9%
Applied egg-rr76.9%
if -4.69999999999999993e54 < z < -5.20000000000000003e-163Initial program 83.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.8%
Applied egg-rr90.8%
Taylor expanded in t around inf
Simplified75.5%
if -5.20000000000000003e-163 < z < 2.90000000000000007e38Initial program 93.6%
Taylor expanded in a around inf
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6482.8%
Simplified82.8%
Final simplification78.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) (- a z)))))
(if (<= y -9.5e+129)
t_1
(if (<= y -9.5e-43)
(+ x (* (- t x) (/ y a)))
(if (<= y 2.2e+64) (+ x (* t (/ z (- z a)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -9.5e+129) {
tmp = t_1;
} else if (y <= -9.5e-43) {
tmp = x + ((t - x) * (y / a));
} else if (y <= 2.2e+64) {
tmp = x + (t * (z / (z - a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((t - x) / (a - z))
if (y <= (-9.5d+129)) then
tmp = t_1
else if (y <= (-9.5d-43)) then
tmp = x + ((t - x) * (y / a))
else if (y <= 2.2d+64) then
tmp = x + (t * (z / (z - a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -9.5e+129) {
tmp = t_1;
} else if (y <= -9.5e-43) {
tmp = x + ((t - x) * (y / a));
} else if (y <= 2.2e+64) {
tmp = x + (t * (z / (z - a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -9.5e+129: tmp = t_1 elif y <= -9.5e-43: tmp = x + ((t - x) * (y / a)) elif y <= 2.2e+64: tmp = x + (t * (z / (z - a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -9.5e+129) tmp = t_1; elseif (y <= -9.5e-43) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (y <= 2.2e+64) tmp = Float64(x + Float64(t * Float64(z / Float64(z - a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -9.5e+129) tmp = t_1; elseif (y <= -9.5e-43) tmp = x + ((t - x) * (y / a)); elseif (y <= 2.2e+64) tmp = x + (t * (z / (z - a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+129], t$95$1, If[LessEqual[y, -9.5e-43], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+64], N[(x + N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-43}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+64}:\\
\;\;\;\;x + t \cdot \frac{z}{z - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000004e129 or 2.20000000000000002e64 < y Initial program 68.0%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6465.7%
Simplified65.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6479.9%
Applied egg-rr79.9%
if -9.5000000000000004e129 < y < -9.50000000000000044e-43Initial program 68.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6478.9%
Applied egg-rr78.9%
Taylor expanded in z around 0
/-lowering-/.f6461.0%
Simplified61.0%
if -9.50000000000000044e-43 < y < 2.20000000000000002e64Initial program 67.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.9%
Applied egg-rr80.9%
Taylor expanded in t around inf
Simplified74.4%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6469.0%
Simplified69.0%
Final simplification71.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) (- a z)))))
(if (<= y -2.2e+130)
t_1
(if (<= y 7e+64) (+ x (* t (/ (- y z) (- a z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.2e+130) {
tmp = t_1;
} else if (y <= 7e+64) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((t - x) / (a - z))
if (y <= (-2.2d+130)) then
tmp = t_1
else if (y <= 7d+64) then
tmp = x + (t * ((y - z) / (a - z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.2e+130) {
tmp = t_1;
} else if (y <= 7e+64) {
tmp = x + (t * ((y - z) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -2.2e+130: tmp = t_1 elif y <= 7e+64: tmp = x + (t * ((y - z) / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -2.2e+130) tmp = t_1; elseif (y <= 7e+64) tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -2.2e+130) tmp = t_1; elseif (y <= 7e+64) tmp = x + (t * ((y - z) / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+130], t$95$1, If[LessEqual[y, 7e+64], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+64}:\\
\;\;\;\;x + t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.19999999999999993e130 or 6.9999999999999997e64 < y Initial program 68.0%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6465.7%
Simplified65.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6479.9%
Applied egg-rr79.9%
if -2.19999999999999993e130 < y < 6.9999999999999997e64Initial program 67.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.5%
Applied egg-rr80.5%
Taylor expanded in t around inf
Simplified72.4%
Final simplification74.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.5e-74) (* t (- 1.0 (/ y z))) (if (<= z 2e+47) (+ x (* (- t x) (/ y a))) (* t (+ (/ (- a y) z) 1.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.5e-74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 2e+47) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t * (((a - y) / z) + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.5d-74)) then
tmp = t * (1.0d0 - (y / z))
else if (z <= 2d+47) then
tmp = x + ((t - x) * (y / a))
else
tmp = t * (((a - y) / z) + 1.0d0)
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.5e-74) {
tmp = t * (1.0 - (y / z));
} else if (z <= 2e+47) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t * (((a - y) / z) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.5e-74: tmp = t * (1.0 - (y / z)) elif z <= 2e+47: tmp = x + ((t - x) * (y / a)) else: tmp = t * (((a - y) / z) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.5e-74) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (z <= 2e+47) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t * Float64(Float64(Float64(a - y) / z) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.5e-74) tmp = t * (1.0 - (y / z)); elseif (z <= 2e+47) tmp = x + ((t - x) * (y / a)); else tmp = t * (((a - y) / z) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.5e-74], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+47], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{-74}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+47}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\frac{a - y}{z} + 1\right)\\
\end{array}
\end{array}
if z < -2.49999999999999999e-74Initial program 53.2%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f6446.6%
Simplified46.6%
Taylor expanded in x around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6446.7%
Simplified46.7%
if -2.49999999999999999e-74 < z < 2.0000000000000001e47Initial program 90.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.5%
Applied egg-rr93.5%
Taylor expanded in z around 0
/-lowering-/.f6478.4%
Simplified78.4%
if 2.0000000000000001e47 < z Initial program 41.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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6459.4%
Simplified59.4%
Taylor expanded in t around -inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6453.5%
Simplified53.5%
Final simplification62.8%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ (- t x) (- a z))))) (if (<= y -2.4e-42) t_1 (if (<= y 7e+63) (+ x t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.4e-42) {
tmp = t_1;
} else if (y <= 7e+63) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((t - x) / (a - z))
if (y <= (-2.4d-42)) then
tmp = t_1
else if (y <= 7d+63) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.4e-42) {
tmp = t_1;
} else if (y <= 7e+63) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -2.4e-42: tmp = t_1 elif y <= 7e+63: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -2.4e-42) tmp = t_1; elseif (y <= 7e+63) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -2.4e-42) tmp = t_1; elseif (y <= 7e+63) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e-42], t$95$1, If[LessEqual[y, 7e+63], N[(x + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+63}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.40000000000000003e-42 or 7.00000000000000059e63 < y Initial program 68.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.8%
Simplified57.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6468.9%
Applied egg-rr68.9%
if -2.40000000000000003e-42 < y < 7.00000000000000059e63Initial program 67.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.9%
Applied egg-rr80.9%
Taylor expanded in t around inf
Simplified74.4%
Taylor expanded in z around inf
Simplified50.0%
Final simplification58.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* (- t x) (/ y (- a z))))) (if (<= y -1.2e-43) t_1 (if (<= y 9.2e+63) (+ x t) 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 (y <= -1.2e-43) {
tmp = t_1;
} else if (y <= 9.2e+63) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (t - x) * (y / (a - z))
if (y <= (-1.2d-43)) then
tmp = t_1
else if (y <= 9.2d+63) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double tmp;
if (y <= -1.2e-43) {
tmp = t_1;
} else if (y <= 9.2e+63) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) tmp = 0 if y <= -1.2e-43: tmp = t_1 elif y <= 9.2e+63: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -1.2e-43) tmp = t_1; elseif (y <= 9.2e+63) tmp = Float64(x + t); 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 (y <= -1.2e-43) tmp = t_1; elseif (y <= 9.2e+63) tmp = x + t; else tmp = t_1; 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]}, If[LessEqual[y, -1.2e-43], t$95$1, If[LessEqual[y, 9.2e+63], N[(x + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -1.2 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+63}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.2000000000000001e-43 or 9.19999999999999973e63 < y Initial program 68.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.8%
Simplified57.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6467.9%
Applied egg-rr67.9%
if -1.2000000000000001e-43 < y < 9.19999999999999973e63Initial program 67.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.9%
Applied egg-rr80.9%
Taylor expanded in t around inf
Simplified74.4%
Taylor expanded in z around inf
Simplified50.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.9e+116) x (if (<= a 1.95e-36) (* t (+ (/ (- a y) z) 1.0)) (+ x (/ (* y t) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.9e+116) {
tmp = x;
} else if (a <= 1.95e-36) {
tmp = t * (((a - y) / z) + 1.0);
} else {
tmp = x + ((y * t) / 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.9d+116)) then
tmp = x
else if (a <= 1.95d-36) then
tmp = t * (((a - y) / z) + 1.0d0)
else
tmp = x + ((y * t) / 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.9e+116) {
tmp = x;
} else if (a <= 1.95e-36) {
tmp = t * (((a - y) / z) + 1.0);
} else {
tmp = x + ((y * t) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.9e+116: tmp = x elif a <= 1.95e-36: tmp = t * (((a - y) / z) + 1.0) else: tmp = x + ((y * t) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.9e+116) tmp = x; elseif (a <= 1.95e-36) tmp = Float64(t * Float64(Float64(Float64(a - y) / z) + 1.0)); else tmp = Float64(x + Float64(Float64(y * t) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.9e+116) tmp = x; elseif (a <= 1.95e-36) tmp = t * (((a - y) / z) + 1.0); else tmp = x + ((y * t) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.9e+116], x, If[LessEqual[a, 1.95e-36], N[(t * N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-36}:\\
\;\;\;\;t \cdot \left(\frac{a - y}{z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\end{array}
\end{array}
if a < -1.8999999999999999e116Initial program 60.9%
Taylor expanded in a around inf
Simplified55.1%
if -1.8999999999999999e116 < a < 1.95e-36Initial program 65.8%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6469.4%
Simplified69.4%
Taylor expanded in t around -inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6451.3%
Simplified51.3%
if 1.95e-36 < a Initial program 73.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.5%
Applied egg-rr90.5%
Taylor expanded in t around inf
Simplified77.4%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Final simplification53.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.9e+116) x (if (<= a 2.1e-36) (* t (- 1.0 (/ y z))) (+ x (/ (* y t) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.9e+116) {
tmp = x;
} else if (a <= 2.1e-36) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + ((y * t) / 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.9d+116)) then
tmp = x
else if (a <= 2.1d-36) then
tmp = t * (1.0d0 - (y / z))
else
tmp = x + ((y * t) / 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.9e+116) {
tmp = x;
} else if (a <= 2.1e-36) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + ((y * t) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.9e+116: tmp = x elif a <= 2.1e-36: tmp = t * (1.0 - (y / z)) else: tmp = x + ((y * t) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.9e+116) tmp = x; elseif (a <= 2.1e-36) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(x + Float64(Float64(y * t) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.9e+116) tmp = x; elseif (a <= 2.1e-36) tmp = t * (1.0 - (y / z)); else tmp = x + ((y * t) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.9e+116], x, If[LessEqual[a, 2.1e-36], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-36}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\end{array}
\end{array}
if a < -1.8999999999999999e116Initial program 60.9%
Taylor expanded in a around inf
Simplified55.1%
if -1.8999999999999999e116 < a < 2.09999999999999991e-36Initial program 65.8%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f6452.9%
Simplified52.9%
Taylor expanded in x around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6451.2%
Simplified51.2%
if 2.09999999999999991e-36 < a Initial program 73.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6490.5%
Applied egg-rr90.5%
Taylor expanded in t around inf
Simplified77.4%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Final simplification53.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ (- t x) a)))) (if (<= y -5.8e+117) t_1 (if (<= y 3.3e+106) (+ x t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / a);
double tmp;
if (y <= -5.8e+117) {
tmp = t_1;
} else if (y <= 3.3e+106) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((t - x) / a)
if (y <= (-5.8d+117)) then
tmp = t_1
else if (y <= 3.3d+106) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / a);
double tmp;
if (y <= -5.8e+117) {
tmp = t_1;
} else if (y <= 3.3e+106) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / a) tmp = 0 if y <= -5.8e+117: tmp = t_1 elif y <= 3.3e+106: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / a)) tmp = 0.0 if (y <= -5.8e+117) tmp = t_1; elseif (y <= 3.3e+106) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / a); tmp = 0.0; if (y <= -5.8e+117) tmp = t_1; elseif (y <= 3.3e+106) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+117], t$95$1, If[LessEqual[y, 3.3e+106], N[(x + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a}\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+106}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.80000000000000055e117 or 3.30000000000000008e106 < y Initial program 67.5%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6465.1%
Simplified65.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6450.1%
Simplified50.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6457.9%
Applied egg-rr57.9%
if -5.80000000000000055e117 < y < 3.30000000000000008e106Initial program 68.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.7%
Applied egg-rr80.7%
Taylor expanded in t around inf
Simplified71.8%
Taylor expanded in z around inf
Simplified47.2%
Final simplification50.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.3e+116) x (if (<= a 0.0048) (* t (- 1.0 (/ y z))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.3e+116) {
tmp = x;
} else if (a <= 0.0048) {
tmp = t * (1.0 - (y / z));
} 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 <= (-4.3d+116)) then
tmp = x
else if (a <= 0.0048d0) then
tmp = t * (1.0d0 - (y / z))
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 <= -4.3e+116) {
tmp = x;
} else if (a <= 0.0048) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.3e+116: tmp = x elif a <= 0.0048: tmp = t * (1.0 - (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.3e+116) tmp = x; elseif (a <= 0.0048) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.3e+116) tmp = x; elseif (a <= 0.0048) tmp = t * (1.0 - (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.3e+116], x, If[LessEqual[a, 0.0048], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.3 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 0.0048:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.3e116 or 0.00479999999999999958 < a Initial program 68.8%
Taylor expanded in a around inf
Simplified46.8%
if -4.3e116 < a < 0.00479999999999999958Initial program 67.1%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f6451.4%
Simplified51.4%
Taylor expanded in x around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6449.3%
Simplified49.3%
(FPCore (x y z t a) :precision binary64 (if (<= y -2.1e+122) (/ t (/ a y)) (if (<= y 6.6e+155) (+ x t) (/ (* x (- 0.0 y)) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.1e+122) {
tmp = t / (a / y);
} else if (y <= 6.6e+155) {
tmp = x + t;
} else {
tmp = (x * (0.0 - y)) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-2.1d+122)) then
tmp = t / (a / y)
else if (y <= 6.6d+155) then
tmp = x + t
else
tmp = (x * (0.0d0 - y)) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.1e+122) {
tmp = t / (a / y);
} else if (y <= 6.6e+155) {
tmp = x + t;
} else {
tmp = (x * (0.0 - y)) / a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.1e+122: tmp = t / (a / y) elif y <= 6.6e+155: tmp = x + t else: tmp = (x * (0.0 - y)) / a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.1e+122) tmp = Float64(t / Float64(a / y)); elseif (y <= 6.6e+155) tmp = Float64(x + t); else tmp = Float64(Float64(x * Float64(0.0 - y)) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.1e+122) tmp = t / (a / y); elseif (y <= 6.6e+155) tmp = x + t; else tmp = (x * (0.0 - y)) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.1e+122], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e+155], N[(x + t), $MachinePrecision], N[(N[(x * N[(0.0 - y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+122}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+155}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(0 - y\right)}{a}\\
\end{array}
\end{array}
if y < -2.10000000000000016e122Initial program 66.6%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.9%
Simplified63.9%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6443.4%
Simplified43.4%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6434.2%
Simplified34.2%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6434.2%
Applied egg-rr34.2%
if -2.10000000000000016e122 < y < 6.5999999999999997e155Initial program 67.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6481.3%
Applied egg-rr81.3%
Taylor expanded in t around inf
Simplified71.2%
Taylor expanded in z around inf
Simplified46.9%
if 6.5999999999999997e155 < y Initial program 71.2%
Taylor expanded in y around inf
div-subN/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
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6450.2%
Simplified50.2%
Taylor expanded in a around inf
Simplified43.7%
Final simplification44.8%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ t (/ a y)))) (if (<= y -8e+122) t_1 (if (<= y 4.5e+138) (+ x t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a / y);
double tmp;
if (y <= -8e+122) {
tmp = t_1;
} else if (y <= 4.5e+138) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t / (a / y)
if (y <= (-8d+122)) then
tmp = t_1
else if (y <= 4.5d+138) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a / y);
double tmp;
if (y <= -8e+122) {
tmp = t_1;
} else if (y <= 4.5e+138) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a / y) tmp = 0 if y <= -8e+122: tmp = t_1 elif y <= 4.5e+138: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a / y)) tmp = 0.0 if (y <= -8e+122) tmp = t_1; elseif (y <= 4.5e+138) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a / y); tmp = 0.0; if (y <= -8e+122) tmp = t_1; elseif (y <= 4.5e+138) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8e+122], t$95$1, If[LessEqual[y, 4.5e+138], N[(x + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;y \leq -8 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+138}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.00000000000000012e122 or 4.49999999999999982e138 < y Initial program 67.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6466.7%
Simplified66.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6451.9%
Simplified51.9%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6434.1%
Simplified34.1%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6434.1%
Applied egg-rr34.1%
if -8.00000000000000012e122 < y < 4.49999999999999982e138Initial program 67.9%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6481.2%
Applied egg-rr81.2%
Taylor expanded in t around inf
Simplified71.0%
Taylor expanded in z around inf
Simplified47.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* t (/ y a)))) (if (<= y -8.2e+121) t_1 (if (<= y 2.65e+138) (+ x t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / a);
double tmp;
if (y <= -8.2e+121) {
tmp = t_1;
} else if (y <= 2.65e+138) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / a)
if (y <= (-8.2d+121)) then
tmp = t_1
else if (y <= 2.65d+138) then
tmp = x + t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / a);
double tmp;
if (y <= -8.2e+121) {
tmp = t_1;
} else if (y <= 2.65e+138) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / a) tmp = 0 if y <= -8.2e+121: tmp = t_1 elif y <= 2.65e+138: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / a)) tmp = 0.0 if (y <= -8.2e+121) tmp = t_1; elseif (y <= 2.65e+138) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / a); tmp = 0.0; if (y <= -8.2e+121) tmp = t_1; elseif (y <= 2.65e+138) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.2e+121], t$95$1, If[LessEqual[y, 2.65e+138], N[(x + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a}\\
\mathbf{if}\;y \leq -8.2 \cdot 10^{+121}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+138}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.2e121 or 2.64999999999999992e138 < y Initial program 67.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6466.7%
Simplified66.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6451.9%
Simplified51.9%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6434.1%
Simplified34.1%
if -8.2e121 < y < 2.64999999999999992e138Initial program 67.9%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6481.2%
Applied egg-rr81.2%
Taylor expanded in t around inf
Simplified71.0%
Taylor expanded in z around inf
Simplified47.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.9e+116) x (if (<= a 0.09) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.9e+116) {
tmp = x;
} else if (a <= 0.09) {
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 <= (-1.9d+116)) then
tmp = x
else if (a <= 0.09d0) 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 <= -1.9e+116) {
tmp = x;
} else if (a <= 0.09) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.9e+116: tmp = x elif a <= 0.09: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.9e+116) tmp = x; elseif (a <= 0.09) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.9e+116) tmp = x; elseif (a <= 0.09) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.9e+116], x, If[LessEqual[a, 0.09], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{+116}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 0.09:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.8999999999999999e116 or 0.089999999999999997 < a Initial program 68.8%
Taylor expanded in a around inf
Simplified46.8%
if -1.8999999999999999e116 < a < 0.089999999999999997Initial program 67.1%
Taylor expanded in z around inf
Simplified38.0%
(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 67.9%
Taylor expanded in z around inf
Simplified27.8%
(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 2024152
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
(+ x (/ (* (- y z) (- t x)) (- a z))))