
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (fma y (/ (- t z) (- a z)) x))
double code(double x, double y, double z, double t, double a) {
return fma(y, ((t - z) / (a - z)), x);
}
function code(x, y, z, t, a) return fma(y, Float64(Float64(t - z) / Float64(a - z)), x) end
code[x_, y_, z_, t_, a_] := N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, \frac{t - z}{a - z}, x\right)
\end{array}
Initial program 98.0%
+-commutative98.0%
fma-define98.1%
Simplified98.1%
Final simplification98.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7.2e-61)
(+ x (* y (- 1.0 (/ t z))))
(if (<= z -1.8e-87)
(+ x (* y (/ z (- z a))))
(if (<= z -2.9e-124)
(- x (/ t (/ z y)))
(if (<= z 3.1e-21) (+ x (/ t (/ a y))) (+ x (* y (/ (- z t) z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.2e-61) {
tmp = x + (y * (1.0 - (t / z)));
} else if (z <= -1.8e-87) {
tmp = x + (y * (z / (z - a)));
} else if (z <= -2.9e-124) {
tmp = x - (t / (z / y));
} else if (z <= 3.1e-21) {
tmp = x + (t / (a / y));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-7.2d-61)) then
tmp = x + (y * (1.0d0 - (t / z)))
else if (z <= (-1.8d-87)) then
tmp = x + (y * (z / (z - a)))
else if (z <= (-2.9d-124)) then
tmp = x - (t / (z / y))
else if (z <= 3.1d-21) then
tmp = x + (t / (a / y))
else
tmp = x + (y * ((z - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.2e-61) {
tmp = x + (y * (1.0 - (t / z)));
} else if (z <= -1.8e-87) {
tmp = x + (y * (z / (z - a)));
} else if (z <= -2.9e-124) {
tmp = x - (t / (z / y));
} else if (z <= 3.1e-21) {
tmp = x + (t / (a / y));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.2e-61: tmp = x + (y * (1.0 - (t / z))) elif z <= -1.8e-87: tmp = x + (y * (z / (z - a))) elif z <= -2.9e-124: tmp = x - (t / (z / y)) elif z <= 3.1e-21: tmp = x + (t / (a / y)) else: tmp = x + (y * ((z - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.2e-61) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))); elseif (z <= -1.8e-87) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); elseif (z <= -2.9e-124) tmp = Float64(x - Float64(t / Float64(z / y))); elseif (z <= 3.1e-21) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.2e-61) tmp = x + (y * (1.0 - (t / z))); elseif (z <= -1.8e-87) tmp = x + (y * (z / (z - a))); elseif (z <= -2.9e-124) tmp = x - (t / (z / y)); elseif (z <= 3.1e-21) tmp = x + (t / (a / y)); else tmp = x + (y * ((z - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.2e-61], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-87], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.9e-124], N[(x - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-21], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{-61}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-87}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-124}:\\
\;\;\;\;x - \frac{t}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-21}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\end{array}
\end{array}
if z < -7.20000000000000028e-61Initial program 99.9%
Taylor expanded in a around 0 69.1%
associate-/l*81.5%
div-sub81.5%
*-inverses81.5%
Simplified81.5%
if -7.20000000000000028e-61 < z < -1.79999999999999996e-87Initial program 99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in t around 0 82.1%
+-commutative82.1%
associate-/l*82.3%
Simplified82.3%
if -1.79999999999999996e-87 < z < -2.9000000000000002e-124Initial program 99.3%
clear-num99.6%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around inf 99.6%
mul-1-neg99.6%
*-rgt-identity99.6%
times-frac99.3%
/-rgt-identity99.3%
associate-/r/100.0%
distribute-frac-neg100.0%
Simplified100.0%
Taylor expanded in z around inf 86.4%
if -2.9000000000000002e-124 < z < 3.0999999999999998e-21Initial program 95.5%
+-commutative95.5%
fma-define95.5%
Simplified95.5%
Taylor expanded in z around 0 85.3%
+-commutative85.3%
associate-/l*86.2%
Simplified86.2%
clear-num86.2%
un-div-inv86.2%
Applied egg-rr86.2%
if 3.0999999999999998e-21 < z Initial program 100.0%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 65.5%
associate-/l*86.9%
Simplified86.9%
Final simplification84.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.65e+115)
(+ y x)
(if (<= z -9e+16)
(+ x (* y (/ t a)))
(if (or (<= z -530000000.0) (not (<= z 880000000.0)))
(+ y x)
(+ x (/ (* y t) a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+115) {
tmp = y + x;
} else if (z <= -9e+16) {
tmp = x + (y * (t / a));
} else if ((z <= -530000000.0) || !(z <= 880000000.0)) {
tmp = y + x;
} 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 (z <= (-1.65d+115)) then
tmp = y + x
else if (z <= (-9d+16)) then
tmp = x + (y * (t / a))
else if ((z <= (-530000000.0d0)) .or. (.not. (z <= 880000000.0d0))) then
tmp = y + x
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 (z <= -1.65e+115) {
tmp = y + x;
} else if (z <= -9e+16) {
tmp = x + (y * (t / a));
} else if ((z <= -530000000.0) || !(z <= 880000000.0)) {
tmp = y + x;
} else {
tmp = x + ((y * t) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.65e+115: tmp = y + x elif z <= -9e+16: tmp = x + (y * (t / a)) elif (z <= -530000000.0) or not (z <= 880000000.0): tmp = y + x else: tmp = x + ((y * t) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.65e+115) tmp = Float64(y + x); elseif (z <= -9e+16) tmp = Float64(x + Float64(y * Float64(t / a))); elseif ((z <= -530000000.0) || !(z <= 880000000.0)) tmp = Float64(y + x); 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 (z <= -1.65e+115) tmp = y + x; elseif (z <= -9e+16) tmp = x + (y * (t / a)); elseif ((z <= -530000000.0) || ~((z <= 880000000.0))) tmp = y + x; else tmp = x + ((y * t) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.65e+115], N[(y + x), $MachinePrecision], If[LessEqual[z, -9e+16], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -530000000.0], N[Not[LessEqual[z, 880000000.0]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+115}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;z \leq -9 \cdot 10^{+16}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq -530000000 \lor \neg \left(z \leq 880000000\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\end{array}
\end{array}
if z < -1.65000000000000003e115 or -9e16 < z < -5.3e8 or 8.8e8 < z Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 80.2%
+-commutative80.2%
Simplified80.2%
if -1.65000000000000003e115 < z < -9e16Initial program 99.9%
Taylor expanded in z around 0 54.5%
*-commutative54.5%
associate-/l*59.7%
Simplified59.7%
if -5.3e8 < z < 8.8e8Initial program 96.6%
Taylor expanded in z around 0 77.1%
Final simplification77.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -75000000.0)
(+ x (* t (/ y a)))
(if (<= a -6.2e-123)
(+ y x)
(if (<= a -8.2e-189)
(* t (/ y (- a z)))
(if (<= a 5.5e-145) (- x (/ t (/ z y))) (+ x (* y (/ t a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -75000000.0) {
tmp = x + (t * (y / a));
} else if (a <= -6.2e-123) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 5.5e-145) {
tmp = x - (t / (z / y));
} 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 <= (-75000000.0d0)) then
tmp = x + (t * (y / a))
else if (a <= (-6.2d-123)) then
tmp = y + x
else if (a <= (-8.2d-189)) then
tmp = t * (y / (a - z))
else if (a <= 5.5d-145) then
tmp = x - (t / (z / y))
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 <= -75000000.0) {
tmp = x + (t * (y / a));
} else if (a <= -6.2e-123) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 5.5e-145) {
tmp = x - (t / (z / y));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -75000000.0: tmp = x + (t * (y / a)) elif a <= -6.2e-123: tmp = y + x elif a <= -8.2e-189: tmp = t * (y / (a - z)) elif a <= 5.5e-145: tmp = x - (t / (z / y)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -75000000.0) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= -6.2e-123) tmp = Float64(y + x); elseif (a <= -8.2e-189) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (a <= 5.5e-145) tmp = Float64(x - Float64(t / Float64(z / y))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -75000000.0) tmp = x + (t * (y / a)); elseif (a <= -6.2e-123) tmp = y + x; elseif (a <= -8.2e-189) tmp = t * (y / (a - z)); elseif (a <= 5.5e-145) tmp = x - (t / (z / y)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -75000000.0], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-123], N[(y + x), $MachinePrecision], If[LessEqual[a, -8.2e-189], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-145], N[(x - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -75000000:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-123}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-189}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-145}:\\
\;\;\;\;x - \frac{t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if a < -7.5e7Initial program 98.4%
+-commutative98.4%
fma-define98.5%
Simplified98.5%
Taylor expanded in z around 0 71.4%
+-commutative71.4%
associate-/l*72.8%
Simplified72.8%
if -7.5e7 < a < -6.19999999999999996e-123Initial program 100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around inf 69.5%
+-commutative69.5%
Simplified69.5%
if -6.19999999999999996e-123 < a < -8.2000000000000006e-189Initial program 93.8%
clear-num93.9%
un-div-inv93.7%
Applied egg-rr93.7%
Taylor expanded in t around inf 80.0%
mul-1-neg80.0%
*-rgt-identity80.0%
times-frac79.5%
/-rgt-identity79.5%
associate-/r/85.8%
distribute-frac-neg85.8%
Simplified85.8%
Taylor expanded in x around 0 80.0%
metadata-eval80.0%
associate-*r/85.7%
cancel-sign-sub-inv85.7%
*-lft-identity85.7%
Simplified85.7%
Taylor expanded in x around 0 61.9%
mul-1-neg61.9%
associate-/l*67.7%
distribute-lft-neg-in67.7%
Simplified67.7%
if -8.2000000000000006e-189 < a < 5.50000000000000015e-145Initial program 98.2%
clear-num98.2%
un-div-inv98.2%
Applied egg-rr98.2%
Taylor expanded in t around inf 77.6%
mul-1-neg77.6%
*-rgt-identity77.6%
times-frac80.0%
/-rgt-identity80.0%
associate-/r/81.8%
distribute-frac-neg81.8%
Simplified81.8%
Taylor expanded in z around inf 71.5%
if 5.50000000000000015e-145 < a Initial program 98.1%
Taylor expanded in t around inf 84.4%
mul-1-neg84.4%
associate-/l*87.2%
Simplified87.2%
Taylor expanded in z around 0 78.3%
cancel-sign-sub-inv78.3%
metadata-eval78.3%
*-lft-identity78.3%
+-commutative78.3%
*-commutative78.3%
associate-*r/80.3%
Simplified80.3%
Final simplification74.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -24500000.0)
(+ x (* t (/ y a)))
(if (<= a -1e-122)
(+ y x)
(if (<= a -8.2e-189)
(* t (/ y (- a z)))
(if (<= a 3.4e-143) (- x (* t (/ y z))) (+ x (* y (/ t a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -24500000.0) {
tmp = x + (t * (y / a));
} else if (a <= -1e-122) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 3.4e-143) {
tmp = x - (t * (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 <= (-24500000.0d0)) then
tmp = x + (t * (y / a))
else if (a <= (-1d-122)) then
tmp = y + x
else if (a <= (-8.2d-189)) then
tmp = t * (y / (a - z))
else if (a <= 3.4d-143) then
tmp = x - (t * (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 <= -24500000.0) {
tmp = x + (t * (y / a));
} else if (a <= -1e-122) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 3.4e-143) {
tmp = x - (t * (y / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -24500000.0: tmp = x + (t * (y / a)) elif a <= -1e-122: tmp = y + x elif a <= -8.2e-189: tmp = t * (y / (a - z)) elif a <= 3.4e-143: tmp = x - (t * (y / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -24500000.0) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= -1e-122) tmp = Float64(y + x); elseif (a <= -8.2e-189) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (a <= 3.4e-143) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -24500000.0) tmp = x + (t * (y / a)); elseif (a <= -1e-122) tmp = y + x; elseif (a <= -8.2e-189) tmp = t * (y / (a - z)); elseif (a <= 3.4e-143) tmp = x - (t * (y / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -24500000.0], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-122], N[(y + x), $MachinePrecision], If[LessEqual[a, -8.2e-189], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e-143], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -24500000:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-122}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-189}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-143}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if a < -2.45e7Initial program 98.4%
+-commutative98.4%
fma-define98.5%
Simplified98.5%
Taylor expanded in z around 0 71.4%
+-commutative71.4%
associate-/l*72.8%
Simplified72.8%
if -2.45e7 < a < -1.00000000000000006e-122Initial program 100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around inf 69.5%
+-commutative69.5%
Simplified69.5%
if -1.00000000000000006e-122 < a < -8.2000000000000006e-189Initial program 93.8%
clear-num93.9%
un-div-inv93.7%
Applied egg-rr93.7%
Taylor expanded in t around inf 80.0%
mul-1-neg80.0%
*-rgt-identity80.0%
times-frac79.5%
/-rgt-identity79.5%
associate-/r/85.8%
distribute-frac-neg85.8%
Simplified85.8%
Taylor expanded in x around 0 80.0%
metadata-eval80.0%
associate-*r/85.7%
cancel-sign-sub-inv85.7%
*-lft-identity85.7%
Simplified85.7%
Taylor expanded in x around 0 61.9%
mul-1-neg61.9%
associate-/l*67.7%
distribute-lft-neg-in67.7%
Simplified67.7%
if -8.2000000000000006e-189 < a < 3.39999999999999983e-143Initial program 98.2%
Taylor expanded in t around inf 77.6%
mul-1-neg77.6%
associate-/l*81.7%
Simplified81.7%
Taylor expanded in z around inf 71.4%
if 3.39999999999999983e-143 < a Initial program 98.1%
Taylor expanded in t around inf 84.4%
mul-1-neg84.4%
associate-/l*87.2%
Simplified87.2%
Taylor expanded in z around 0 78.3%
cancel-sign-sub-inv78.3%
metadata-eval78.3%
*-lft-identity78.3%
+-commutative78.3%
*-commutative78.3%
associate-*r/80.3%
Simplified80.3%
Final simplification74.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -24500000.0)
(+ x (* t (/ y a)))
(if (<= a -2.7e-123)
(+ y x)
(if (<= a -8.2e-189)
(* t (/ y (- a z)))
(if (<= a 3.1e-142) (- x (* t (/ y z))) (+ x (* y (/ t a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -24500000.0) {
tmp = x + (t * (y / a));
} else if (a <= -2.7e-123) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 3.1e-142) {
tmp = x - (t * (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 <= (-24500000.0d0)) then
tmp = x + (t * (y / a))
else if (a <= (-2.7d-123)) then
tmp = y + x
else if (a <= (-8.2d-189)) then
tmp = t * (y / (a - z))
else if (a <= 3.1d-142) then
tmp = x - (t * (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 <= -24500000.0) {
tmp = x + (t * (y / a));
} else if (a <= -2.7e-123) {
tmp = y + x;
} else if (a <= -8.2e-189) {
tmp = t * (y / (a - z));
} else if (a <= 3.1e-142) {
tmp = x - (t * (y / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -24500000.0: tmp = x + (t * (y / a)) elif a <= -2.7e-123: tmp = y + x elif a <= -8.2e-189: tmp = t * (y / (a - z)) elif a <= 3.1e-142: tmp = x - (t * (y / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -24500000.0) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= -2.7e-123) tmp = Float64(y + x); elseif (a <= -8.2e-189) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (a <= 3.1e-142) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -24500000.0) tmp = x + (t * (y / a)); elseif (a <= -2.7e-123) tmp = y + x; elseif (a <= -8.2e-189) tmp = t * (y / (a - z)); elseif (a <= 3.1e-142) tmp = x - (t * (y / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -24500000.0], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.7e-123], N[(y + x), $MachinePrecision], If[LessEqual[a, -8.2e-189], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-142], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -24500000:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-123}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-189}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-142}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if a < -2.45e7Initial program 98.4%
+-commutative98.4%
fma-define98.5%
Simplified98.5%
Taylor expanded in z around 0 71.4%
+-commutative71.4%
associate-/l*72.8%
Simplified72.8%
if -2.45e7 < a < -2.7000000000000001e-123Initial program 100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around inf 69.5%
+-commutative69.5%
Simplified69.5%
if -2.7000000000000001e-123 < a < -8.2000000000000006e-189Initial program 93.8%
clear-num93.9%
un-div-inv93.7%
Applied egg-rr93.7%
Taylor expanded in t around inf 80.0%
mul-1-neg80.0%
*-rgt-identity80.0%
times-frac79.5%
/-rgt-identity79.5%
associate-/r/85.8%
distribute-frac-neg85.8%
Simplified85.8%
Taylor expanded in x around 0 80.0%
metadata-eval80.0%
associate-*r/85.7%
cancel-sign-sub-inv85.7%
*-lft-identity85.7%
Simplified85.7%
Taylor expanded in x around 0 61.9%
mul-1-neg61.9%
associate-/l*67.7%
distribute-lft-neg-in67.7%
Simplified67.7%
if -8.2000000000000006e-189 < a < 3.1e-142Initial program 98.2%
clear-num98.2%
un-div-inv98.2%
Applied egg-rr98.2%
Taylor expanded in t around inf 77.6%
mul-1-neg77.6%
*-rgt-identity77.6%
times-frac80.0%
/-rgt-identity80.0%
associate-/r/81.8%
distribute-frac-neg81.8%
Simplified81.8%
Taylor expanded in z around inf 67.4%
mul-1-neg67.4%
unsub-neg67.4%
associate-/l*71.4%
Simplified71.4%
if 3.1e-142 < a Initial program 98.1%
Taylor expanded in t around inf 84.4%
mul-1-neg84.4%
associate-/l*87.2%
Simplified87.2%
Taylor expanded in z around 0 78.3%
cancel-sign-sub-inv78.3%
metadata-eval78.3%
*-lft-identity78.3%
+-commutative78.3%
*-commutative78.3%
associate-*r/80.3%
Simplified80.3%
Final simplification74.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.65e+115)
(+ y x)
(if (<= z -4.3e+79)
(+ x (* t (/ y a)))
(if (<= z -1850000.0)
(- x (* t (/ y z)))
(if (<= z 29500000000.0) (+ x (/ t (/ a y))) (+ y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+115) {
tmp = y + x;
} else if (z <= -4.3e+79) {
tmp = x + (t * (y / a));
} else if (z <= -1850000.0) {
tmp = x - (t * (y / z));
} else if (z <= 29500000000.0) {
tmp = x + (t / (a / y));
} else {
tmp = y + 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 (z <= (-1.65d+115)) then
tmp = y + x
else if (z <= (-4.3d+79)) then
tmp = x + (t * (y / a))
else if (z <= (-1850000.0d0)) then
tmp = x - (t * (y / z))
else if (z <= 29500000000.0d0) then
tmp = x + (t / (a / y))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+115) {
tmp = y + x;
} else if (z <= -4.3e+79) {
tmp = x + (t * (y / a));
} else if (z <= -1850000.0) {
tmp = x - (t * (y / z));
} else if (z <= 29500000000.0) {
tmp = x + (t / (a / y));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.65e+115: tmp = y + x elif z <= -4.3e+79: tmp = x + (t * (y / a)) elif z <= -1850000.0: tmp = x - (t * (y / z)) elif z <= 29500000000.0: tmp = x + (t / (a / y)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.65e+115) tmp = Float64(y + x); elseif (z <= -4.3e+79) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= -1850000.0) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= 29500000000.0) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.65e+115) tmp = y + x; elseif (z <= -4.3e+79) tmp = x + (t * (y / a)); elseif (z <= -1850000.0) tmp = x - (t * (y / z)); elseif (z <= 29500000000.0) tmp = x + (t / (a / y)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.65e+115], N[(y + x), $MachinePrecision], If[LessEqual[z, -4.3e+79], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1850000.0], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 29500000000.0], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+115}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{+79}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -1850000:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 29500000000:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if z < -1.65000000000000003e115 or 2.95e10 < z Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 78.8%
+-commutative78.8%
Simplified78.8%
if -1.65000000000000003e115 < z < -4.3000000000000003e79Initial program 99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around 0 68.1%
+-commutative68.1%
associate-/l*78.6%
Simplified78.6%
if -4.3000000000000003e79 < z < -1.85e6Initial program 100.0%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around inf 63.7%
mul-1-neg63.7%
*-rgt-identity63.7%
times-frac69.8%
/-rgt-identity69.8%
associate-/r/69.8%
distribute-frac-neg69.8%
Simplified69.8%
Taylor expanded in z around inf 62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-/l*67.8%
Simplified67.8%
if -1.85e6 < z < 2.95e10Initial program 96.6%
+-commutative96.6%
fma-define96.6%
Simplified96.6%
Taylor expanded in z around 0 77.1%
+-commutative77.1%
associate-/l*77.8%
Simplified77.8%
clear-num77.7%
un-div-inv77.8%
Applied egg-rr77.8%
Final simplification77.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ y a) (- t z))))
(if (<= y -1.7e+93)
t_1
(if (<= y 2.1e-106) (+ y x) (if (<= y 2.1e+73) x t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y / a) * (t - z);
double tmp;
if (y <= -1.7e+93) {
tmp = t_1;
} else if (y <= 2.1e-106) {
tmp = y + x;
} else if (y <= 2.1e+73) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (y / a) * (t - z)
if (y <= (-1.7d+93)) then
tmp = t_1
else if (y <= 2.1d-106) then
tmp = y + x
else if (y <= 2.1d+73) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y / a) * (t - z);
double tmp;
if (y <= -1.7e+93) {
tmp = t_1;
} else if (y <= 2.1e-106) {
tmp = y + x;
} else if (y <= 2.1e+73) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y / a) * (t - z) tmp = 0 if y <= -1.7e+93: tmp = t_1 elif y <= 2.1e-106: tmp = y + x elif y <= 2.1e+73: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y / a) * Float64(t - z)) tmp = 0.0 if (y <= -1.7e+93) tmp = t_1; elseif (y <= 2.1e-106) tmp = Float64(y + x); elseif (y <= 2.1e+73) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y / a) * (t - z); tmp = 0.0; if (y <= -1.7e+93) tmp = t_1; elseif (y <= 2.1e-106) tmp = y + x; elseif (y <= 2.1e+73) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+93], t$95$1, If[LessEqual[y, 2.1e-106], N[(y + x), $MachinePrecision], If[LessEqual[y, 2.1e+73], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-106}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+73}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7e93 or 2.1000000000000001e73 < y Initial program 98.8%
+-commutative98.8%
fma-define98.8%
Simplified98.8%
Taylor expanded in a around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in y around inf 52.3%
sub-neg52.3%
distribute-rgt-in49.0%
associate-*l/46.6%
associate-*r/48.8%
cancel-sign-sub-inv48.8%
associate-*l/48.9%
associate-*r/44.5%
distribute-rgt-out--52.2%
Simplified52.2%
if -1.7e93 < y < 2.10000000000000003e-106Initial program 98.3%
+-commutative98.3%
fma-define98.3%
Simplified98.3%
Taylor expanded in z around inf 76.6%
+-commutative76.6%
Simplified76.6%
if 2.10000000000000003e-106 < y < 2.1000000000000001e73Initial program 95.3%
+-commutative95.3%
fma-define95.3%
Simplified95.3%
Taylor expanded in y around 0 54.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.5e-142) (not (<= t 4.5e+56))) (+ x (* t (/ y (- a z)))) (+ x (* y (/ z (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.5e-142) || !(t <= 4.5e+56)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.5d-142)) .or. (.not. (t <= 4.5d+56))) then
tmp = x + (t * (y / (a - z)))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.5e-142) || !(t <= 4.5e+56)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.5e-142) or not (t <= 4.5e+56): tmp = x + (t * (y / (a - z))) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.5e-142) || !(t <= 4.5e+56)) tmp = Float64(x + Float64(t * Float64(y / Float64(a - z)))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.5e-142) || ~((t <= 4.5e+56))) tmp = x + (t * (y / (a - z))); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.5e-142], N[Not[LessEqual[t, 4.5e+56]], $MachinePrecision]], N[(x + N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{-142} \lor \neg \left(t \leq 4.5 \cdot 10^{+56}\right):\\
\;\;\;\;x + t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if t < -2.5000000000000001e-142Initial program 98.0%
clear-num98.0%
un-div-inv98.0%
Applied egg-rr98.0%
Taylor expanded in t around inf 84.6%
mul-1-neg84.6%
*-rgt-identity84.6%
times-frac87.5%
/-rgt-identity87.5%
associate-/r/88.5%
distribute-frac-neg88.5%
Simplified88.5%
Taylor expanded in x around 0 84.6%
metadata-eval84.6%
associate-*r/88.5%
cancel-sign-sub-inv88.5%
*-lft-identity88.5%
Simplified88.5%
if -2.5000000000000001e-142 < t < 4.5000000000000003e56Initial program 99.0%
+-commutative99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in t around 0 79.5%
+-commutative79.5%
associate-/l*88.0%
Simplified88.0%
if 4.5000000000000003e56 < t Initial program 96.3%
Taylor expanded in t around inf 82.6%
mul-1-neg82.6%
associate-/l*93.8%
Simplified93.8%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.5e-140) (not (<= t 1.88e+56))) (+ x (* t (/ y (- a z)))) (+ x (* y (/ z (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.5e-140) || !(t <= 1.88e+56)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-1.5d-140)) .or. (.not. (t <= 1.88d+56))) then
tmp = x + (t * (y / (a - z)))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.5e-140) || !(t <= 1.88e+56)) {
tmp = x + (t * (y / (a - z)));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.5e-140) or not (t <= 1.88e+56): tmp = x + (t * (y / (a - z))) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.5e-140) || !(t <= 1.88e+56)) tmp = Float64(x + Float64(t * Float64(y / Float64(a - z)))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.5e-140) || ~((t <= 1.88e+56))) tmp = x + (t * (y / (a - z))); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.5e-140], N[Not[LessEqual[t, 1.88e+56]], $MachinePrecision]], N[(x + N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{-140} \lor \neg \left(t \leq 1.88 \cdot 10^{+56}\right):\\
\;\;\;\;x + t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if t < -1.50000000000000009e-140 or 1.88e56 < t Initial program 97.4%
clear-num97.4%
un-div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in t around inf 83.9%
mul-1-neg83.9%
*-rgt-identity83.9%
times-frac89.1%
/-rgt-identity89.1%
associate-/r/90.3%
distribute-frac-neg90.3%
Simplified90.3%
Taylor expanded in x around 0 83.9%
metadata-eval83.9%
associate-*r/90.3%
cancel-sign-sub-inv90.3%
*-lft-identity90.3%
Simplified90.3%
if -1.50000000000000009e-140 < t < 1.88e56Initial program 99.0%
+-commutative99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in t around 0 79.5%
+-commutative79.5%
associate-/l*88.0%
Simplified88.0%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.4e-61) (not (<= z 4.1e-22))) (+ x (* y (- 1.0 (/ t z)))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.4e-61) || !(z <= 4.1e-22)) {
tmp = x + (y * (1.0 - (t / z)));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-3.4d-61)) .or. (.not. (z <= 4.1d-22))) then
tmp = x + (y * (1.0d0 - (t / z)))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.4e-61) || !(z <= 4.1e-22)) {
tmp = x + (y * (1.0 - (t / z)));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.4e-61) or not (z <= 4.1e-22): tmp = x + (y * (1.0 - (t / z))) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.4e-61) || !(z <= 4.1e-22)) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.4e-61) || ~((z <= 4.1e-22))) tmp = x + (y * (1.0 - (t / z))); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.4e-61], N[Not[LessEqual[z, 4.1e-22]], $MachinePrecision]], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{-61} \lor \neg \left(z \leq 4.1 \cdot 10^{-22}\right):\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -3.3999999999999998e-61 or 4.0999999999999999e-22 < z Initial program 99.9%
Taylor expanded in a around 0 67.5%
associate-/l*83.9%
div-sub83.9%
*-inverses83.9%
Simplified83.9%
if -3.3999999999999998e-61 < z < 4.0999999999999999e-22Initial program 96.0%
+-commutative96.0%
fma-define96.1%
Simplified96.1%
Taylor expanded in z around 0 81.0%
+-commutative81.0%
associate-/l*81.8%
Simplified81.8%
clear-num81.8%
un-div-inv81.8%
Applied egg-rr81.8%
Final simplification82.9%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.35e-140) (+ x (* t (/ y (- a z)))) (if (<= t 1.9e+56) (+ x (* y (/ z (- z a)))) (+ x (/ t (/ (- a z) y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.35e-140) {
tmp = x + (t * (y / (a - z)));
} else if (t <= 1.9e+56) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.35d-140)) then
tmp = x + (t * (y / (a - z)))
else if (t <= 1.9d+56) then
tmp = x + (y * (z / (z - a)))
else
tmp = x + (t / ((a - z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.35e-140) {
tmp = x + (t * (y / (a - z)));
} else if (t <= 1.9e+56) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.35e-140: tmp = x + (t * (y / (a - z))) elif t <= 1.9e+56: tmp = x + (y * (z / (z - a))) else: tmp = x + (t / ((a - z) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.35e-140) tmp = Float64(x + Float64(t * Float64(y / Float64(a - z)))); elseif (t <= 1.9e+56) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); else tmp = Float64(x + Float64(t / Float64(Float64(a - z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.35e-140) tmp = x + (t * (y / (a - z))); elseif (t <= 1.9e+56) tmp = x + (y * (z / (z - a))); else tmp = x + (t / ((a - z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.35e-140], N[(x + N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+56], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.35 \cdot 10^{-140}:\\
\;\;\;\;x + t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+56}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y}}\\
\end{array}
\end{array}
if t < -1.35e-140Initial program 98.0%
clear-num98.0%
un-div-inv98.0%
Applied egg-rr98.0%
Taylor expanded in t around inf 84.6%
mul-1-neg84.6%
*-rgt-identity84.6%
times-frac87.5%
/-rgt-identity87.5%
associate-/r/88.5%
distribute-frac-neg88.5%
Simplified88.5%
Taylor expanded in x around 0 84.6%
metadata-eval84.6%
associate-*r/88.5%
cancel-sign-sub-inv88.5%
*-lft-identity88.5%
Simplified88.5%
if -1.35e-140 < t < 1.89999999999999998e56Initial program 99.0%
+-commutative99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in t around 0 79.5%
+-commutative79.5%
associate-/l*88.0%
Simplified88.0%
if 1.89999999999999998e56 < t Initial program 96.3%
clear-num96.2%
un-div-inv96.2%
Applied egg-rr96.2%
Taylor expanded in t around inf 82.6%
mul-1-neg82.6%
*-rgt-identity82.6%
times-frac92.2%
/-rgt-identity92.2%
associate-/r/93.9%
distribute-frac-neg93.9%
Simplified93.9%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.6e-61) (+ x (* y (- 1.0 (/ t z)))) (if (<= z 1.78e-19) (+ x (/ t (/ a y))) (+ x (* y (/ (- z t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.6e-61) {
tmp = x + (y * (1.0 - (t / z)));
} else if (z <= 1.78e-19) {
tmp = x + (t / (a / y));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.6d-61)) then
tmp = x + (y * (1.0d0 - (t / z)))
else if (z <= 1.78d-19) then
tmp = x + (t / (a / y))
else
tmp = x + (y * ((z - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.6e-61) {
tmp = x + (y * (1.0 - (t / z)));
} else if (z <= 1.78e-19) {
tmp = x + (t / (a / y));
} else {
tmp = x + (y * ((z - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.6e-61: tmp = x + (y * (1.0 - (t / z))) elif z <= 1.78e-19: tmp = x + (t / (a / y)) else: tmp = x + (y * ((z - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.6e-61) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z)))); elseif (z <= 1.78e-19) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.6e-61) tmp = x + (y * (1.0 - (t / z))); elseif (z <= 1.78e-19) tmp = x + (t / (a / y)); else tmp = x + (y * ((z - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.6e-61], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.78e-19], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{-61}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{elif}\;z \leq 1.78 \cdot 10^{-19}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\end{array}
\end{array}
if z < -1.6000000000000001e-61Initial program 99.9%
Taylor expanded in a around 0 69.1%
associate-/l*81.5%
div-sub81.5%
*-inverses81.5%
Simplified81.5%
if -1.6000000000000001e-61 < z < 1.78000000000000011e-19Initial program 96.0%
+-commutative96.0%
fma-define96.1%
Simplified96.1%
Taylor expanded in z around 0 81.0%
+-commutative81.0%
associate-/l*81.8%
Simplified81.8%
clear-num81.8%
un-div-inv81.8%
Applied egg-rr81.8%
if 1.78000000000000011e-19 < z Initial program 100.0%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 65.5%
associate-/l*86.9%
Simplified86.9%
Final simplification82.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.45e+115) (not (<= z 17000000.0))) (+ y x) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+115) || !(z <= 17000000.0)) {
tmp = y + x;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.45d+115)) .or. (.not. (z <= 17000000.0d0))) then
tmp = y + x
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+115) || !(z <= 17000000.0)) {
tmp = y + x;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.45e+115) or not (z <= 17000000.0): tmp = y + x else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.45e+115) || !(z <= 17000000.0)) tmp = Float64(y + x); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.45e+115) || ~((z <= 17000000.0))) tmp = y + x; else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.45e+115], N[Not[LessEqual[z, 17000000.0]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+115} \lor \neg \left(z \leq 17000000\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -1.45000000000000002e115 or 1.7e7 < z Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 78.8%
+-commutative78.8%
Simplified78.8%
if -1.45000000000000002e115 < z < 1.7e7Initial program 97.1%
+-commutative97.1%
fma-define97.1%
Simplified97.1%
Taylor expanded in z around 0 73.2%
+-commutative73.2%
associate-/l*74.4%
Simplified74.4%
clear-num74.3%
un-div-inv74.4%
Applied egg-rr74.4%
Final simplification75.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.45e+115) (not (<= z 60000000000.0))) (+ y x) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+115) || !(z <= 60000000000.0)) {
tmp = y + x;
} else {
tmp = x + (t * (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 ((z <= (-1.45d+115)) .or. (.not. (z <= 60000000000.0d0))) then
tmp = y + x
else
tmp = x + (t * (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 ((z <= -1.45e+115) || !(z <= 60000000000.0)) {
tmp = y + x;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.45e+115) or not (z <= 60000000000.0): tmp = y + x else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.45e+115) || !(z <= 60000000000.0)) tmp = Float64(y + x); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.45e+115) || ~((z <= 60000000000.0))) tmp = y + x; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.45e+115], N[Not[LessEqual[z, 60000000000.0]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+115} \lor \neg \left(z \leq 60000000000\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -1.45000000000000002e115 or 6e10 < z Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 78.8%
+-commutative78.8%
Simplified78.8%
if -1.45000000000000002e115 < z < 6e10Initial program 97.1%
+-commutative97.1%
fma-define97.1%
Simplified97.1%
Taylor expanded in z around 0 73.2%
+-commutative73.2%
associate-/l*74.4%
Simplified74.4%
Final simplification75.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.45e+115) (not (<= z 400000000.0))) (+ y x) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.45e+115) || !(z <= 400000000.0)) {
tmp = y + x;
} 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 ((z <= (-1.45d+115)) .or. (.not. (z <= 400000000.0d0))) then
tmp = y + x
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 ((z <= -1.45e+115) || !(z <= 400000000.0)) {
tmp = y + x;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.45e+115) or not (z <= 400000000.0): tmp = y + x else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.45e+115) || !(z <= 400000000.0)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.45e+115) || ~((z <= 400000000.0))) tmp = y + x; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.45e+115], N[Not[LessEqual[z, 400000000.0]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+115} \lor \neg \left(z \leq 400000000\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -1.45000000000000002e115 or 4e8 < z Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 78.8%
+-commutative78.8%
Simplified78.8%
if -1.45000000000000002e115 < z < 4e8Initial program 97.1%
Taylor expanded in z around 0 73.2%
*-commutative73.2%
associate-/l*73.2%
Simplified73.2%
Final simplification75.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.32e+187) x (if (<= a 3.8e+57) (+ y x) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.32e+187) {
tmp = x;
} else if (a <= 3.8e+57) {
tmp = y + x;
} 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.32d+187)) then
tmp = x
else if (a <= 3.8d+57) then
tmp = y + x
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.32e+187) {
tmp = x;
} else if (a <= 3.8e+57) {
tmp = y + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.32e+187: tmp = x elif a <= 3.8e+57: tmp = y + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.32e+187) tmp = x; elseif (a <= 3.8e+57) tmp = Float64(y + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.32e+187) tmp = x; elseif (a <= 3.8e+57) tmp = y + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.32e+187], x, If[LessEqual[a, 3.8e+57], N[(y + x), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.32 \cdot 10^{+187}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+57}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.32000000000000009e187 or 3.7999999999999999e57 < a Initial program 99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 69.6%
if -1.32000000000000009e187 < a < 3.7999999999999999e57Initial program 97.2%
+-commutative97.2%
fma-define97.2%
Simplified97.2%
Taylor expanded in z around inf 54.8%
+-commutative54.8%
Simplified54.8%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- t z) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((t - z) / (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 * ((t - z) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((t - z) / (a - z)));
}
def code(x, y, z, t, a): return x + (y * ((t - z) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(t - z) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((t - z) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{t - z}{a - z}
\end{array}
Initial program 98.0%
Final simplification98.0%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 98.0%
+-commutative98.0%
fma-define98.1%
Simplified98.1%
Taylor expanded in y around 0 49.9%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - 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 = x + (y / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2024103
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:alt
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))