
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= c_m 5.2e+44)
(/ (- b (- (* (* z 4.0) (* t a)) (* x (* 9.0 y)))) (* c_m z))
(/
(fma -4.0 (* z (* a (/ t c_m))) (fma 9.0 (* x (/ y c_m)) (/ b c_m)))
z))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (c_m <= 5.2e+44) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else {
tmp = fma(-4.0, (z * (a * (t / c_m))), fma(9.0, (x * (y / c_m)), (b / c_m))) / z;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (c_m <= 5.2e+44) tmp = Float64(Float64(b - Float64(Float64(Float64(z * 4.0) * Float64(t * a)) - Float64(x * Float64(9.0 * y)))) / Float64(c_m * z)); else tmp = Float64(fma(-4.0, Float64(z * Float64(a * Float64(t / c_m))), fma(9.0, Float64(x * Float64(y / c_m)), Float64(b / c_m))) / z); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[c$95$m, 5.2e+44], N[(N[(b - N[(N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(-4.0 * N[(z * N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.0 * N[(x * N[(y / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;c\_m \leq 5.2 \cdot 10^{+44}:\\
\;\;\;\;\frac{b - \left(\left(z \cdot 4\right) \cdot \left(t \cdot a\right) - x \cdot \left(9 \cdot y\right)\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4, z \cdot \left(a \cdot \frac{t}{c\_m}\right), \mathsf{fma}\left(9, x \cdot \frac{y}{c\_m}, \frac{b}{c\_m}\right)\right)}{z}\\
\end{array}
\end{array}
if c < 5.1999999999999998e44Initial program 83.4%
+-commutative83.4%
associate-+r-83.4%
*-commutative83.4%
associate-*r*85.3%
*-commutative85.3%
associate-+r-85.3%
+-commutative85.3%
associate-*l*85.3%
associate-*l*86.3%
*-commutative86.3%
Simplified86.3%
if 5.1999999999999998e44 < c Initial program 68.7%
+-commutative68.7%
associate-+r-68.7%
*-commutative68.7%
associate-*r*65.6%
*-commutative65.6%
associate-+r-65.6%
+-commutative65.6%
associate-*l*67.3%
associate-*l*67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in z around 0 72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
associate-*r*74.5%
*-commutative74.5%
associate-/l*81.4%
associate-/l*85.7%
fma-define85.7%
associate-/l*92.4%
Simplified92.4%
Final simplification87.7%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= c_m 5.5e+57)
(/ (- b (- (* (* z 4.0) (* t a)) (* x (* 9.0 y)))) (* c_m z))
(*
x
(-
(/ (fma (* a (/ t c_m)) -4.0 (/ b (* c_m z))) x)
(* (/ (/ y c_m) z) -9.0))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (c_m <= 5.5e+57) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else {
tmp = x * ((fma((a * (t / c_m)), -4.0, (b / (c_m * z))) / x) - (((y / c_m) / z) * -9.0));
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (c_m <= 5.5e+57) tmp = Float64(Float64(b - Float64(Float64(Float64(z * 4.0) * Float64(t * a)) - Float64(x * Float64(9.0 * y)))) / Float64(c_m * z)); else tmp = Float64(x * Float64(Float64(fma(Float64(a * Float64(t / c_m)), -4.0, Float64(b / Float64(c_m * z))) / x) - Float64(Float64(Float64(y / c_m) / z) * -9.0))); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[c$95$m, 5.5e+57], N[(N[(b - N[(N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - N[(N[(N[(y / c$95$m), $MachinePrecision] / z), $MachinePrecision] * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;c\_m \leq 5.5 \cdot 10^{+57}:\\
\;\;\;\;\frac{b - \left(\left(z \cdot 4\right) \cdot \left(t \cdot a\right) - x \cdot \left(9 \cdot y\right)\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{\mathsf{fma}\left(a \cdot \frac{t}{c\_m}, -4, \frac{b}{c\_m \cdot z}\right)}{x} - \frac{\frac{y}{c\_m}}{z} \cdot -9\right)\\
\end{array}
\end{array}
if c < 5.5000000000000002e57Initial program 83.0%
+-commutative83.0%
associate-+r-83.0%
*-commutative83.0%
associate-*r*85.0%
*-commutative85.0%
associate-+r-85.0%
+-commutative85.0%
associate-*l*85.0%
associate-*l*86.0%
*-commutative86.0%
Simplified86.0%
if 5.5000000000000002e57 < c Initial program 69.4%
+-commutative69.4%
associate-+r-69.4%
*-commutative69.4%
associate-*r*66.2%
*-commutative66.2%
associate-+r-66.2%
+-commutative66.2%
associate-*l*67.9%
associate-*l*68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in x around -inf 75.3%
mul-1-neg75.3%
*-commutative75.3%
distribute-rgt-neg-in75.3%
Simplified84.3%
Final simplification85.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (or (<= z -1.32e+135) (not (<= z 1.5e+20)))
(*
y
(-
(/ (- (/ b (* c_m z)) (* 4.0 (/ (* t a) c_m))) y)
(* -9.0 (/ x (* c_m z)))))
(/ (+ b (fma x (* 9.0 y) (* t (* a (* z -4.0))))) (* c_m z)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if ((z <= -1.32e+135) || !(z <= 1.5e+20)) {
tmp = y * ((((b / (c_m * z)) - (4.0 * ((t * a) / c_m))) / y) - (-9.0 * (x / (c_m * z))));
} else {
tmp = (b + fma(x, (9.0 * y), (t * (a * (z * -4.0))))) / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if ((z <= -1.32e+135) || !(z <= 1.5e+20)) tmp = Float64(y * Float64(Float64(Float64(Float64(b / Float64(c_m * z)) - Float64(4.0 * Float64(Float64(t * a) / c_m))) / y) - Float64(-9.0 * Float64(x / Float64(c_m * z))))); else tmp = Float64(Float64(b + fma(x, Float64(9.0 * y), Float64(t * Float64(a * Float64(z * -4.0))))) / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[Or[LessEqual[z, -1.32e+135], N[Not[LessEqual[z, 1.5e+20]], $MachinePrecision]], N[(y * N[(N[(N[(N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(-9.0 * N[(x / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(x * N[(9.0 * y), $MachinePrecision] + N[(t * N[(a * N[(z * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -1.32 \cdot 10^{+135} \lor \neg \left(z \leq 1.5 \cdot 10^{+20}\right):\\
\;\;\;\;y \cdot \left(\frac{\frac{b}{c\_m \cdot z} - 4 \cdot \frac{t \cdot a}{c\_m}}{y} - -9 \cdot \frac{x}{c\_m \cdot z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \mathsf{fma}\left(x, 9 \cdot y, t \cdot \left(a \cdot \left(z \cdot -4\right)\right)\right)}{c\_m \cdot z}\\
\end{array}
\end{array}
if z < -1.32e135 or 1.5e20 < z Initial program 50.7%
+-commutative50.7%
associate-+r-50.7%
*-commutative50.7%
associate-*r*54.4%
*-commutative54.4%
associate-+r-54.4%
+-commutative54.4%
associate-*l*54.3%
associate-*l*58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in y around -inf 73.5%
if -1.32e135 < z < 1.5e20Initial program 93.7%
Simplified93.8%
Final simplification87.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (+ b (- (* y (* x 9.0)) (* a (* (* z 4.0) t)))) (* c_m z))))
(*
c_s
(if (<= t_1 -5e+274)
(/ (- b (- (* (* z 4.0) (* t a)) (* x (* 9.0 y)))) (* c_m z))
(if (<= t_1 0.0)
(/ (/ (+ b (+ (* -4.0 (* a (* z t))) (* 9.0 (* x y)))) c_m) z)
(if (<= t_1 INFINITY)
t_1
(* t (/ (- (/ b (* c_m t)) (* a (* 4.0 (/ z c_m)))) z))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
double tmp;
if (t_1 <= -5e+274) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else if (t_1 <= 0.0) {
tmp = ((b + ((-4.0 * (a * (z * t))) + (9.0 * (x * y)))) / c_m) / z;
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z);
}
return c_s * tmp;
}
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z);
double tmp;
if (t_1 <= -5e+274) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else if (t_1 <= 0.0) {
tmp = ((b + ((-4.0 * (a * (z * t))) + (9.0 * (x * y)))) / c_m) / z;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z) tmp = 0 if t_1 <= -5e+274: tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z) elif t_1 <= 0.0: tmp = ((b + ((-4.0 * (a * (z * t))) + (9.0 * (x * y)))) / c_m) / z elif t_1 <= math.inf: tmp = t_1 else: tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(Float64(z * 4.0) * t)))) / Float64(c_m * z)) tmp = 0.0 if (t_1 <= -5e+274) tmp = Float64(Float64(b - Float64(Float64(Float64(z * 4.0) * Float64(t * a)) - Float64(x * Float64(9.0 * y)))) / Float64(c_m * z)); elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(b + Float64(Float64(-4.0 * Float64(a * Float64(z * t))) + Float64(9.0 * Float64(x * y)))) / c_m) / z); elseif (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(Float64(b / Float64(c_m * t)) - Float64(a * Float64(4.0 * Float64(z / c_m)))) / z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = (b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z); tmp = 0.0; if (t_1 <= -5e+274) tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z); elseif (t_1 <= 0.0) tmp = ((b + ((-4.0 * (a * (z * t))) + (9.0 * (x * y)))) / c_m) / z; elseif (t_1 <= Inf) tmp = t_1; else tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$1, -5e+274], N[(N[(b - N[(N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(N[(b + N[(N[(-4.0 * N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(N[(b / N[(c$95$m * t), $MachinePrecision]), $MachinePrecision] - N[(a * N[(4.0 * N[(z / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c\_m \cdot z}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+274}:\\
\;\;\;\;\frac{b - \left(\left(z \cdot 4\right) \cdot \left(t \cdot a\right) - x \cdot \left(9 \cdot y\right)\right)}{c\_m \cdot z}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{\frac{b + \left(-4 \cdot \left(a \cdot \left(z \cdot t\right)\right) + 9 \cdot \left(x \cdot y\right)\right)}{c\_m}}{z}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{\frac{b}{c\_m \cdot t} - a \cdot \left(4 \cdot \frac{z}{c\_m}\right)}{z}\\
\end{array}
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -4.9999999999999998e274Initial program 85.4%
+-commutative85.4%
associate-+r-85.4%
*-commutative85.4%
associate-*r*90.3%
*-commutative90.3%
associate-+r-90.3%
+-commutative90.3%
associate-*l*90.3%
associate-*l*90.3%
*-commutative90.3%
Simplified90.3%
if -4.9999999999999998e274 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -0.0Initial program 87.9%
+-commutative87.9%
associate-+r-87.9%
*-commutative87.9%
associate-*r*86.0%
*-commutative86.0%
associate-+r-86.0%
+-commutative86.0%
associate-*l*86.0%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in z around 0 95.5%
fma-define95.5%
*-commutative95.5%
*-commutative95.5%
associate-*r*95.6%
*-commutative95.6%
associate-/l*95.5%
associate-/l*94.8%
fma-define94.8%
associate-/l*94.8%
Simplified94.8%
Taylor expanded in c around 0 95.6%
if -0.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 87.1%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
*-commutative0.0%
associate-*r*6.2%
*-commutative6.2%
associate-+r-6.2%
+-commutative6.2%
associate-*l*6.2%
associate-*l*6.2%
*-commutative6.2%
Simplified6.2%
Taylor expanded in x around 0 0.0%
Taylor expanded in t around -inf 65.8%
mul-1-neg65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
associate-/r*65.8%
Simplified65.8%
Taylor expanded in z around 0 27.5%
*-commutative27.5%
associate-/l*65.8%
associate-*l*65.8%
*-commutative65.8%
Simplified65.8%
Final simplification87.9%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<=
(/ (+ b (- (* y (* x 9.0)) (* a (* (* z 4.0) t)))) (* c_m z))
INFINITY)
(/ (- b (- (* (* z 4.0) (* t a)) (* x (* 9.0 y)))) (* c_m z))
(* t (/ (- (/ b (* c_m t)) (* a (* 4.0 (/ z c_m)))) z)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (((b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)) <= ((double) INFINITY)) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else {
tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z);
}
return c_s * tmp;
}
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (((b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)) <= Double.POSITIVE_INFINITY) {
tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z);
} else {
tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if ((b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)) <= math.inf: tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z) else: tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (Float64(Float64(b + Float64(Float64(y * Float64(x * 9.0)) - Float64(a * Float64(Float64(z * 4.0) * t)))) / Float64(c_m * z)) <= Inf) tmp = Float64(Float64(b - Float64(Float64(Float64(z * 4.0) * Float64(t * a)) - Float64(x * Float64(9.0 * y)))) / Float64(c_m * z)); else tmp = Float64(t * Float64(Float64(Float64(b / Float64(c_m * t)) - Float64(a * Float64(4.0 * Float64(z / c_m)))) / z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (((b + ((y * (x * 9.0)) - (a * ((z * 4.0) * t)))) / (c_m * z)) <= Inf) tmp = (b - (((z * 4.0) * (t * a)) - (x * (9.0 * y)))) / (c_m * z); else tmp = t * (((b / (c_m * t)) - (a * (4.0 * (z / c_m)))) / z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[N[(N[(b + N[(N[(y * N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(b - N[(N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision] - N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(b / N[(c$95$m * t), $MachinePrecision]), $MachinePrecision] - N[(a * N[(4.0 * N[(z / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{b + \left(y \cdot \left(x \cdot 9\right) - a \cdot \left(\left(z \cdot 4\right) \cdot t\right)\right)}{c\_m \cdot z} \leq \infty:\\
\;\;\;\;\frac{b - \left(\left(z \cdot 4\right) \cdot \left(t \cdot a\right) - x \cdot \left(9 \cdot y\right)\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{\frac{b}{c\_m \cdot t} - a \cdot \left(4 \cdot \frac{z}{c\_m}\right)}{z}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0Initial program 86.9%
+-commutative86.9%
associate-+r-86.9%
*-commutative86.9%
associate-*r*87.2%
*-commutative87.2%
associate-+r-87.2%
+-commutative87.2%
associate-*l*87.7%
associate-*l*88.6%
*-commutative88.6%
Simplified88.6%
if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) Initial program 0.0%
+-commutative0.0%
associate-+r-0.0%
*-commutative0.0%
associate-*r*6.2%
*-commutative6.2%
associate-+r-6.2%
+-commutative6.2%
associate-*l*6.2%
associate-*l*6.2%
*-commutative6.2%
Simplified6.2%
Taylor expanded in x around 0 0.0%
Taylor expanded in t around -inf 65.8%
mul-1-neg65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
associate-/r*65.8%
Simplified65.8%
Taylor expanded in z around 0 27.5%
*-commutative27.5%
associate-/l*65.8%
associate-*l*65.8%
*-commutative65.8%
Simplified65.8%
Final simplification86.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (or (<= a -4.15e-94) (not (<= a 4.5e+63)))
(* a (+ (* -4.0 (/ t c_m)) (/ b (* a (* c_m z)))))
(/ (/ (+ (* x (* 9.0 y)) b) c_m) z))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if ((a <= -4.15e-94) || !(a <= 4.5e+63)) {
tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z))));
} else {
tmp = (((x * (9.0 * y)) + b) / c_m) / z;
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if ((a <= (-4.15d-94)) .or. (.not. (a <= 4.5d+63))) then
tmp = a * (((-4.0d0) * (t / c_m)) + (b / (a * (c_m * z))))
else
tmp = (((x * (9.0d0 * y)) + b) / c_m) / z
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if ((a <= -4.15e-94) || !(a <= 4.5e+63)) {
tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z))));
} else {
tmp = (((x * (9.0 * y)) + b) / c_m) / z;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if (a <= -4.15e-94) or not (a <= 4.5e+63): tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z)))) else: tmp = (((x * (9.0 * y)) + b) / c_m) / z return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if ((a <= -4.15e-94) || !(a <= 4.5e+63)) tmp = Float64(a * Float64(Float64(-4.0 * Float64(t / c_m)) + Float64(b / Float64(a * Float64(c_m * z))))); else tmp = Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) + b) / c_m) / z); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if ((a <= -4.15e-94) || ~((a <= 4.5e+63))) tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z)))); else tmp = (((x * (9.0 * y)) + b) / c_m) / z; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[Or[LessEqual[a, -4.15e-94], N[Not[LessEqual[a, 4.5e+63]], $MachinePrecision]], N[(a * N[(N[(-4.0 * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(a * N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / c$95$m), $MachinePrecision] / z), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -4.15 \cdot 10^{-94} \lor \neg \left(a \leq 4.5 \cdot 10^{+63}\right):\\
\;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c\_m} + \frac{b}{a \cdot \left(c\_m \cdot z\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x \cdot \left(9 \cdot y\right) + b}{c\_m}}{z}\\
\end{array}
\end{array}
if a < -4.1499999999999998e-94 or 4.50000000000000017e63 < a Initial program 78.1%
+-commutative78.1%
associate-+r-78.1%
*-commutative78.1%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*74.2%
associate-*l*76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in x around 0 66.1%
Taylor expanded in a around inf 74.4%
if -4.1499999999999998e-94 < a < 4.50000000000000017e63Initial program 81.9%
+-commutative81.9%
associate-+r-81.9%
*-commutative81.9%
associate-*r*87.8%
*-commutative87.8%
associate-+r-87.8%
+-commutative87.8%
associate-*l*87.8%
associate-*l*87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in z around 0 80.1%
fma-define80.1%
*-commutative80.1%
*-commutative80.1%
associate-*r*84.7%
*-commutative84.7%
associate-/l*83.9%
associate-/l*81.6%
fma-define81.6%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in c around 0 83.9%
Taylor expanded in a around 0 76.2%
associate-*r*76.2%
*-commutative76.2%
associate-*r*76.2%
Simplified76.2%
Final simplification75.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= t -3.1e-85)
(* t (+ (* -4.0 (/ a c_m)) (/ b (* c_m (* z t)))))
(if (<= t 1e-141)
(/ (+ b (* 9.0 (* x y))) (* c_m z))
(* a (+ (* -4.0 (/ t c_m)) (/ b (* a (* c_m z)))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -3.1e-85) {
tmp = t * ((-4.0 * (a / c_m)) + (b / (c_m * (z * t))));
} else if (t <= 1e-141) {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
} else {
tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z))));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (t <= (-3.1d-85)) then
tmp = t * (((-4.0d0) * (a / c_m)) + (b / (c_m * (z * t))))
else if (t <= 1d-141) then
tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
else
tmp = a * (((-4.0d0) * (t / c_m)) + (b / (a * (c_m * z))))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (t <= -3.1e-85) {
tmp = t * ((-4.0 * (a / c_m)) + (b / (c_m * (z * t))));
} else if (t <= 1e-141) {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
} else {
tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z))));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if t <= -3.1e-85: tmp = t * ((-4.0 * (a / c_m)) + (b / (c_m * (z * t)))) elif t <= 1e-141: tmp = (b + (9.0 * (x * y))) / (c_m * z) else: tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z)))) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (t <= -3.1e-85) tmp = Float64(t * Float64(Float64(-4.0 * Float64(a / c_m)) + Float64(b / Float64(c_m * Float64(z * t))))); elseif (t <= 1e-141) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z)); else tmp = Float64(a * Float64(Float64(-4.0 * Float64(t / c_m)) + Float64(b / Float64(a * Float64(c_m * z))))); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (t <= -3.1e-85) tmp = t * ((-4.0 * (a / c_m)) + (b / (c_m * (z * t)))); elseif (t <= 1e-141) tmp = (b + (9.0 * (x * y))) / (c_m * z); else tmp = a * ((-4.0 * (t / c_m)) + (b / (a * (c_m * z)))); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[t, -3.1e-85], N[(t * N[(N[(-4.0 * N[(a / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(c$95$m * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-141], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(-4.0 * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(b / N[(a * N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \left(-4 \cdot \frac{a}{c\_m} + \frac{b}{c\_m \cdot \left(z \cdot t\right)}\right)\\
\mathbf{elif}\;t \leq 10^{-141}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c\_m} + \frac{b}{a \cdot \left(c\_m \cdot z\right)}\right)\\
\end{array}
\end{array}
if t < -3.1000000000000002e-85Initial program 70.1%
+-commutative70.1%
associate-+r-70.1%
*-commutative70.1%
associate-*r*78.1%
*-commutative78.1%
associate-+r-78.1%
+-commutative78.1%
associate-*l*78.1%
associate-*l*74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in x around 0 56.9%
Taylor expanded in t around inf 75.0%
if -3.1000000000000002e-85 < t < 1e-141Initial program 92.6%
+-commutative92.6%
associate-+r-92.6%
*-commutative92.6%
associate-*r*87.8%
*-commutative87.8%
associate-+r-87.8%
+-commutative87.8%
associate-*l*89.0%
associate-*l*92.8%
*-commutative92.8%
Simplified92.8%
Taylor expanded in x around inf 85.7%
if 1e-141 < t Initial program 78.1%
+-commutative78.1%
associate-+r-78.1%
*-commutative78.1%
associate-*r*77.2%
*-commutative77.2%
associate-+r-77.2%
+-commutative77.2%
associate-*l*77.2%
associate-*l*79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in x around 0 59.6%
Taylor expanded in a around inf 66.9%
Final simplification75.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -7.6e-25)
(/ 1.0 (/ z (/ b c_m)))
(if (<= b 3.7e-233)
(* (/ a c_m) (* t -4.0))
(if (<= b 3.8e-30)
(/ (* x (/ (* 9.0 y) c_m)) z)
(/ 1.0 (* c_m (/ z b))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -7.6e-25) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.7e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 3.8e-30) {
tmp = (x * ((9.0 * y) / c_m)) / z;
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-7.6d-25)) then
tmp = 1.0d0 / (z / (b / c_m))
else if (b <= 3.7d-233) then
tmp = (a / c_m) * (t * (-4.0d0))
else if (b <= 3.8d-30) then
tmp = (x * ((9.0d0 * y) / c_m)) / z
else
tmp = 1.0d0 / (c_m * (z / b))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -7.6e-25) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.7e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 3.8e-30) {
tmp = (x * ((9.0 * y) / c_m)) / z;
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -7.6e-25: tmp = 1.0 / (z / (b / c_m)) elif b <= 3.7e-233: tmp = (a / c_m) * (t * -4.0) elif b <= 3.8e-30: tmp = (x * ((9.0 * y) / c_m)) / z else: tmp = 1.0 / (c_m * (z / b)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -7.6e-25) tmp = Float64(1.0 / Float64(z / Float64(b / c_m))); elseif (b <= 3.7e-233) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); elseif (b <= 3.8e-30) tmp = Float64(Float64(x * Float64(Float64(9.0 * y) / c_m)) / z); else tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -7.6e-25) tmp = 1.0 / (z / (b / c_m)); elseif (b <= 3.7e-233) tmp = (a / c_m) * (t * -4.0); elseif (b <= 3.8e-30) tmp = (x * ((9.0 * y) / c_m)) / z; else tmp = 1.0 / (c_m * (z / b)); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -7.6e-25], N[(1.0 / N[(z / N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-233], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-30], N[(N[(x * N[(N[(9.0 * y), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{-25}:\\
\;\;\;\;\frac{1}{\frac{z}{\frac{b}{c\_m}}}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-233}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-30}:\\
\;\;\;\;\frac{x \cdot \frac{9 \cdot y}{c\_m}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\end{array}
\end{array}
if b < -7.5999999999999996e-25Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
clear-num62.3%
inv-pow62.3%
Applied egg-rr62.3%
unpow-162.3%
Simplified62.3%
if -7.5999999999999996e-25 < b < 3.6999999999999998e-233Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
*-commutative74.6%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in z around 0 72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
associate-*r*74.2%
*-commutative74.2%
associate-/l*79.5%
associate-/l*80.1%
fma-define80.1%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in z around inf 49.2%
associate-*r/49.2%
associate-*r*49.2%
associate-*l/56.8%
associate-*r/56.8%
*-commutative56.8%
associate-*l*56.8%
Simplified56.8%
if 3.6999999999999998e-233 < b < 3.8000000000000003e-30Initial program 82.9%
+-commutative82.9%
associate-+r-82.9%
*-commutative82.9%
associate-*r*83.1%
*-commutative83.1%
associate-+r-83.1%
+-commutative83.1%
associate-*l*83.2%
associate-*l*83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in z around 0 85.3%
fma-define85.3%
*-commutative85.3%
*-commutative85.3%
associate-*r*90.2%
*-commutative90.2%
associate-/l*87.7%
associate-/l*87.7%
fma-define87.7%
associate-/l*82.7%
Simplified82.7%
Taylor expanded in c around 0 85.3%
Taylor expanded in x around inf 59.1%
*-commutative59.1%
associate-/l*59.0%
associate-*l*59.0%
*-commutative59.0%
associate-*r/59.1%
Simplified59.1%
if 3.8000000000000003e-30 < b Initial program 81.9%
+-commutative81.9%
associate-+r-81.9%
*-commutative81.9%
associate-*r*84.5%
*-commutative84.5%
associate-+r-84.5%
+-commutative84.5%
associate-*l*85.8%
associate-*l*87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in b around inf 68.7%
*-commutative68.7%
Simplified68.7%
clear-num68.6%
inv-pow68.6%
*-commutative68.6%
Applied egg-rr68.6%
unpow-168.6%
associate-/l*69.2%
Simplified69.2%
Final simplification62.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -5e-24)
(/ 1.0 (/ z (/ b c_m)))
(if (<= b 3.7e-233)
(* (/ a c_m) (* t -4.0))
(if (<= b 2.4e-24)
(/ (* 9.0 (* x y)) (* c_m z))
(/ 1.0 (* c_m (/ z b))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -5e-24) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.7e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 2.4e-24) {
tmp = (9.0 * (x * y)) / (c_m * z);
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-5d-24)) then
tmp = 1.0d0 / (z / (b / c_m))
else if (b <= 3.7d-233) then
tmp = (a / c_m) * (t * (-4.0d0))
else if (b <= 2.4d-24) then
tmp = (9.0d0 * (x * y)) / (c_m * z)
else
tmp = 1.0d0 / (c_m * (z / b))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -5e-24) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.7e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 2.4e-24) {
tmp = (9.0 * (x * y)) / (c_m * z);
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -5e-24: tmp = 1.0 / (z / (b / c_m)) elif b <= 3.7e-233: tmp = (a / c_m) * (t * -4.0) elif b <= 2.4e-24: tmp = (9.0 * (x * y)) / (c_m * z) else: tmp = 1.0 / (c_m * (z / b)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -5e-24) tmp = Float64(1.0 / Float64(z / Float64(b / c_m))); elseif (b <= 3.7e-233) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); elseif (b <= 2.4e-24) tmp = Float64(Float64(9.0 * Float64(x * y)) / Float64(c_m * z)); else tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -5e-24) tmp = 1.0 / (z / (b / c_m)); elseif (b <= 3.7e-233) tmp = (a / c_m) * (t * -4.0); elseif (b <= 2.4e-24) tmp = (9.0 * (x * y)) / (c_m * z); else tmp = 1.0 / (c_m * (z / b)); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -5e-24], N[(1.0 / N[(z / N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-233], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-24], N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-24}:\\
\;\;\;\;\frac{1}{\frac{z}{\frac{b}{c\_m}}}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-233}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-24}:\\
\;\;\;\;\frac{9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\end{array}
\end{array}
if b < -4.9999999999999998e-24Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
clear-num62.3%
inv-pow62.3%
Applied egg-rr62.3%
unpow-162.3%
Simplified62.3%
if -4.9999999999999998e-24 < b < 3.6999999999999998e-233Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
*-commutative74.6%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in z around 0 72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
associate-*r*74.2%
*-commutative74.2%
associate-/l*79.5%
associate-/l*80.1%
fma-define80.1%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in z around inf 49.2%
associate-*r/49.2%
associate-*r*49.2%
associate-*l/56.8%
associate-*r/56.8%
*-commutative56.8%
associate-*l*56.8%
Simplified56.8%
if 3.6999999999999998e-233 < b < 2.3999999999999998e-24Initial program 82.9%
+-commutative82.9%
associate-+r-82.9%
*-commutative82.9%
associate-*r*83.1%
*-commutative83.1%
associate-+r-83.1%
+-commutative83.1%
associate-*l*83.2%
associate-*l*83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 61.4%
associate-*r/61.4%
Applied egg-rr61.4%
if 2.3999999999999998e-24 < b Initial program 81.9%
+-commutative81.9%
associate-+r-81.9%
*-commutative81.9%
associate-*r*84.5%
*-commutative84.5%
associate-+r-84.5%
+-commutative84.5%
associate-*l*85.8%
associate-*l*87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in b around inf 68.7%
*-commutative68.7%
Simplified68.7%
clear-num68.6%
inv-pow68.6%
*-commutative68.6%
Applied egg-rr68.6%
unpow-168.6%
associate-/l*69.2%
Simplified69.2%
Final simplification62.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -2.9e-25)
(/ 1.0 (/ z (/ b c_m)))
(if (<= b 4e-233)
(* (/ a c_m) (* t -4.0))
(if (<= b 1.95e-25)
(* 9.0 (/ (* x y) (* c_m z)))
(/ 1.0 (* c_m (/ z b))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.9e-25) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 4e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 1.95e-25) {
tmp = 9.0 * ((x * y) / (c_m * z));
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-2.9d-25)) then
tmp = 1.0d0 / (z / (b / c_m))
else if (b <= 4d-233) then
tmp = (a / c_m) * (t * (-4.0d0))
else if (b <= 1.95d-25) then
tmp = 9.0d0 * ((x * y) / (c_m * z))
else
tmp = 1.0d0 / (c_m * (z / b))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.9e-25) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 4e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 1.95e-25) {
tmp = 9.0 * ((x * y) / (c_m * z));
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -2.9e-25: tmp = 1.0 / (z / (b / c_m)) elif b <= 4e-233: tmp = (a / c_m) * (t * -4.0) elif b <= 1.95e-25: tmp = 9.0 * ((x * y) / (c_m * z)) else: tmp = 1.0 / (c_m * (z / b)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -2.9e-25) tmp = Float64(1.0 / Float64(z / Float64(b / c_m))); elseif (b <= 4e-233) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); elseif (b <= 1.95e-25) tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(c_m * z))); else tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -2.9e-25) tmp = 1.0 / (z / (b / c_m)); elseif (b <= 4e-233) tmp = (a / c_m) * (t * -4.0); elseif (b <= 1.95e-25) tmp = 9.0 * ((x * y) / (c_m * z)); else tmp = 1.0 / (c_m * (z / b)); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -2.9e-25], N[(1.0 / N[(z / N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e-233], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-25], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{-25}:\\
\;\;\;\;\frac{1}{\frac{z}{\frac{b}{c\_m}}}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-233}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-25}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\end{array}
\end{array}
if b < -2.9000000000000001e-25Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
clear-num62.3%
inv-pow62.3%
Applied egg-rr62.3%
unpow-162.3%
Simplified62.3%
if -2.9000000000000001e-25 < b < 3.99999999999999983e-233Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
*-commutative74.6%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in z around 0 72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
associate-*r*74.2%
*-commutative74.2%
associate-/l*79.5%
associate-/l*80.1%
fma-define80.1%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in z around inf 49.2%
associate-*r/49.2%
associate-*r*49.2%
associate-*l/56.8%
associate-*r/56.8%
*-commutative56.8%
associate-*l*56.8%
Simplified56.8%
if 3.99999999999999983e-233 < b < 1.95e-25Initial program 82.9%
+-commutative82.9%
associate-+r-82.9%
*-commutative82.9%
associate-*r*83.1%
*-commutative83.1%
associate-+r-83.1%
+-commutative83.1%
associate-*l*83.2%
associate-*l*83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 61.4%
if 1.95e-25 < b Initial program 81.9%
+-commutative81.9%
associate-+r-81.9%
*-commutative81.9%
associate-*r*84.5%
*-commutative84.5%
associate-+r-84.5%
+-commutative84.5%
associate-*l*85.8%
associate-*l*87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in b around inf 68.7%
*-commutative68.7%
Simplified68.7%
clear-num68.6%
inv-pow68.6%
*-commutative68.6%
Applied egg-rr68.6%
unpow-168.6%
associate-/l*69.2%
Simplified69.2%
Final simplification62.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -1.18e-23)
(/ 1.0 (/ z (/ b c_m)))
(if (<= b 3.8e-233)
(* (/ a c_m) (* t -4.0))
(if (<= b 3.8e-30)
(* 9.0 (* x (/ y (* c_m z))))
(/ 1.0 (* c_m (/ z b))))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -1.18e-23) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.8e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 3.8e-30) {
tmp = 9.0 * (x * (y / (c_m * z)));
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-1.18d-23)) then
tmp = 1.0d0 / (z / (b / c_m))
else if (b <= 3.8d-233) then
tmp = (a / c_m) * (t * (-4.0d0))
else if (b <= 3.8d-30) then
tmp = 9.0d0 * (x * (y / (c_m * z)))
else
tmp = 1.0d0 / (c_m * (z / b))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -1.18e-23) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 3.8e-233) {
tmp = (a / c_m) * (t * -4.0);
} else if (b <= 3.8e-30) {
tmp = 9.0 * (x * (y / (c_m * z)));
} else {
tmp = 1.0 / (c_m * (z / b));
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -1.18e-23: tmp = 1.0 / (z / (b / c_m)) elif b <= 3.8e-233: tmp = (a / c_m) * (t * -4.0) elif b <= 3.8e-30: tmp = 9.0 * (x * (y / (c_m * z))) else: tmp = 1.0 / (c_m * (z / b)) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -1.18e-23) tmp = Float64(1.0 / Float64(z / Float64(b / c_m))); elseif (b <= 3.8e-233) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); elseif (b <= 3.8e-30) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(c_m * z)))); else tmp = Float64(1.0 / Float64(c_m * Float64(z / b))); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -1.18e-23) tmp = 1.0 / (z / (b / c_m)); elseif (b <= 3.8e-233) tmp = (a / c_m) * (t * -4.0); elseif (b <= 3.8e-30) tmp = 9.0 * (x * (y / (c_m * z))); else tmp = 1.0 / (c_m * (z / b)); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -1.18e-23], N[(1.0 / N[(z / N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-233], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-30], N[(9.0 * N[(x * N[(y / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(c$95$m * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -1.18 \cdot 10^{-23}:\\
\;\;\;\;\frac{1}{\frac{z}{\frac{b}{c\_m}}}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-233}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-30}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{c\_m \cdot z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{c\_m \cdot \frac{z}{b}}\\
\end{array}
\end{array}
if b < -1.18e-23Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
clear-num62.3%
inv-pow62.3%
Applied egg-rr62.3%
unpow-162.3%
Simplified62.3%
if -1.18e-23 < b < 3.8e-233Initial program 74.6%
+-commutative74.6%
associate-+r-74.6%
*-commutative74.6%
associate-*r*73.4%
*-commutative73.4%
associate-+r-73.4%
+-commutative73.4%
associate-*l*73.4%
associate-*l*77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in z around 0 72.6%
fma-define72.6%
*-commutative72.6%
*-commutative72.6%
associate-*r*74.2%
*-commutative74.2%
associate-/l*79.5%
associate-/l*80.1%
fma-define80.1%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in z around inf 49.2%
associate-*r/49.2%
associate-*r*49.2%
associate-*l/56.8%
associate-*r/56.8%
*-commutative56.8%
associate-*l*56.8%
Simplified56.8%
if 3.8e-233 < b < 3.8000000000000003e-30Initial program 82.9%
+-commutative82.9%
associate-+r-82.9%
*-commutative82.9%
associate-*r*83.1%
*-commutative83.1%
associate-+r-83.1%
+-commutative83.1%
associate-*l*83.2%
associate-*l*83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 61.4%
associate-/l*56.5%
*-commutative56.5%
Simplified56.5%
if 3.8000000000000003e-30 < b Initial program 81.9%
+-commutative81.9%
associate-+r-81.9%
*-commutative81.9%
associate-*r*84.5%
*-commutative84.5%
associate-+r-84.5%
+-commutative84.5%
associate-*l*85.8%
associate-*l*87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in b around inf 68.7%
*-commutative68.7%
Simplified68.7%
clear-num68.6%
inv-pow68.6%
*-commutative68.6%
Applied egg-rr68.6%
unpow-168.6%
associate-/l*69.2%
Simplified69.2%
Final simplification61.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y -5.8e+25)
(* x (/ (/ (* 9.0 y) c_m) z))
(if (<= y 8.6e+69)
(/ (/ (+ b (* -4.0 (* t (* z a)))) c_m) z)
(/ (+ b (* 9.0 (* x y))) (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -5.8e+25) {
tmp = x * (((9.0 * y) / c_m) / z);
} else if (y <= 8.6e+69) {
tmp = ((b + (-4.0 * (t * (z * a)))) / c_m) / z;
} else {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= (-5.8d+25)) then
tmp = x * (((9.0d0 * y) / c_m) / z)
else if (y <= 8.6d+69) then
tmp = ((b + ((-4.0d0) * (t * (z * a)))) / c_m) / z
else
tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -5.8e+25) {
tmp = x * (((9.0 * y) / c_m) / z);
} else if (y <= 8.6e+69) {
tmp = ((b + (-4.0 * (t * (z * a)))) / c_m) / z;
} else {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= -5.8e+25: tmp = x * (((9.0 * y) / c_m) / z) elif y <= 8.6e+69: tmp = ((b + (-4.0 * (t * (z * a)))) / c_m) / z else: tmp = (b + (9.0 * (x * y))) / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= -5.8e+25) tmp = Float64(x * Float64(Float64(Float64(9.0 * y) / c_m) / z)); elseif (y <= 8.6e+69) tmp = Float64(Float64(Float64(b + Float64(-4.0 * Float64(t * Float64(z * a)))) / c_m) / z); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (y <= -5.8e+25) tmp = x * (((9.0 * y) / c_m) / z); elseif (y <= 8.6e+69) tmp = ((b + (-4.0 * (t * (z * a)))) / c_m) / z; else tmp = (b + (9.0 * (x * y))) / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -5.8e+25], N[(x * N[(N[(N[(9.0 * y), $MachinePrecision] / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+69], N[(N[(N[(b + N[(-4.0 * N[(t * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision] / z), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+25}:\\
\;\;\;\;x \cdot \frac{\frac{9 \cdot y}{c\_m}}{z}\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+69}:\\
\;\;\;\;\frac{\frac{b + -4 \cdot \left(t \cdot \left(z \cdot a\right)\right)}{c\_m}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\
\end{array}
\end{array}
if y < -5.7999999999999998e25Initial program 64.6%
+-commutative64.6%
associate-+r-64.6%
*-commutative64.6%
associate-*r*64.7%
*-commutative64.7%
associate-+r-64.7%
+-commutative64.7%
associate-*l*64.7%
associate-*l*66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in z around 0 59.7%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
associate-*r*63.1%
*-commutative63.1%
associate-/l*63.1%
associate-/l*63.1%
fma-define63.1%
associate-/l*64.6%
Simplified64.6%
Taylor expanded in c around 0 70.1%
Taylor expanded in x around inf 40.4%
*-commutative40.4%
*-commutative40.4%
associate-*r/49.4%
associate-*l*49.4%
*-commutative49.4%
*-commutative49.4%
associate-/r*52.8%
associate-*r/52.8%
associate-*r/52.8%
Simplified52.8%
if -5.7999999999999998e25 < y < 8.59999999999999986e69Initial program 84.1%
+-commutative84.1%
associate-+r-84.1%
*-commutative84.1%
associate-*r*84.2%
*-commutative84.2%
associate-+r-84.2%
+-commutative84.2%
associate-*l*84.9%
associate-*l*85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in z around 0 80.4%
fma-define80.4%
*-commutative80.4%
*-commutative80.4%
associate-*r*81.9%
*-commutative81.9%
associate-/l*84.6%
associate-/l*84.7%
fma-define84.7%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in c around 0 83.1%
Taylor expanded in a around inf 70.8%
*-commutative70.8%
associate-*l*72.2%
*-commutative72.2%
Simplified72.2%
if 8.59999999999999986e69 < y Initial program 86.3%
+-commutative86.3%
associate-+r-86.3%
*-commutative86.3%
associate-*r*90.1%
*-commutative90.1%
associate-+r-90.1%
+-commutative90.1%
associate-*l*90.1%
associate-*l*90.1%
*-commutative90.1%
Simplified90.1%
Taylor expanded in x around inf 84.0%
Final simplification70.1%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= y -8.5e-16)
(* x (/ (/ (* 9.0 y) c_m) z))
(if (<= y 3.6e+22)
(/ (- b (* 4.0 (* a (* z t)))) (* c_m z))
(/ (+ b (* 9.0 (* x y))) (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -8.5e-16) {
tmp = x * (((9.0 * y) / c_m) / z);
} else if (y <= 3.6e+22) {
tmp = (b - (4.0 * (a * (z * t)))) / (c_m * z);
} else {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (y <= (-8.5d-16)) then
tmp = x * (((9.0d0 * y) / c_m) / z)
else if (y <= 3.6d+22) then
tmp = (b - (4.0d0 * (a * (z * t)))) / (c_m * z)
else
tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (y <= -8.5e-16) {
tmp = x * (((9.0 * y) / c_m) / z);
} else if (y <= 3.6e+22) {
tmp = (b - (4.0 * (a * (z * t)))) / (c_m * z);
} else {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if y <= -8.5e-16: tmp = x * (((9.0 * y) / c_m) / z) elif y <= 3.6e+22: tmp = (b - (4.0 * (a * (z * t)))) / (c_m * z) else: tmp = (b + (9.0 * (x * y))) / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (y <= -8.5e-16) tmp = Float64(x * Float64(Float64(Float64(9.0 * y) / c_m) / z)); elseif (y <= 3.6e+22) tmp = Float64(Float64(b - Float64(4.0 * Float64(a * Float64(z * t)))) / Float64(c_m * z)); else tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (y <= -8.5e-16) tmp = x * (((9.0 * y) / c_m) / z); elseif (y <= 3.6e+22) tmp = (b - (4.0 * (a * (z * t)))) / (c_m * z); else tmp = (b + (9.0 * (x * y))) / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[y, -8.5e-16], N[(x * N[(N[(N[(9.0 * y), $MachinePrecision] / c$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+22], N[(N[(b - N[(4.0 * N[(a * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \frac{\frac{9 \cdot y}{c\_m}}{z}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+22}:\\
\;\;\;\;\frac{b - 4 \cdot \left(a \cdot \left(z \cdot t\right)\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\
\end{array}
\end{array}
if y < -8.5000000000000001e-16Initial program 67.4%
+-commutative67.4%
associate-+r-67.4%
*-commutative67.4%
associate-*r*68.9%
*-commutative68.9%
associate-+r-68.9%
+-commutative68.9%
associate-*l*68.9%
associate-*l*70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in z around 0 63.3%
fma-define63.3%
*-commutative63.3%
*-commutative63.3%
associate-*r*67.6%
*-commutative67.6%
associate-/l*67.6%
associate-/l*66.2%
fma-define66.2%
associate-/l*67.4%
Simplified67.4%
Taylor expanded in c around 0 72.1%
Taylor expanded in x around inf 41.4%
*-commutative41.4%
*-commutative41.4%
associate-*r/49.0%
associate-*l*49.0%
*-commutative49.0%
*-commutative49.0%
associate-/r*51.8%
associate-*r/51.8%
associate-*r/51.8%
Simplified51.8%
if -8.5000000000000001e-16 < y < 3.6e22Initial program 84.0%
+-commutative84.0%
associate-+r-84.0%
*-commutative84.0%
associate-*r*82.7%
*-commutative82.7%
associate-+r-82.7%
+-commutative82.7%
associate-*l*83.4%
associate-*l*84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in x around 0 74.9%
if 3.6e22 < y Initial program 86.5%
+-commutative86.5%
associate-+r-86.5%
*-commutative86.5%
associate-*r*91.4%
*-commutative91.4%
associate-+r-91.4%
+-commutative91.4%
associate-*l*91.4%
associate-*l*91.4%
*-commutative91.4%
Simplified91.4%
Taylor expanded in x around inf 84.5%
Final simplification70.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= a -1.1e-25)
(* a (/ (* t -4.0) c_m))
(if (<= a 1.6e+151)
(/ (+ (* x (* 9.0 y)) b) (* c_m z))
(* (/ a c_m) (* t -4.0))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (a <= -1.1e-25) {
tmp = a * ((t * -4.0) / c_m);
} else if (a <= 1.6e+151) {
tmp = ((x * (9.0 * y)) + b) / (c_m * z);
} else {
tmp = (a / c_m) * (t * -4.0);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (a <= (-1.1d-25)) then
tmp = a * ((t * (-4.0d0)) / c_m)
else if (a <= 1.6d+151) then
tmp = ((x * (9.0d0 * y)) + b) / (c_m * z)
else
tmp = (a / c_m) * (t * (-4.0d0))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (a <= -1.1e-25) {
tmp = a * ((t * -4.0) / c_m);
} else if (a <= 1.6e+151) {
tmp = ((x * (9.0 * y)) + b) / (c_m * z);
} else {
tmp = (a / c_m) * (t * -4.0);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if a <= -1.1e-25: tmp = a * ((t * -4.0) / c_m) elif a <= 1.6e+151: tmp = ((x * (9.0 * y)) + b) / (c_m * z) else: tmp = (a / c_m) * (t * -4.0) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (a <= -1.1e-25) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); elseif (a <= 1.6e+151) tmp = Float64(Float64(Float64(x * Float64(9.0 * y)) + b) / Float64(c_m * z)); else tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (a <= -1.1e-25) tmp = a * ((t * -4.0) / c_m); elseif (a <= 1.6e+151) tmp = ((x * (9.0 * y)) + b) / (c_m * z); else tmp = (a / c_m) * (t * -4.0); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[a, -1.1e-25], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+151], N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{-25}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+151}:\\
\;\;\;\;\frac{x \cdot \left(9 \cdot y\right) + b}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\end{array}
\end{array}
if a < -1.1000000000000001e-25Initial program 82.1%
+-commutative82.1%
associate-+r-82.1%
*-commutative82.1%
associate-*r*77.3%
*-commutative77.3%
associate-+r-77.3%
+-commutative77.3%
associate-*l*77.3%
associate-*l*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in z around inf 47.6%
associate-/l*50.3%
associate-*r*50.3%
*-commutative50.3%
associate-*r*50.3%
*-commutative50.3%
associate-*l/50.3%
Simplified50.3%
if -1.1000000000000001e-25 < a < 1.59999999999999997e151Initial program 80.9%
+-commutative80.9%
associate-+r-80.9%
*-commutative80.9%
associate-*r*85.0%
*-commutative85.0%
associate-+r-85.0%
+-commutative85.0%
associate-*l*85.0%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in x around inf 73.6%
associate-*r*73.7%
*-commutative73.7%
associate-*r*73.7%
Simplified73.7%
if 1.59999999999999997e151 < a Initial program 70.0%
+-commutative70.0%
associate-+r-70.0%
*-commutative70.0%
associate-*r*62.4%
*-commutative62.4%
associate-+r-62.4%
+-commutative62.4%
associate-*l*66.3%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around 0 66.7%
fma-define66.7%
*-commutative66.7%
*-commutative66.7%
associate-*r*63.1%
*-commutative63.1%
associate-/l*66.8%
associate-/l*70.2%
fma-define70.2%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in z around inf 45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-*l/62.6%
associate-*r/66.1%
*-commutative66.1%
associate-*l*66.1%
Simplified66.1%
Final simplification67.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= a -1e-25)
(* a (/ (* t -4.0) c_m))
(if (<= a 2.1e+148)
(/ (+ b (* 9.0 (* x y))) (* c_m z))
(* (/ a c_m) (* t -4.0))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (a <= -1e-25) {
tmp = a * ((t * -4.0) / c_m);
} else if (a <= 2.1e+148) {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
} else {
tmp = (a / c_m) * (t * -4.0);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (a <= (-1d-25)) then
tmp = a * ((t * (-4.0d0)) / c_m)
else if (a <= 2.1d+148) then
tmp = (b + (9.0d0 * (x * y))) / (c_m * z)
else
tmp = (a / c_m) * (t * (-4.0d0))
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (a <= -1e-25) {
tmp = a * ((t * -4.0) / c_m);
} else if (a <= 2.1e+148) {
tmp = (b + (9.0 * (x * y))) / (c_m * z);
} else {
tmp = (a / c_m) * (t * -4.0);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if a <= -1e-25: tmp = a * ((t * -4.0) / c_m) elif a <= 2.1e+148: tmp = (b + (9.0 * (x * y))) / (c_m * z) else: tmp = (a / c_m) * (t * -4.0) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (a <= -1e-25) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); elseif (a <= 2.1e+148) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(c_m * z)); else tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (a <= -1e-25) tmp = a * ((t * -4.0) / c_m); elseif (a <= 2.1e+148) tmp = (b + (9.0 * (x * y))) / (c_m * z); else tmp = (a / c_m) * (t * -4.0); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[a, -1e-25], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+148], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{-25}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+148}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{c\_m \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\end{array}
\end{array}
if a < -1.00000000000000004e-25Initial program 82.1%
+-commutative82.1%
associate-+r-82.1%
*-commutative82.1%
associate-*r*77.3%
*-commutative77.3%
associate-+r-77.3%
+-commutative77.3%
associate-*l*77.3%
associate-*l*80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in z around inf 47.6%
associate-/l*50.3%
associate-*r*50.3%
*-commutative50.3%
associate-*r*50.3%
*-commutative50.3%
associate-*l/50.3%
Simplified50.3%
if -1.00000000000000004e-25 < a < 2.09999999999999999e148Initial program 80.9%
+-commutative80.9%
associate-+r-80.9%
*-commutative80.9%
associate-*r*85.0%
*-commutative85.0%
associate-+r-85.0%
+-commutative85.0%
associate-*l*85.0%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in x around inf 73.6%
if 2.09999999999999999e148 < a Initial program 70.0%
+-commutative70.0%
associate-+r-70.0%
*-commutative70.0%
associate-*r*62.4%
*-commutative62.4%
associate-+r-62.4%
+-commutative62.4%
associate-*l*66.3%
associate-*l*70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in z around 0 66.7%
fma-define66.7%
*-commutative66.7%
*-commutative66.7%
associate-*r*63.1%
*-commutative63.1%
associate-/l*66.8%
associate-/l*70.2%
fma-define70.2%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in z around inf 45.2%
associate-*r/45.2%
associate-*r*45.2%
associate-*l/62.6%
associate-*r/66.1%
*-commutative66.1%
associate-*l*66.1%
Simplified66.1%
Final simplification67.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -4.9e-24)
(/ 1.0 (/ z (/ b c_m)))
(if (<= b 2.8e-54) (* (/ a c_m) (* t -4.0)) (/ b (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -4.9e-24) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 2.8e-54) {
tmp = (a / c_m) * (t * -4.0);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-4.9d-24)) then
tmp = 1.0d0 / (z / (b / c_m))
else if (b <= 2.8d-54) then
tmp = (a / c_m) * (t * (-4.0d0))
else
tmp = b / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -4.9e-24) {
tmp = 1.0 / (z / (b / c_m));
} else if (b <= 2.8e-54) {
tmp = (a / c_m) * (t * -4.0);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -4.9e-24: tmp = 1.0 / (z / (b / c_m)) elif b <= 2.8e-54: tmp = (a / c_m) * (t * -4.0) else: tmp = b / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -4.9e-24) tmp = Float64(1.0 / Float64(z / Float64(b / c_m))); elseif (b <= 2.8e-54) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); else tmp = Float64(b / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -4.9e-24) tmp = 1.0 / (z / (b / c_m)); elseif (b <= 2.8e-54) tmp = (a / c_m) * (t * -4.0); else tmp = b / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -4.9e-24], N[(1.0 / N[(z / N[(b / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-54], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -4.9 \cdot 10^{-24}:\\
\;\;\;\;\frac{1}{\frac{z}{\frac{b}{c\_m}}}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-54}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\
\end{array}
\end{array}
if b < -4.9000000000000001e-24Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
clear-num62.3%
inv-pow62.3%
Applied egg-rr62.3%
unpow-162.3%
Simplified62.3%
if -4.9000000000000001e-24 < b < 2.8000000000000002e-54Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*75.8%
*-commutative75.8%
associate-+r-75.8%
+-commutative75.8%
associate-*l*75.8%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around 0 76.0%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
associate-*r*78.9%
*-commutative78.9%
associate-/l*82.5%
associate-/l*82.9%
fma-define82.9%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in z around inf 48.3%
associate-*r/48.3%
associate-*r*48.3%
associate-*l/52.7%
associate-*r/52.7%
*-commutative52.7%
associate-*l*52.7%
Simplified52.7%
if 2.8000000000000002e-54 < b Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
*-commutative83.1%
associate-*r*85.5%
*-commutative85.5%
associate-+r-85.5%
+-commutative85.5%
associate-*l*86.7%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in b around inf 68.3%
*-commutative68.3%
Simplified68.3%
Final simplification60.1%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -3.6e-25)
(/ (/ b c_m) z)
(if (<= b 1.15e-53) (* (/ a c_m) (* t -4.0)) (/ b (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -3.6e-25) {
tmp = (b / c_m) / z;
} else if (b <= 1.15e-53) {
tmp = (a / c_m) * (t * -4.0);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-3.6d-25)) then
tmp = (b / c_m) / z
else if (b <= 1.15d-53) then
tmp = (a / c_m) * (t * (-4.0d0))
else
tmp = b / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -3.6e-25) {
tmp = (b / c_m) / z;
} else if (b <= 1.15e-53) {
tmp = (a / c_m) * (t * -4.0);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -3.6e-25: tmp = (b / c_m) / z elif b <= 1.15e-53: tmp = (a / c_m) * (t * -4.0) else: tmp = b / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -3.6e-25) tmp = Float64(Float64(b / c_m) / z); elseif (b <= 1.15e-53) tmp = Float64(Float64(a / c_m) * Float64(t * -4.0)); else tmp = Float64(b / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -3.6e-25) tmp = (b / c_m) / z; elseif (b <= 1.15e-53) tmp = (a / c_m) * (t * -4.0); else tmp = b / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -3.6e-25], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 1.15e-53], N[(N[(a / c$95$m), $MachinePrecision] * N[(t * -4.0), $MachinePrecision]), $MachinePrecision], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{-25}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-53}:\\
\;\;\;\;\frac{a}{c\_m} \cdot \left(t \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\
\end{array}
\end{array}
if b < -3.5999999999999999e-25Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
if -3.5999999999999999e-25 < b < 1.1500000000000001e-53Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*75.8%
*-commutative75.8%
associate-+r-75.8%
+-commutative75.8%
associate-*l*75.8%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around 0 76.0%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
associate-*r*78.9%
*-commutative78.9%
associate-/l*82.5%
associate-/l*82.9%
fma-define82.9%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in z around inf 48.3%
associate-*r/48.3%
associate-*r*48.3%
associate-*l/52.7%
associate-*r/52.7%
*-commutative52.7%
associate-*l*52.7%
Simplified52.7%
if 1.1500000000000001e-53 < b Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
*-commutative83.1%
associate-*r*85.5%
*-commutative85.5%
associate-+r-85.5%
+-commutative85.5%
associate-*l*86.7%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in b around inf 68.3%
*-commutative68.3%
Simplified68.3%
Final simplification60.0%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -2.2e-26)
(/ (/ b c_m) z)
(if (<= b 4.2e-54) (* a (/ (* t -4.0) c_m)) (/ b (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.2e-26) {
tmp = (b / c_m) / z;
} else if (b <= 4.2e-54) {
tmp = a * ((t * -4.0) / c_m);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-2.2d-26)) then
tmp = (b / c_m) / z
else if (b <= 4.2d-54) then
tmp = a * ((t * (-4.0d0)) / c_m)
else
tmp = b / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -2.2e-26) {
tmp = (b / c_m) / z;
} else if (b <= 4.2e-54) {
tmp = a * ((t * -4.0) / c_m);
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -2.2e-26: tmp = (b / c_m) / z elif b <= 4.2e-54: tmp = a * ((t * -4.0) / c_m) else: tmp = b / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -2.2e-26) tmp = Float64(Float64(b / c_m) / z); elseif (b <= 4.2e-54) tmp = Float64(a * Float64(Float64(t * -4.0) / c_m)); else tmp = Float64(b / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -2.2e-26) tmp = (b / c_m) / z; elseif (b <= 4.2e-54) tmp = a * ((t * -4.0) / c_m); else tmp = b / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -2.2e-26], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 4.2e-54], N[(a * N[(N[(t * -4.0), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.2 \cdot 10^{-26}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \frac{t \cdot -4}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\
\end{array}
\end{array}
if b < -2.2000000000000001e-26Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
if -2.2000000000000001e-26 < b < 4.2e-54Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*75.8%
*-commutative75.8%
associate-+r-75.8%
+-commutative75.8%
associate-*l*75.8%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around inf 48.3%
associate-/l*52.2%
associate-*r*52.2%
*-commutative52.2%
associate-*r*52.2%
*-commutative52.2%
associate-*l/52.2%
Simplified52.2%
if 4.2e-54 < b Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
*-commutative83.1%
associate-*r*85.5%
*-commutative85.5%
associate-+r-85.5%
+-commutative85.5%
associate-*l*86.7%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in b around inf 68.3%
*-commutative68.3%
Simplified68.3%
Final simplification59.8%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= b -1.92e-25)
(/ (/ b c_m) z)
(if (<= b 6.5e-54) (* a (* t (/ -4.0 c_m))) (/ b (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -1.92e-25) {
tmp = (b / c_m) / z;
} else if (b <= 6.5e-54) {
tmp = a * (t * (-4.0 / c_m));
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
real(8) :: tmp
if (b <= (-1.92d-25)) then
tmp = (b / c_m) / z
else if (b <= 6.5d-54) then
tmp = a * (t * ((-4.0d0) / c_m))
else
tmp = b / (c_m * z)
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (b <= -1.92e-25) {
tmp = (b / c_m) / z;
} else if (b <= 6.5e-54) {
tmp = a * (t * (-4.0 / c_m));
} else {
tmp = b / (c_m * z);
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): tmp = 0 if b <= -1.92e-25: tmp = (b / c_m) / z elif b <= 6.5e-54: tmp = a * (t * (-4.0 / c_m)) else: tmp = b / (c_m * z) return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (b <= -1.92e-25) tmp = Float64(Float64(b / c_m) / z); elseif (b <= 6.5e-54) tmp = Float64(a * Float64(t * Float64(-4.0 / c_m))); else tmp = Float64(b / Float64(c_m * z)); end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0; if (b <= -1.92e-25) tmp = (b / c_m) / z; elseif (b <= 6.5e-54) tmp = a * (t * (-4.0 / c_m)); else tmp = b / (c_m * z); end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[b, -1.92e-25], N[(N[(b / c$95$m), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 6.5e-54], N[(a * N[(t * N[(-4.0 / c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -1.92 \cdot 10^{-25}:\\
\;\;\;\;\frac{\frac{b}{c\_m}}{z}\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(t \cdot \frac{-4}{c\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{c\_m \cdot z}\\
\end{array}
\end{array}
if b < -1.9200000000000001e-25Initial program 82.4%
+-commutative82.4%
associate-+r-82.4%
*-commutative82.4%
associate-*r*83.9%
*-commutative83.9%
associate-+r-83.9%
+-commutative83.9%
associate-*l*83.9%
associate-*l*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in z around 0 75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
associate-*r*75.3%
*-commutative75.3%
associate-/l*75.4%
associate-/l*79.6%
fma-define79.6%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in b around inf 62.2%
if -1.9200000000000001e-25 < b < 6.49999999999999991e-54Initial program 76.5%
+-commutative76.5%
associate-+r-76.5%
*-commutative76.5%
associate-*r*75.8%
*-commutative75.8%
associate-+r-75.8%
+-commutative75.8%
associate-*l*75.8%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around 0 76.0%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
associate-*r*78.9%
*-commutative78.9%
associate-/l*82.5%
associate-/l*82.9%
fma-define82.9%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in c around 0 77.0%
Taylor expanded in t around inf 75.2%
Taylor expanded in t around inf 48.3%
associate-*r/48.3%
*-commutative48.3%
associate-*r/48.2%
associate-*r*52.2%
Simplified52.2%
if 6.49999999999999991e-54 < b Initial program 83.1%
+-commutative83.1%
associate-+r-83.1%
*-commutative83.1%
associate-*r*85.5%
*-commutative85.5%
associate-+r-85.5%
+-commutative85.5%
associate-*l*86.7%
associate-*l*88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in b around inf 68.3%
*-commutative68.3%
Simplified68.3%
Final simplification59.8%
c\_m = (fabs.f64 c) c\_s = (copysign.f64 #s(literal 1 binary64) c) (FPCore (c_s x y z t a b c_m) :precision binary64 (* c_s (/ b (* c_m z))))
c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (c_m * z));
}
c\_m = abs(c)
c\_s = copysign(1.0d0, c)
real(8) function code(c_s, x, y, z, t, a, b, c_m)
real(8), intent (in) :: c_s
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), intent (in) :: b
real(8), intent (in) :: c_m
code = c_s * (b / (c_m * z))
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (c_m * z));
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): return c_s * (b / (c_m * z))
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) return Float64(c_s * Float64(b / Float64(c_m * z))) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp = code(c_s, x, y, z, t, a, b, c_m) tmp = c_s * (b / (c_m * z)); end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * N[(b / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \frac{b}{c\_m \cdot z}
\end{array}
Initial program 80.1%
+-commutative80.1%
associate-+r-80.1%
*-commutative80.1%
associate-*r*80.9%
*-commutative80.9%
associate-+r-80.9%
+-commutative80.9%
associate-*l*81.3%
associate-*l*82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in b around inf 45.3%
*-commutative45.3%
Simplified45.3%
Final simplification45.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ b (* c z)))
(t_2 (* 4.0 (/ (* a t) c)))
(t_3 (* (* x 9.0) y))
(t_4 (+ (- t_3 (* (* (* z 4.0) t) a)) b))
(t_5 (/ t_4 (* z c)))
(t_6 (/ (+ (- t_3 (* (* z 4.0) (* t a))) b) (* z c))))
(if (< t_5 -1.100156740804105e-171)
t_6
(if (< t_5 0.0)
(/ (/ t_4 z) c)
(if (< t_5 1.1708877911747488e-53)
t_6
(if (< t_5 2.876823679546137e+130)
(- (+ (* (* 9.0 (/ y c)) (/ x z)) t_1) t_2)
(if (< t_5 1.3838515042456319e+158)
t_6
(- (+ (* 9.0 (* (/ y (* c z)) x)) t_1) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = b / (c * z)
t_2 = 4.0d0 * ((a * t) / c)
t_3 = (x * 9.0d0) * y
t_4 = (t_3 - (((z * 4.0d0) * t) * a)) + b
t_5 = t_4 / (z * c)
t_6 = ((t_3 - ((z * 4.0d0) * (t * a))) + b) / (z * c)
if (t_5 < (-1.100156740804105d-171)) then
tmp = t_6
else if (t_5 < 0.0d0) then
tmp = (t_4 / z) / c
else if (t_5 < 1.1708877911747488d-53) then
tmp = t_6
else if (t_5 < 2.876823679546137d+130) then
tmp = (((9.0d0 * (y / c)) * (x / z)) + t_1) - t_2
else if (t_5 < 1.3838515042456319d+158) then
tmp = t_6
else
tmp = ((9.0d0 * ((y / (c * z)) * x)) + t_1) - t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = b / (c * z);
double t_2 = 4.0 * ((a * t) / c);
double t_3 = (x * 9.0) * y;
double t_4 = (t_3 - (((z * 4.0) * t) * a)) + b;
double t_5 = t_4 / (z * c);
double t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c);
double tmp;
if (t_5 < -1.100156740804105e-171) {
tmp = t_6;
} else if (t_5 < 0.0) {
tmp = (t_4 / z) / c;
} else if (t_5 < 1.1708877911747488e-53) {
tmp = t_6;
} else if (t_5 < 2.876823679546137e+130) {
tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2;
} else if (t_5 < 1.3838515042456319e+158) {
tmp = t_6;
} else {
tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = b / (c * z) t_2 = 4.0 * ((a * t) / c) t_3 = (x * 9.0) * y t_4 = (t_3 - (((z * 4.0) * t) * a)) + b t_5 = t_4 / (z * c) t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c) tmp = 0 if t_5 < -1.100156740804105e-171: tmp = t_6 elif t_5 < 0.0: tmp = (t_4 / z) / c elif t_5 < 1.1708877911747488e-53: tmp = t_6 elif t_5 < 2.876823679546137e+130: tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2 elif t_5 < 1.3838515042456319e+158: tmp = t_6 else: tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(b / Float64(c * z)) t_2 = Float64(4.0 * Float64(Float64(a * t) / c)) t_3 = Float64(Float64(x * 9.0) * y) t_4 = Float64(Float64(t_3 - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) t_5 = Float64(t_4 / Float64(z * c)) t_6 = Float64(Float64(Float64(t_3 - Float64(Float64(z * 4.0) * Float64(t * a))) + b) / Float64(z * c)) tmp = 0.0 if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = Float64(Float64(t_4 / z) / c); elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = Float64(Float64(Float64(Float64(9.0 * Float64(y / c)) * Float64(x / z)) + t_1) - t_2); elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = Float64(Float64(Float64(9.0 * Float64(Float64(y / Float64(c * z)) * x)) + t_1) - t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = b / (c * z); t_2 = 4.0 * ((a * t) / c); t_3 = (x * 9.0) * y; t_4 = (t_3 - (((z * 4.0) * t) * a)) + b; t_5 = t_4 / (z * c); t_6 = ((t_3 - ((z * 4.0) * (t * a))) + b) / (z * c); tmp = 0.0; if (t_5 < -1.100156740804105e-171) tmp = t_6; elseif (t_5 < 0.0) tmp = (t_4 / z) / c; elseif (t_5 < 1.1708877911747488e-53) tmp = t_6; elseif (t_5 < 2.876823679546137e+130) tmp = (((9.0 * (y / c)) * (x / z)) + t_1) - t_2; elseif (t_5 < 1.3838515042456319e+158) tmp = t_6; else tmp = ((9.0 * ((y / (c * z)) * x)) + t_1) - t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$3 - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$4 / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(t$95$3 - N[(N[(z * 4.0), $MachinePrecision] * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$5, -1.100156740804105e-171], t$95$6, If[Less[t$95$5, 0.0], N[(N[(t$95$4 / z), $MachinePrecision] / c), $MachinePrecision], If[Less[t$95$5, 1.1708877911747488e-53], t$95$6, If[Less[t$95$5, 2.876823679546137e+130], N[(N[(N[(N[(9.0 * N[(y / c), $MachinePrecision]), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[Less[t$95$5, 1.3838515042456319e+158], t$95$6, N[(N[(N[(9.0 * N[(N[(y / N[(c * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b}{c \cdot z}\\
t_2 := 4 \cdot \frac{a \cdot t}{c}\\
t_3 := \left(x \cdot 9\right) \cdot y\\
t_4 := \left(t\_3 - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b\\
t_5 := \frac{t\_4}{z \cdot c}\\
t_6 := \frac{\left(t\_3 - \left(z \cdot 4\right) \cdot \left(t \cdot a\right)\right) + b}{z \cdot c}\\
\mathbf{if}\;t\_5 < -1.100156740804105 \cdot 10^{-171}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t\_5 < 0:\\
\;\;\;\;\frac{\frac{t\_4}{z}}{c}\\
\mathbf{elif}\;t\_5 < 1.1708877911747488 \cdot 10^{-53}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t\_5 < 2.876823679546137 \cdot 10^{+130}:\\
\;\;\;\;\left(\left(9 \cdot \frac{y}{c}\right) \cdot \frac{x}{z} + t\_1\right) - t\_2\\
\mathbf{elif}\;t\_5 < 1.3838515042456319 \cdot 10^{+158}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;\left(9 \cdot \left(\frac{y}{c \cdot z} \cdot x\right) + t\_1\right) - t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024135
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:alt
(! :herbie-platform default (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) -220031348160821/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 0) (/ (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 365902434742109/31250000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 28768236795461370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ (* (* 9 (/ y c)) (/ x z)) (/ b (* c z))) (* 4 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 138385150424563190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (- (+ (* 9 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4 (/ (* a t) c)))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))