
(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 16 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}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* x (* 9.0 y))))
(if (or (<= z -1.95e-26) (not (<= z 1.12e-48)))
(/ (+ (/ (+ t_1 b) z) (* t (* a -4.0))) c)
(/ (+ b (- t_1 (* 4.0 (* t (* z a))))) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x * (9.0 * y);
double tmp;
if ((z <= -1.95e-26) || !(z <= 1.12e-48)) {
tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c);
}
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) :: tmp
t_1 = x * (9.0d0 * y)
if ((z <= (-1.95d-26)) .or. (.not. (z <= 1.12d-48))) then
tmp = (((t_1 + b) / z) + (t * (a * (-4.0d0)))) / c
else
tmp = (b + (t_1 - (4.0d0 * (t * (z * a))))) / (z * c)
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 = x * (9.0 * y);
double tmp;
if ((z <= -1.95e-26) || !(z <= 1.12e-48)) {
tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c;
} else {
tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x * (9.0 * y) tmp = 0 if (z <= -1.95e-26) or not (z <= 1.12e-48): tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c else: tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x * Float64(9.0 * y)) tmp = 0.0 if ((z <= -1.95e-26) || !(z <= 1.12e-48)) tmp = Float64(Float64(Float64(Float64(t_1 + b) / z) + Float64(t * Float64(a * -4.0))) / c); else tmp = Float64(Float64(b + Float64(t_1 - Float64(4.0 * Float64(t * Float64(z * a))))) / Float64(z * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x * (9.0 * y); tmp = 0.0; if ((z <= -1.95e-26) || ~((z <= 1.12e-48))) tmp = (((t_1 + b) / z) + (t * (a * -4.0))) / c; else tmp = (b + (t_1 - (4.0 * (t * (z * a))))) / (z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -1.95e-26], N[Not[LessEqual[z, 1.12e-48]], $MachinePrecision]], N[(N[(N[(N[(t$95$1 + b), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(b + N[(t$95$1 - N[(4.0 * N[(t * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(9 \cdot y\right)\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{-26} \lor \neg \left(z \leq 1.12 \cdot 10^{-48}\right):\\
\;\;\;\;\frac{\frac{t_1 + b}{z} + t \cdot \left(a \cdot -4\right)}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{b + \left(t_1 - 4 \cdot \left(t \cdot \left(z \cdot a\right)\right)\right)}{z \cdot c}\\
\end{array}
\end{array}
if z < -1.94999999999999993e-26 or 1.11999999999999999e-48 < z Initial program 73.6%
associate-/r*79.2%
Simplified93.1%
fma-udef93.1%
Applied egg-rr93.1%
if -1.94999999999999993e-26 < z < 1.11999999999999999e-48Initial program 94.5%
associate-*l*94.5%
associate-*l*87.7%
Simplified87.7%
Taylor expanded in z around 0 94.5%
associate-*r*87.7%
*-commutative87.7%
associate-*l*96.0%
Simplified96.0%
Final simplification94.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* x (/ y (* z c))))) (t_2 (/ (/ b c) z)))
(if (<= b -4.5e-65)
t_2
(if (<= b -2.95e-204)
t_1
(if (<= b 7.8e-283)
(* -4.0 (/ (* t a) c))
(if (<= b 3e-141)
t_1
(if (<= b 7.5e-30)
(* -4.0 (/ a (/ c t)))
(if (<= b 2.2e+49) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = (b / c) / z;
double tmp;
if (b <= -4.5e-65) {
tmp = t_2;
} else if (b <= -2.95e-204) {
tmp = t_1;
} else if (b <= 7.8e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 3e-141) {
tmp = t_1;
} else if (b <= 7.5e-30) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 2.2e+49) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = 9.0d0 * (x * (y / (z * c)))
t_2 = (b / c) / z
if (b <= (-4.5d-65)) then
tmp = t_2
else if (b <= (-2.95d-204)) then
tmp = t_1
else if (b <= 7.8d-283) then
tmp = (-4.0d0) * ((t * a) / c)
else if (b <= 3d-141) then
tmp = t_1
else if (b <= 7.5d-30) then
tmp = (-4.0d0) * (a / (c / t))
else if (b <= 2.2d+49) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = (b / c) / z;
double tmp;
if (b <= -4.5e-65) {
tmp = t_2;
} else if (b <= -2.95e-204) {
tmp = t_1;
} else if (b <= 7.8e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 3e-141) {
tmp = t_1;
} else if (b <= 7.5e-30) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 2.2e+49) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * (x * (y / (z * c))) t_2 = (b / c) / z tmp = 0 if b <= -4.5e-65: tmp = t_2 elif b <= -2.95e-204: tmp = t_1 elif b <= 7.8e-283: tmp = -4.0 * ((t * a) / c) elif b <= 3e-141: tmp = t_1 elif b <= 7.5e-30: tmp = -4.0 * (a / (c / t)) elif b <= 2.2e+49: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))) t_2 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -4.5e-65) tmp = t_2; elseif (b <= -2.95e-204) tmp = t_1; elseif (b <= 7.8e-283) tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); elseif (b <= 3e-141) tmp = t_1; elseif (b <= 7.5e-30) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (b <= 2.2e+49) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * (x * (y / (z * c))); t_2 = (b / c) / z; tmp = 0.0; if (b <= -4.5e-65) tmp = t_2; elseif (b <= -2.95e-204) tmp = t_1; elseif (b <= 7.8e-283) tmp = -4.0 * ((t * a) / c); elseif (b <= 3e-141) tmp = t_1; elseif (b <= 7.5e-30) tmp = -4.0 * (a / (c / t)); elseif (b <= 2.2e+49) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -4.5e-65], t$95$2, If[LessEqual[b, -2.95e-204], t$95$1, If[LessEqual[b, 7.8e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-141], t$95$1, If[LessEqual[b, 7.5e-30], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+49], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.95 \cdot 10^{-204}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-30}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.4999999999999998e-65 or 2.2000000000000001e49 < b Initial program 86.4%
associate-*l*86.4%
associate-*l*84.0%
Simplified84.0%
Taylor expanded in b around inf 54.8%
associate-/r*57.2%
Simplified57.2%
if -4.4999999999999998e-65 < b < -2.9500000000000001e-204 or 7.8000000000000004e-283 < b < 2.99999999999999983e-141 or 7.5000000000000006e-30 < b < 2.2000000000000001e49Initial program 81.6%
associate-*l*81.8%
associate-*l*81.8%
Simplified81.8%
Taylor expanded in z around 0 81.8%
associate-*r*81.8%
*-commutative81.8%
associate-*l*82.7%
Simplified82.7%
Taylor expanded in x around inf 58.1%
associate-/l*59.4%
*-commutative59.4%
associate-/r/57.1%
Simplified57.1%
if -2.9500000000000001e-204 < b < 7.8000000000000004e-283Initial program 76.3%
associate-*l*76.4%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in z around inf 65.2%
if 2.99999999999999983e-141 < b < 7.5000000000000006e-30Initial program 87.6%
associate-*l*87.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
associate-/l*54.0%
Simplified54.0%
Final simplification57.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* x (/ y (* z c))))) (t_2 (/ (/ b c) z)))
(if (<= b -3.8e-65)
t_2
(if (<= b -1.24e-204)
t_1
(if (<= b 4.6e-283)
(* -4.0 (/ (* t a) c))
(if (<= b 1.45e-139)
t_1
(if (<= b 5.5e-28)
(* -4.0 (/ a (/ c t)))
(if (<= b 1.05e+46) (* 9.0 (/ y (/ (* z c) x))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = (b / c) / z;
double tmp;
if (b <= -3.8e-65) {
tmp = t_2;
} else if (b <= -1.24e-204) {
tmp = t_1;
} else if (b <= 4.6e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 1.45e-139) {
tmp = t_1;
} else if (b <= 5.5e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 1.05e+46) {
tmp = 9.0 * (y / ((z * c) / x));
} else {
tmp = 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) :: tmp
t_1 = 9.0d0 * (x * (y / (z * c)))
t_2 = (b / c) / z
if (b <= (-3.8d-65)) then
tmp = t_2
else if (b <= (-1.24d-204)) then
tmp = t_1
else if (b <= 4.6d-283) then
tmp = (-4.0d0) * ((t * a) / c)
else if (b <= 1.45d-139) then
tmp = t_1
else if (b <= 5.5d-28) then
tmp = (-4.0d0) * (a / (c / t))
else if (b <= 1.05d+46) then
tmp = 9.0d0 * (y / ((z * c) / x))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * (x * (y / (z * c)));
double t_2 = (b / c) / z;
double tmp;
if (b <= -3.8e-65) {
tmp = t_2;
} else if (b <= -1.24e-204) {
tmp = t_1;
} else if (b <= 4.6e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 1.45e-139) {
tmp = t_1;
} else if (b <= 5.5e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 1.05e+46) {
tmp = 9.0 * (y / ((z * c) / x));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * (x * (y / (z * c))) t_2 = (b / c) / z tmp = 0 if b <= -3.8e-65: tmp = t_2 elif b <= -1.24e-204: tmp = t_1 elif b <= 4.6e-283: tmp = -4.0 * ((t * a) / c) elif b <= 1.45e-139: tmp = t_1 elif b <= 5.5e-28: tmp = -4.0 * (a / (c / t)) elif b <= 1.05e+46: tmp = 9.0 * (y / ((z * c) / x)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))) t_2 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -3.8e-65) tmp = t_2; elseif (b <= -1.24e-204) tmp = t_1; elseif (b <= 4.6e-283) tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); elseif (b <= 1.45e-139) tmp = t_1; elseif (b <= 5.5e-28) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (b <= 1.05e+46) tmp = Float64(9.0 * Float64(y / Float64(Float64(z * c) / x))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * (x * (y / (z * c))); t_2 = (b / c) / z; tmp = 0.0; if (b <= -3.8e-65) tmp = t_2; elseif (b <= -1.24e-204) tmp = t_1; elseif (b <= 4.6e-283) tmp = -4.0 * ((t * a) / c); elseif (b <= 1.45e-139) tmp = t_1; elseif (b <= 5.5e-28) tmp = -4.0 * (a / (c / t)); elseif (b <= 1.05e+46) tmp = 9.0 * (y / ((z * c) / x)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -3.8e-65], t$95$2, If[LessEqual[b, -1.24e-204], t$95$1, If[LessEqual[b, 4.6e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-139], t$95$1, If[LessEqual[b, 5.5e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+46], N[(9.0 * N[(y / N[(N[(z * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.24 \cdot 10^{-204}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+46}:\\
\;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.8000000000000002e-65 or 1.05e46 < b Initial program 86.4%
associate-*l*86.4%
associate-*l*84.0%
Simplified84.0%
Taylor expanded in b around inf 54.8%
associate-/r*57.2%
Simplified57.2%
if -3.8000000000000002e-65 < b < -1.23999999999999993e-204 or 4.5999999999999998e-283 < b < 1.4499999999999999e-139Initial program 78.7%
associate-*l*78.8%
associate-*l*78.9%
Simplified78.9%
Taylor expanded in z around 0 78.8%
associate-*r*78.9%
*-commutative78.9%
associate-*l*81.4%
Simplified81.4%
Taylor expanded in x around inf 53.9%
associate-/l*54.0%
*-commutative54.0%
associate-/r/51.2%
Simplified51.2%
if -1.23999999999999993e-204 < b < 4.5999999999999998e-283Initial program 76.3%
associate-*l*76.4%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in z around inf 65.2%
if 1.4499999999999999e-139 < b < 5.49999999999999967e-28Initial program 87.6%
associate-*l*87.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
associate-/l*54.0%
Simplified54.0%
if 5.49999999999999967e-28 < b < 1.05e46Initial program 94.0%
associate-*l*94.0%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in z around 0 94.0%
associate-*r*94.0%
*-commutative94.0%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 75.6%
associate-/l*81.6%
*-commutative81.6%
Simplified81.6%
Final simplification57.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (/ b c) z)))
(if (<= b -3.2e-65)
t_1
(if (<= b -2.9e-204)
(* 9.0 (/ (* x y) (* z c)))
(if (<= b 5.3e-283)
(* -4.0 (/ (* t a) c))
(if (<= b 8e-146)
(* 9.0 (* x (/ y (* z c))))
(if (<= b 2.25e-27)
(* -4.0 (/ a (/ c t)))
(if (<= b 4.2e+51) (* 9.0 (/ y (/ (* z c) x))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b / c) / z;
double tmp;
if (b <= -3.2e-65) {
tmp = t_1;
} else if (b <= -2.9e-204) {
tmp = 9.0 * ((x * y) / (z * c));
} else if (b <= 5.3e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 8e-146) {
tmp = 9.0 * (x * (y / (z * c)));
} else if (b <= 2.25e-27) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 4.2e+51) {
tmp = 9.0 * (y / ((z * c) / x));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = (b / c) / z
if (b <= (-3.2d-65)) then
tmp = t_1
else if (b <= (-2.9d-204)) then
tmp = 9.0d0 * ((x * y) / (z * c))
else if (b <= 5.3d-283) then
tmp = (-4.0d0) * ((t * a) / c)
else if (b <= 8d-146) then
tmp = 9.0d0 * (x * (y / (z * c)))
else if (b <= 2.25d-27) then
tmp = (-4.0d0) * (a / (c / t))
else if (b <= 4.2d+51) then
tmp = 9.0d0 * (y / ((z * c) / x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b / c) / z;
double tmp;
if (b <= -3.2e-65) {
tmp = t_1;
} else if (b <= -2.9e-204) {
tmp = 9.0 * ((x * y) / (z * c));
} else if (b <= 5.3e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 8e-146) {
tmp = 9.0 * (x * (y / (z * c)));
} else if (b <= 2.25e-27) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 4.2e+51) {
tmp = 9.0 * (y / ((z * c) / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b / c) / z tmp = 0 if b <= -3.2e-65: tmp = t_1 elif b <= -2.9e-204: tmp = 9.0 * ((x * y) / (z * c)) elif b <= 5.3e-283: tmp = -4.0 * ((t * a) / c) elif b <= 8e-146: tmp = 9.0 * (x * (y / (z * c))) elif b <= 2.25e-27: tmp = -4.0 * (a / (c / t)) elif b <= 4.2e+51: tmp = 9.0 * (y / ((z * c) / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -3.2e-65) tmp = t_1; elseif (b <= -2.9e-204) tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(z * c))); elseif (b <= 5.3e-283) tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); elseif (b <= 8e-146) tmp = Float64(9.0 * Float64(x * Float64(y / Float64(z * c)))); elseif (b <= 2.25e-27) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (b <= 4.2e+51) tmp = Float64(9.0 * Float64(y / Float64(Float64(z * c) / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b / c) / z; tmp = 0.0; if (b <= -3.2e-65) tmp = t_1; elseif (b <= -2.9e-204) tmp = 9.0 * ((x * y) / (z * c)); elseif (b <= 5.3e-283) tmp = -4.0 * ((t * a) / c); elseif (b <= 8e-146) tmp = 9.0 * (x * (y / (z * c))); elseif (b <= 2.25e-27) tmp = -4.0 * (a / (c / t)); elseif (b <= 4.2e+51) tmp = 9.0 * (y / ((z * c) / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -3.2e-65], t$95$1, If[LessEqual[b, -2.9e-204], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.3e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-146], N[(9.0 * N[(x * N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-27], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e+51], N[(9.0 * N[(y / N[(N[(z * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-204}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-146}:\\
\;\;\;\;9 \cdot \left(x \cdot \frac{y}{z \cdot c}\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-27}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+51}:\\
\;\;\;\;9 \cdot \frac{y}{\frac{z \cdot c}{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.1999999999999999e-65 or 4.2000000000000002e51 < b Initial program 86.4%
associate-*l*86.4%
associate-*l*84.0%
Simplified84.0%
Taylor expanded in b around inf 54.8%
associate-/r*57.2%
Simplified57.2%
if -3.1999999999999999e-65 < b < -2.90000000000000009e-204Initial program 84.2%
associate-*l*84.4%
associate-*l*87.2%
Simplified87.2%
Taylor expanded in x around inf 58.0%
if -2.90000000000000009e-204 < b < 5.3000000000000003e-283Initial program 76.3%
associate-*l*76.4%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in z around inf 65.2%
if 5.3000000000000003e-283 < b < 8.00000000000000021e-146Initial program 73.1%
associate-*l*73.1%
associate-*l*70.6%
Simplified70.6%
Taylor expanded in z around 0 73.1%
associate-*r*70.6%
*-commutative70.6%
associate-*l*75.9%
Simplified75.9%
Taylor expanded in x around inf 49.8%
associate-/l*50.1%
*-commutative50.1%
associate-/r/50.2%
Simplified50.2%
if 8.00000000000000021e-146 < b < 2.2500000000000001e-27Initial program 87.6%
associate-*l*87.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
associate-/l*54.0%
Simplified54.0%
if 2.2500000000000001e-27 < b < 4.2000000000000002e51Initial program 94.0%
associate-*l*94.0%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in z around 0 94.0%
associate-*r*94.0%
*-commutative94.0%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 75.6%
associate-/l*81.6%
*-commutative81.6%
Simplified81.6%
Final simplification58.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (/ y (* z c)) (* x 9.0))) (t_2 (/ (/ b c) z)))
(if (<= b -2.8e-65)
t_2
(if (<= b -1.05e-204)
(* 9.0 (/ (* x y) (* z c)))
(if (<= b 6.7e-283)
(* -4.0 (/ (* t a) c))
(if (<= b 8.2e-139)
t_1
(if (<= b 6e-28)
(* -4.0 (/ a (/ c t)))
(if (<= b 1.35e+44) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (y / (z * c)) * (x * 9.0);
double t_2 = (b / c) / z;
double tmp;
if (b <= -2.8e-65) {
tmp = t_2;
} else if (b <= -1.05e-204) {
tmp = 9.0 * ((x * y) / (z * c));
} else if (b <= 6.7e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 8.2e-139) {
tmp = t_1;
} else if (b <= 6e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 1.35e+44) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = (y / (z * c)) * (x * 9.0d0)
t_2 = (b / c) / z
if (b <= (-2.8d-65)) then
tmp = t_2
else if (b <= (-1.05d-204)) then
tmp = 9.0d0 * ((x * y) / (z * c))
else if (b <= 6.7d-283) then
tmp = (-4.0d0) * ((t * a) / c)
else if (b <= 8.2d-139) then
tmp = t_1
else if (b <= 6d-28) then
tmp = (-4.0d0) * (a / (c / t))
else if (b <= 1.35d+44) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (y / (z * c)) * (x * 9.0);
double t_2 = (b / c) / z;
double tmp;
if (b <= -2.8e-65) {
tmp = t_2;
} else if (b <= -1.05e-204) {
tmp = 9.0 * ((x * y) / (z * c));
} else if (b <= 6.7e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 8.2e-139) {
tmp = t_1;
} else if (b <= 6e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 1.35e+44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (y / (z * c)) * (x * 9.0) t_2 = (b / c) / z tmp = 0 if b <= -2.8e-65: tmp = t_2 elif b <= -1.05e-204: tmp = 9.0 * ((x * y) / (z * c)) elif b <= 6.7e-283: tmp = -4.0 * ((t * a) / c) elif b <= 8.2e-139: tmp = t_1 elif b <= 6e-28: tmp = -4.0 * (a / (c / t)) elif b <= 1.35e+44: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(y / Float64(z * c)) * Float64(x * 9.0)) t_2 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -2.8e-65) tmp = t_2; elseif (b <= -1.05e-204) tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(z * c))); elseif (b <= 6.7e-283) tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); elseif (b <= 8.2e-139) tmp = t_1; elseif (b <= 6e-28) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (b <= 1.35e+44) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (y / (z * c)) * (x * 9.0); t_2 = (b / c) / z; tmp = 0.0; if (b <= -2.8e-65) tmp = t_2; elseif (b <= -1.05e-204) tmp = 9.0 * ((x * y) / (z * c)); elseif (b <= 6.7e-283) tmp = -4.0 * ((t * a) / c); elseif (b <= 8.2e-139) tmp = t_1; elseif (b <= 6e-28) tmp = -4.0 * (a / (c / t)); elseif (b <= 1.35e+44) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision] * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -2.8e-65], t$95$2, If[LessEqual[b, -1.05e-204], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.7e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-139], t$95$1, If[LessEqual[b, 6e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e+44], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-204}:\\
\;\;\;\;9 \cdot \frac{x \cdot y}{z \cdot c}\\
\mathbf{elif}\;b \leq 6.7 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.8e-65 or 1.35e44 < b Initial program 86.4%
associate-*l*86.4%
associate-*l*84.0%
Simplified84.0%
Taylor expanded in b around inf 54.8%
associate-/r*57.2%
Simplified57.2%
if -2.8e-65 < b < -1.05000000000000005e-204Initial program 84.2%
associate-*l*84.4%
associate-*l*87.2%
Simplified87.2%
Taylor expanded in x around inf 58.0%
if -1.05000000000000005e-204 < b < 6.70000000000000047e-283Initial program 76.3%
associate-*l*76.4%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in z around inf 65.2%
if 6.70000000000000047e-283 < b < 8.20000000000000028e-139 or 6.00000000000000005e-28 < b < 1.35e44Initial program 79.9%
associate-*l*80.0%
associate-*l*78.2%
Simplified78.2%
*-un-lft-identity78.2%
*-commutative78.2%
times-frac84.2%
associate-*r*84.2%
associate-*r*82.3%
associate-*r*82.2%
associate-*r*84.2%
associate-*l*84.2%
Applied egg-rr84.2%
Taylor expanded in x around inf 58.2%
associate-*r/58.3%
*-commutative58.3%
associate-*r*58.2%
*-commutative58.2%
associate-*r/60.5%
*-commutative60.5%
Simplified60.5%
if 8.20000000000000028e-139 < b < 6.00000000000000005e-28Initial program 87.6%
associate-*l*87.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
associate-/l*54.0%
Simplified54.0%
Final simplification58.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (/ y (* z c)) (* x 9.0))) (t_2 (/ (/ b c) z)))
(if (<= b -2.8e-65)
t_2
(if (<= b -2e-204)
(/ (* 9.0 (/ (* x y) c)) z)
(if (<= b 4.8e-283)
(* -4.0 (/ (* t a) c))
(if (<= b 1.35e-141)
t_1
(if (<= b 1e-28)
(* -4.0 (/ a (/ c t)))
(if (<= b 2.9e+43) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (y / (z * c)) * (x * 9.0);
double t_2 = (b / c) / z;
double tmp;
if (b <= -2.8e-65) {
tmp = t_2;
} else if (b <= -2e-204) {
tmp = (9.0 * ((x * y) / c)) / z;
} else if (b <= 4.8e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 1.35e-141) {
tmp = t_1;
} else if (b <= 1e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 2.9e+43) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = (y / (z * c)) * (x * 9.0d0)
t_2 = (b / c) / z
if (b <= (-2.8d-65)) then
tmp = t_2
else if (b <= (-2d-204)) then
tmp = (9.0d0 * ((x * y) / c)) / z
else if (b <= 4.8d-283) then
tmp = (-4.0d0) * ((t * a) / c)
else if (b <= 1.35d-141) then
tmp = t_1
else if (b <= 1d-28) then
tmp = (-4.0d0) * (a / (c / t))
else if (b <= 2.9d+43) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (y / (z * c)) * (x * 9.0);
double t_2 = (b / c) / z;
double tmp;
if (b <= -2.8e-65) {
tmp = t_2;
} else if (b <= -2e-204) {
tmp = (9.0 * ((x * y) / c)) / z;
} else if (b <= 4.8e-283) {
tmp = -4.0 * ((t * a) / c);
} else if (b <= 1.35e-141) {
tmp = t_1;
} else if (b <= 1e-28) {
tmp = -4.0 * (a / (c / t));
} else if (b <= 2.9e+43) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (y / (z * c)) * (x * 9.0) t_2 = (b / c) / z tmp = 0 if b <= -2.8e-65: tmp = t_2 elif b <= -2e-204: tmp = (9.0 * ((x * y) / c)) / z elif b <= 4.8e-283: tmp = -4.0 * ((t * a) / c) elif b <= 1.35e-141: tmp = t_1 elif b <= 1e-28: tmp = -4.0 * (a / (c / t)) elif b <= 2.9e+43: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(y / Float64(z * c)) * Float64(x * 9.0)) t_2 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -2.8e-65) tmp = t_2; elseif (b <= -2e-204) tmp = Float64(Float64(9.0 * Float64(Float64(x * y) / c)) / z); elseif (b <= 4.8e-283) tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); elseif (b <= 1.35e-141) tmp = t_1; elseif (b <= 1e-28) tmp = Float64(-4.0 * Float64(a / Float64(c / t))); elseif (b <= 2.9e+43) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (y / (z * c)) * (x * 9.0); t_2 = (b / c) / z; tmp = 0.0; if (b <= -2.8e-65) tmp = t_2; elseif (b <= -2e-204) tmp = (9.0 * ((x * y) / c)) / z; elseif (b <= 4.8e-283) tmp = -4.0 * ((t * a) / c); elseif (b <= 1.35e-141) tmp = t_1; elseif (b <= 1e-28) tmp = -4.0 * (a / (c / t)); elseif (b <= 2.9e+43) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(y / N[(z * c), $MachinePrecision]), $MachinePrecision] * N[(x * 9.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -2.8e-65], t$95$2, If[LessEqual[b, -2e-204], N[(N[(9.0 * N[(N[(x * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 4.8e-283], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-141], t$95$1, If[LessEqual[b, 1e-28], N[(-4.0 * N[(a / N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+43], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot c} \cdot \left(x \cdot 9\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-204}:\\
\;\;\;\;\frac{9 \cdot \frac{x \cdot y}{c}}{z}\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-283}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-28}:\\
\;\;\;\;-4 \cdot \frac{a}{\frac{c}{t}}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+43}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.8e-65 or 2.9000000000000002e43 < b Initial program 86.4%
associate-*l*86.4%
associate-*l*84.0%
Simplified84.0%
Taylor expanded in b around inf 54.8%
associate-/r*57.2%
Simplified57.2%
if -2.8e-65 < b < -2e-204Initial program 84.2%
associate-*l*84.4%
associate-*l*87.2%
Simplified87.2%
Taylor expanded in x around inf 58.0%
associate-/r*58.6%
associate-*r/58.6%
Simplified58.6%
if -2e-204 < b < 4.7999999999999999e-283Initial program 76.3%
associate-*l*76.4%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in z around inf 65.2%
if 4.7999999999999999e-283 < b < 1.3500000000000001e-141 or 9.99999999999999971e-29 < b < 2.9000000000000002e43Initial program 79.9%
associate-*l*80.0%
associate-*l*78.2%
Simplified78.2%
*-un-lft-identity78.2%
*-commutative78.2%
times-frac84.2%
associate-*r*84.2%
associate-*r*82.3%
associate-*r*82.2%
associate-*r*84.2%
associate-*l*84.2%
Applied egg-rr84.2%
Taylor expanded in x around inf 58.2%
associate-*r/58.3%
*-commutative58.3%
associate-*r*58.2%
*-commutative58.2%
associate-*r/60.5%
*-commutative60.5%
Simplified60.5%
if 1.3500000000000001e-141 < b < 9.99999999999999971e-29Initial program 87.6%
associate-*l*87.5%
associate-*l*79.4%
Simplified79.4%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
associate-/l*54.0%
Simplified54.0%
Final simplification58.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (+ b (* 9.0 (* x y))) (* z c)))
(t_2 (* t (* a -4.0)))
(t_3 (/ (+ t_2 (* 9.0 (/ (* x y) z))) c)))
(if (<= x -2.8e+190)
t_3
(if (<= x -3.3e+120)
t_1
(if (<= x -7.5e+81)
t_3
(if (<= x -1.5e+41)
t_1
(if (<= x 2.6e-89)
(/ (+ t_2 (/ b z)) c)
(* (/ x z) (/ (* 9.0 y) c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b + (9.0 * (x * y))) / (z * c);
double t_2 = t * (a * -4.0);
double t_3 = (t_2 + (9.0 * ((x * y) / z))) / c;
double tmp;
if (x <= -2.8e+190) {
tmp = t_3;
} else if (x <= -3.3e+120) {
tmp = t_1;
} else if (x <= -7.5e+81) {
tmp = t_3;
} else if (x <= -1.5e+41) {
tmp = t_1;
} else if (x <= 2.6e-89) {
tmp = (t_2 + (b / z)) / c;
} else {
tmp = (x / z) * ((9.0 * y) / c);
}
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) :: tmp
t_1 = (b + (9.0d0 * (x * y))) / (z * c)
t_2 = t * (a * (-4.0d0))
t_3 = (t_2 + (9.0d0 * ((x * y) / z))) / c
if (x <= (-2.8d+190)) then
tmp = t_3
else if (x <= (-3.3d+120)) then
tmp = t_1
else if (x <= (-7.5d+81)) then
tmp = t_3
else if (x <= (-1.5d+41)) then
tmp = t_1
else if (x <= 2.6d-89) then
tmp = (t_2 + (b / z)) / c
else
tmp = (x / z) * ((9.0d0 * y) / c)
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 + (9.0 * (x * y))) / (z * c);
double t_2 = t * (a * -4.0);
double t_3 = (t_2 + (9.0 * ((x * y) / z))) / c;
double tmp;
if (x <= -2.8e+190) {
tmp = t_3;
} else if (x <= -3.3e+120) {
tmp = t_1;
} else if (x <= -7.5e+81) {
tmp = t_3;
} else if (x <= -1.5e+41) {
tmp = t_1;
} else if (x <= 2.6e-89) {
tmp = (t_2 + (b / z)) / c;
} else {
tmp = (x / z) * ((9.0 * y) / c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b + (9.0 * (x * y))) / (z * c) t_2 = t * (a * -4.0) t_3 = (t_2 + (9.0 * ((x * y) / z))) / c tmp = 0 if x <= -2.8e+190: tmp = t_3 elif x <= -3.3e+120: tmp = t_1 elif x <= -7.5e+81: tmp = t_3 elif x <= -1.5e+41: tmp = t_1 elif x <= 2.6e-89: tmp = (t_2 + (b / z)) / c else: tmp = (x / z) * ((9.0 * y) / c) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)) t_2 = Float64(t * Float64(a * -4.0)) t_3 = Float64(Float64(t_2 + Float64(9.0 * Float64(Float64(x * y) / z))) / c) tmp = 0.0 if (x <= -2.8e+190) tmp = t_3; elseif (x <= -3.3e+120) tmp = t_1; elseif (x <= -7.5e+81) tmp = t_3; elseif (x <= -1.5e+41) tmp = t_1; elseif (x <= 2.6e-89) tmp = Float64(Float64(t_2 + Float64(b / z)) / c); else tmp = Float64(Float64(x / z) * Float64(Float64(9.0 * y) / c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b + (9.0 * (x * y))) / (z * c); t_2 = t * (a * -4.0); t_3 = (t_2 + (9.0 * ((x * y) / z))) / c; tmp = 0.0; if (x <= -2.8e+190) tmp = t_3; elseif (x <= -3.3e+120) tmp = t_1; elseif (x <= -7.5e+81) tmp = t_3; elseif (x <= -1.5e+41) tmp = t_1; elseif (x <= 2.6e-89) tmp = (t_2 + (b / z)) / c; else tmp = (x / z) * ((9.0 * y) / c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 + N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[x, -2.8e+190], t$95$3, If[LessEqual[x, -3.3e+120], t$95$1, If[LessEqual[x, -7.5e+81], t$95$3, If[LessEqual[x, -1.5e+41], t$95$1, If[LessEqual[x, 2.6e-89], N[(N[(t$95$2 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(N[(9.0 * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := \frac{t_2 + 9 \cdot \frac{x \cdot y}{z}}{c}\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+190}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -7.5 \cdot 10^{+81}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\
\;\;\;\;\frac{t_2 + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\
\end{array}
\end{array}
if x < -2.79999999999999997e190 or -3.29999999999999991e120 < x < -7.49999999999999973e81Initial program 91.7%
associate-/r*82.8%
Simplified86.2%
Taylor expanded in x around inf 82.0%
if -2.79999999999999997e190 < x < -3.29999999999999991e120 or -7.49999999999999973e81 < x < -1.4999999999999999e41Initial program 77.2%
associate-*l*77.2%
associate-*l*72.0%
Simplified72.0%
Taylor expanded in z around 0 66.0%
if -1.4999999999999999e41 < x < 2.5999999999999999e-89Initial program 84.9%
associate-/r*85.2%
Simplified93.7%
Taylor expanded in x around 0 81.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
if 2.5999999999999999e-89 < x Initial program 82.3%
associate-*l*82.4%
associate-*l*81.2%
Simplified81.2%
Taylor expanded in x around inf 44.1%
associate-*r/44.2%
associate-*r*44.2%
times-frac48.7%
*-commutative48.7%
Simplified48.7%
Final simplification68.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (+ b (* 9.0 (* x y))) (* z c))))
(if (<= x -2.5e+222)
t_1
(if (<= x -4.6e+204)
(* -4.0 (/ t (/ c a)))
(if (<= x -1.35e+44)
t_1
(if (<= x 2.6e-89)
(/ (+ (* t (* a -4.0)) (/ b z)) c)
(* (/ x z) (/ (* 9.0 y) c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b + (9.0 * (x * y))) / (z * c);
double tmp;
if (x <= -2.5e+222) {
tmp = t_1;
} else if (x <= -4.6e+204) {
tmp = -4.0 * (t / (c / a));
} else if (x <= -1.35e+44) {
tmp = t_1;
} else if (x <= 2.6e-89) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = (x / z) * ((9.0 * y) / c);
}
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) :: tmp
t_1 = (b + (9.0d0 * (x * y))) / (z * c)
if (x <= (-2.5d+222)) then
tmp = t_1
else if (x <= (-4.6d+204)) then
tmp = (-4.0d0) * (t / (c / a))
else if (x <= (-1.35d+44)) then
tmp = t_1
else if (x <= 2.6d-89) then
tmp = ((t * (a * (-4.0d0))) + (b / z)) / c
else
tmp = (x / z) * ((9.0d0 * y) / c)
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 + (9.0 * (x * y))) / (z * c);
double tmp;
if (x <= -2.5e+222) {
tmp = t_1;
} else if (x <= -4.6e+204) {
tmp = -4.0 * (t / (c / a));
} else if (x <= -1.35e+44) {
tmp = t_1;
} else if (x <= 2.6e-89) {
tmp = ((t * (a * -4.0)) + (b / z)) / c;
} else {
tmp = (x / z) * ((9.0 * y) / c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b + (9.0 * (x * y))) / (z * c) tmp = 0 if x <= -2.5e+222: tmp = t_1 elif x <= -4.6e+204: tmp = -4.0 * (t / (c / a)) elif x <= -1.35e+44: tmp = t_1 elif x <= 2.6e-89: tmp = ((t * (a * -4.0)) + (b / z)) / c else: tmp = (x / z) * ((9.0 * y) / c) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)) tmp = 0.0 if (x <= -2.5e+222) tmp = t_1; elseif (x <= -4.6e+204) tmp = Float64(-4.0 * Float64(t / Float64(c / a))); elseif (x <= -1.35e+44) tmp = t_1; elseif (x <= 2.6e-89) tmp = Float64(Float64(Float64(t * Float64(a * -4.0)) + Float64(b / z)) / c); else tmp = Float64(Float64(x / z) * Float64(Float64(9.0 * y) / c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b + (9.0 * (x * y))) / (z * c); tmp = 0.0; if (x <= -2.5e+222) tmp = t_1; elseif (x <= -4.6e+204) tmp = -4.0 * (t / (c / a)); elseif (x <= -1.35e+44) tmp = t_1; elseif (x <= 2.6e-89) tmp = ((t * (a * -4.0)) + (b / z)) / c; else tmp = (x / z) * ((9.0 * y) / c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+222], t$95$1, If[LessEqual[x, -4.6e+204], N[(-4.0 * N[(t / N[(c / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.35e+44], t$95$1, If[LessEqual[x, 2.6e-89], N[(N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(N[(9.0 * y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{+204}:\\
\;\;\;\;-4 \cdot \frac{t}{\frac{c}{a}}\\
\mathbf{elif}\;x \leq -1.35 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-89}:\\
\;\;\;\;\frac{t \cdot \left(a \cdot -4\right) + \frac{b}{z}}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{9 \cdot y}{c}\\
\end{array}
\end{array}
if x < -2.50000000000000012e222 or -4.59999999999999981e204 < x < -1.35e44Initial program 82.7%
associate-*l*82.7%
associate-*l*79.6%
Simplified79.6%
Taylor expanded in z around 0 69.7%
if -2.50000000000000012e222 < x < -4.59999999999999981e204Initial program 99.6%
associate-*l*99.6%
associate-*l*76.2%
Simplified76.2%
Taylor expanded in z around inf 52.3%
*-commutative52.3%
*-commutative52.3%
associate-/l*76.1%
Simplified76.1%
if -1.35e44 < x < 2.5999999999999999e-89Initial program 84.9%
associate-/r*85.2%
Simplified93.7%
Taylor expanded in x around 0 81.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
if 2.5999999999999999e-89 < x Initial program 82.3%
associate-*l*82.4%
associate-*l*81.2%
Simplified81.2%
Taylor expanded in x around inf 44.1%
associate-*r/44.2%
associate-*r*44.2%
times-frac48.7%
*-commutative48.7%
Simplified48.7%
Final simplification68.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 9.0 (* (/ x z) (/ y c))))
(t_2 (/ (/ b c) z))
(t_3 (* -4.0 (/ (* t a) c))))
(if (<= b -4.5e-65)
t_2
(if (<= b -2.25e-204)
t_1
(if (<= b 2.5e-28)
t_3
(if (<= b 1.05e+90) t_1 (if (<= b 1.3e+108) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((x / z) * (y / c));
double t_2 = (b / c) / z;
double t_3 = -4.0 * ((t * a) / c);
double tmp;
if (b <= -4.5e-65) {
tmp = t_2;
} else if (b <= -2.25e-204) {
tmp = t_1;
} else if (b <= 2.5e-28) {
tmp = t_3;
} else if (b <= 1.05e+90) {
tmp = t_1;
} else if (b <= 1.3e+108) {
tmp = t_3;
} else {
tmp = 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) :: tmp
t_1 = 9.0d0 * ((x / z) * (y / c))
t_2 = (b / c) / z
t_3 = (-4.0d0) * ((t * a) / c)
if (b <= (-4.5d-65)) then
tmp = t_2
else if (b <= (-2.25d-204)) then
tmp = t_1
else if (b <= 2.5d-28) then
tmp = t_3
else if (b <= 1.05d+90) then
tmp = t_1
else if (b <= 1.3d+108) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 9.0 * ((x / z) * (y / c));
double t_2 = (b / c) / z;
double t_3 = -4.0 * ((t * a) / c);
double tmp;
if (b <= -4.5e-65) {
tmp = t_2;
} else if (b <= -2.25e-204) {
tmp = t_1;
} else if (b <= 2.5e-28) {
tmp = t_3;
} else if (b <= 1.05e+90) {
tmp = t_1;
} else if (b <= 1.3e+108) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 9.0 * ((x / z) * (y / c)) t_2 = (b / c) / z t_3 = -4.0 * ((t * a) / c) tmp = 0 if b <= -4.5e-65: tmp = t_2 elif b <= -2.25e-204: tmp = t_1 elif b <= 2.5e-28: tmp = t_3 elif b <= 1.05e+90: tmp = t_1 elif b <= 1.3e+108: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(9.0 * Float64(Float64(x / z) * Float64(y / c))) t_2 = Float64(Float64(b / c) / z) t_3 = Float64(-4.0 * Float64(Float64(t * a) / c)) tmp = 0.0 if (b <= -4.5e-65) tmp = t_2; elseif (b <= -2.25e-204) tmp = t_1; elseif (b <= 2.5e-28) tmp = t_3; elseif (b <= 1.05e+90) tmp = t_1; elseif (b <= 1.3e+108) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 9.0 * ((x / z) * (y / c)); t_2 = (b / c) / z; t_3 = -4.0 * ((t * a) / c); tmp = 0.0; if (b <= -4.5e-65) tmp = t_2; elseif (b <= -2.25e-204) tmp = t_1; elseif (b <= 2.5e-28) tmp = t_3; elseif (b <= 1.05e+90) tmp = t_1; elseif (b <= 1.3e+108) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(9.0 * N[(N[(x / z), $MachinePrecision] * N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e-65], t$95$2, If[LessEqual[b, -2.25e-204], t$95$1, If[LessEqual[b, 2.5e-28], t$95$3, If[LessEqual[b, 1.05e+90], t$95$1, If[LessEqual[b, 1.3e+108], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 9 \cdot \left(\frac{x}{z} \cdot \frac{y}{c}\right)\\
t_2 := \frac{\frac{b}{c}}{z}\\
t_3 := -4 \cdot \frac{t \cdot a}{c}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-204}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-28}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+108}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.4999999999999998e-65 or 1.3000000000000001e108 < b Initial program 86.5%
associate-*l*86.5%
associate-*l*83.8%
Simplified83.8%
Taylor expanded in b around inf 56.7%
associate-/r*59.3%
Simplified59.3%
if -4.4999999999999998e-65 < b < -2.24999999999999987e-204 or 2.5000000000000001e-28 < b < 1.0499999999999999e90Initial program 88.3%
associate-/r*83.6%
Simplified87.2%
fma-udef87.2%
Applied egg-rr87.2%
Taylor expanded in x around inf 60.8%
times-frac56.3%
Simplified56.3%
if -2.24999999999999987e-204 < b < 2.5000000000000001e-28 or 1.0499999999999999e90 < b < 1.3000000000000001e108Initial program 78.2%
associate-*l*78.2%
associate-*l*77.5%
Simplified77.5%
Taylor expanded in z around inf 52.4%
Final simplification56.1%
(FPCore (x y z t a b c) :precision binary64 (/ (+ (/ (+ (* x (* 9.0 y)) b) z) (* t (* a -4.0))) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / 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)) + b) / z) + (t * (a * (-4.0d0)))) / 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)) + b) / z) + (t * (a * -4.0))) / c;
}
def code(x, y, z, t, a, b, c): return ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * Float64(9.0 * y)) + b) / z) + Float64(t * Float64(a * -4.0))) / c) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * (9.0 * y)) + b) / z) + (t * (a * -4.0))) / c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * N[(9.0 * y), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / z), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x \cdot \left(9 \cdot y\right) + b}{z} + t \cdot \left(a \cdot -4\right)}{c}
\end{array}
Initial program 83.8%
associate-/r*81.6%
Simplified87.5%
fma-udef87.5%
Applied egg-rr87.5%
Final simplification87.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* -4.0 (/ (* t a) c))) (t_2 (/ (/ b c) z)) (t_3 (/ (/ b z) c)))
(if (<= b -4.5e-53)
t_2
(if (<= b 6e-12)
t_1
(if (<= b 1.9e+83)
t_3
(if (<= b 1.05e+108) t_1 (if (<= b 8.8e+224) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * ((t * a) / c);
double t_2 = (b / c) / z;
double t_3 = (b / z) / c;
double tmp;
if (b <= -4.5e-53) {
tmp = t_2;
} else if (b <= 6e-12) {
tmp = t_1;
} else if (b <= 1.9e+83) {
tmp = t_3;
} else if (b <= 1.05e+108) {
tmp = t_1;
} else if (b <= 8.8e+224) {
tmp = t_2;
} else {
tmp = t_3;
}
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) :: tmp
t_1 = (-4.0d0) * ((t * a) / c)
t_2 = (b / c) / z
t_3 = (b / z) / c
if (b <= (-4.5d-53)) then
tmp = t_2
else if (b <= 6d-12) then
tmp = t_1
else if (b <= 1.9d+83) then
tmp = t_3
else if (b <= 1.05d+108) then
tmp = t_1
else if (b <= 8.8d+224) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * ((t * a) / c);
double t_2 = (b / c) / z;
double t_3 = (b / z) / c;
double tmp;
if (b <= -4.5e-53) {
tmp = t_2;
} else if (b <= 6e-12) {
tmp = t_1;
} else if (b <= 1.9e+83) {
tmp = t_3;
} else if (b <= 1.05e+108) {
tmp = t_1;
} else if (b <= 8.8e+224) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = -4.0 * ((t * a) / c) t_2 = (b / c) / z t_3 = (b / z) / c tmp = 0 if b <= -4.5e-53: tmp = t_2 elif b <= 6e-12: tmp = t_1 elif b <= 1.9e+83: tmp = t_3 elif b <= 1.05e+108: tmp = t_1 elif b <= 8.8e+224: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(-4.0 * Float64(Float64(t * a) / c)) t_2 = Float64(Float64(b / c) / z) t_3 = Float64(Float64(b / z) / c) tmp = 0.0 if (b <= -4.5e-53) tmp = t_2; elseif (b <= 6e-12) tmp = t_1; elseif (b <= 1.9e+83) tmp = t_3; elseif (b <= 1.05e+108) tmp = t_1; elseif (b <= 8.8e+224) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = -4.0 * ((t * a) / c); t_2 = (b / c) / z; t_3 = (b / z) / c; tmp = 0.0; if (b <= -4.5e-53) tmp = t_2; elseif (b <= 6e-12) tmp = t_1; elseif (b <= 1.9e+83) tmp = t_3; elseif (b <= 1.05e+108) tmp = t_1; elseif (b <= 8.8e+224) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[b, -4.5e-53], t$95$2, If[LessEqual[b, 6e-12], t$95$1, If[LessEqual[b, 1.9e+83], t$95$3, If[LessEqual[b, 1.05e+108], t$95$1, If[LessEqual[b, 8.8e+224], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \frac{t \cdot a}{c}\\
t_2 := \frac{\frac{b}{c}}{z}\\
t_3 := \frac{\frac{b}{z}}{c}\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{+83}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+108}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{+224}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -4.49999999999999985e-53 or 1.05000000000000005e108 < b < 8.7999999999999999e224Initial program 84.9%
associate-*l*84.8%
associate-*l*81.7%
Simplified81.7%
Taylor expanded in b around inf 53.4%
associate-/r*58.5%
Simplified58.5%
if -4.49999999999999985e-53 < b < 6.0000000000000003e-12 or 1.9000000000000001e83 < b < 1.05000000000000005e108Initial program 80.7%
associate-*l*80.8%
associate-*l*80.9%
Simplified80.9%
Taylor expanded in z around inf 46.9%
if 6.0000000000000003e-12 < b < 1.9000000000000001e83 or 8.7999999999999999e224 < b Initial program 96.2%
associate-/r*92.8%
Simplified92.8%
Taylor expanded in t around 0 79.1%
associate-/l*78.9%
Simplified78.9%
Taylor expanded in b around inf 75.6%
Final simplification54.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* -4.0 (/ (* t a) c))) (t_2 (/ (/ b c) z)))
(if (<= b -9e-53)
t_2
(if (<= b 5.5e-12)
t_1
(if (<= b 6.2e+80)
(* (/ b z) (/ 1.0 c))
(if (<= b 9.8e+107) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * ((t * a) / c);
double t_2 = (b / c) / z;
double tmp;
if (b <= -9e-53) {
tmp = t_2;
} else if (b <= 5.5e-12) {
tmp = t_1;
} else if (b <= 6.2e+80) {
tmp = (b / z) * (1.0 / c);
} else if (b <= 9.8e+107) {
tmp = t_1;
} else {
tmp = 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) :: tmp
t_1 = (-4.0d0) * ((t * a) / c)
t_2 = (b / c) / z
if (b <= (-9d-53)) then
tmp = t_2
else if (b <= 5.5d-12) then
tmp = t_1
else if (b <= 6.2d+80) then
tmp = (b / z) * (1.0d0 / c)
else if (b <= 9.8d+107) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = -4.0 * ((t * a) / c);
double t_2 = (b / c) / z;
double tmp;
if (b <= -9e-53) {
tmp = t_2;
} else if (b <= 5.5e-12) {
tmp = t_1;
} else if (b <= 6.2e+80) {
tmp = (b / z) * (1.0 / c);
} else if (b <= 9.8e+107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = -4.0 * ((t * a) / c) t_2 = (b / c) / z tmp = 0 if b <= -9e-53: tmp = t_2 elif b <= 5.5e-12: tmp = t_1 elif b <= 6.2e+80: tmp = (b / z) * (1.0 / c) elif b <= 9.8e+107: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(-4.0 * Float64(Float64(t * a) / c)) t_2 = Float64(Float64(b / c) / z) tmp = 0.0 if (b <= -9e-53) tmp = t_2; elseif (b <= 5.5e-12) tmp = t_1; elseif (b <= 6.2e+80) tmp = Float64(Float64(b / z) * Float64(1.0 / c)); elseif (b <= 9.8e+107) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = -4.0 * ((t * a) / c); t_2 = (b / c) / z; tmp = 0.0; if (b <= -9e-53) tmp = t_2; elseif (b <= 5.5e-12) tmp = t_1; elseif (b <= 6.2e+80) tmp = (b / z) * (1.0 / c); elseif (b <= 9.8e+107) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[b, -9e-53], t$95$2, If[LessEqual[b, 5.5e-12], t$95$1, If[LessEqual[b, 6.2e+80], N[(N[(b / z), $MachinePrecision] * N[(1.0 / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+107], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -4 \cdot \frac{t \cdot a}{c}\\
t_2 := \frac{\frac{b}{c}}{z}\\
\mathbf{if}\;b \leq -9 \cdot 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+80}:\\
\;\;\;\;\frac{b}{z} \cdot \frac{1}{c}\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+107}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -8.9999999999999997e-53 or 9.8000000000000003e107 < b Initial program 87.0%
associate-*l*87.0%
associate-*l*84.3%
Simplified84.3%
Taylor expanded in b around inf 58.2%
associate-/r*60.8%
Simplified60.8%
if -8.9999999999999997e-53 < b < 5.5000000000000004e-12 or 6.19999999999999976e80 < b < 9.8000000000000003e107Initial program 80.7%
associate-*l*80.8%
associate-*l*80.9%
Simplified80.9%
Taylor expanded in z around inf 46.9%
if 5.5000000000000004e-12 < b < 6.19999999999999976e80Initial program 91.9%
associate-*l*91.9%
associate-*l*91.9%
Simplified91.9%
*-un-lft-identity91.9%
*-commutative91.9%
times-frac84.2%
associate-*r*84.2%
associate-*r*84.2%
associate-*r*84.2%
associate-*r*84.2%
associate-*l*84.2%
Applied egg-rr84.2%
Taylor expanded in b around inf 61.6%
Final simplification53.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -3.1e+174)
(* -4.0 (* t (/ a c)))
(if (<= z 9.6e+147)
(/ (+ b (* 9.0 (* x y))) (* z c))
(* -4.0 (/ (* t a) c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -3.1e+174) {
tmp = -4.0 * (t * (a / c));
} else if (z <= 9.6e+147) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * ((t * a) / c);
}
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) :: tmp
if (z <= (-3.1d+174)) then
tmp = (-4.0d0) * (t * (a / c))
else if (z <= 9.6d+147) then
tmp = (b + (9.0d0 * (x * y))) / (z * c)
else
tmp = (-4.0d0) * ((t * a) / c)
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 tmp;
if (z <= -3.1e+174) {
tmp = -4.0 * (t * (a / c));
} else if (z <= 9.6e+147) {
tmp = (b + (9.0 * (x * y))) / (z * c);
} else {
tmp = -4.0 * ((t * a) / c);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -3.1e+174: tmp = -4.0 * (t * (a / c)) elif z <= 9.6e+147: tmp = (b + (9.0 * (x * y))) / (z * c) else: tmp = -4.0 * ((t * a) / c) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -3.1e+174) tmp = Float64(-4.0 * Float64(t * Float64(a / c))); elseif (z <= 9.6e+147) tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c)); else tmp = Float64(-4.0 * Float64(Float64(t * a) / c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -3.1e+174) tmp = -4.0 * (t * (a / c)); elseif (z <= 9.6e+147) tmp = (b + (9.0 * (x * y))) / (z * c); else tmp = -4.0 * ((t * a) / c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -3.1e+174], N[(-4.0 * N[(t * N[(a / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e+147], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(N[(t * a), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+174}:\\
\;\;\;\;-4 \cdot \left(t \cdot \frac{a}{c}\right)\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{+147}:\\
\;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \frac{t \cdot a}{c}\\
\end{array}
\end{array}
if z < -3.1e174Initial program 54.8%
associate-*l*54.9%
associate-*l*61.9%
Simplified61.9%
Taylor expanded in z around inf 72.8%
*-commutative72.8%
*-commutative72.8%
associate-/l*75.1%
Simplified75.1%
Taylor expanded in t around 0 72.8%
associate-/l*66.0%
associate-/r/72.8%
Simplified72.8%
if -3.1e174 < z < 9.60000000000000007e147Initial program 91.4%
associate-*l*91.4%
associate-*l*88.7%
Simplified88.7%
Taylor expanded in z around 0 70.6%
if 9.60000000000000007e147 < z Initial program 45.8%
associate-*l*45.8%
associate-*l*50.8%
Simplified50.8%
Taylor expanded in z around inf 69.8%
Final simplification70.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 2.5e+52) (/ (/ b c) z) (/ (/ b z) c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 2.5e+52) {
tmp = (b / c) / z;
} else {
tmp = (b / z) / c;
}
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) :: tmp
if (y <= 2.5d+52) then
tmp = (b / c) / z
else
tmp = (b / z) / c
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 tmp;
if (y <= 2.5e+52) {
tmp = (b / c) / z;
} else {
tmp = (b / z) / c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 2.5e+52: tmp = (b / c) / z else: tmp = (b / z) / c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 2.5e+52) tmp = Float64(Float64(b / c) / z); else tmp = Float64(Float64(b / z) / c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 2.5e+52) tmp = (b / c) / z; else tmp = (b / z) / c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 2.5e+52], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.5 \cdot 10^{+52}:\\
\;\;\;\;\frac{\frac{b}{c}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b}{z}}{c}\\
\end{array}
\end{array}
if y < 2.5e52Initial program 83.9%
associate-*l*84.0%
associate-*l*83.2%
Simplified83.2%
Taylor expanded in b around inf 35.7%
associate-/r*36.6%
Simplified36.6%
if 2.5e52 < y Initial program 83.1%
associate-/r*81.4%
Simplified81.3%
Taylor expanded in t around 0 55.8%
associate-/l*64.0%
Simplified64.0%
Taylor expanded in b around inf 25.5%
Final simplification34.6%
(FPCore (x y z t a b c) :precision binary64 (/ b (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return 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 = b / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return b / (z * c);
}
def code(x, y, z, t, a, b, c): return b / (z * c)
function code(x, y, z, t, a, b, c) return Float64(b / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = b / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{b}{z \cdot c}
\end{array}
Initial program 83.8%
associate-*l*83.8%
associate-*l*82.8%
Simplified82.8%
Taylor expanded in b around inf 33.1%
Final simplification33.1%
(FPCore (x y z t a b c) :precision binary64 (/ (/ b c) z))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
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 = (b / c) / z
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (b / c) / z;
}
def code(x, y, z, t, a, b, c): return (b / c) / z
function code(x, y, z, t, a, b, c) return Float64(Float64(b / c) / z) end
function tmp = code(x, y, z, t, a, b, c) tmp = (b / c) / z; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{b}{c}}{z}
\end{array}
Initial program 83.8%
associate-*l*83.8%
associate-*l*82.8%
Simplified82.8%
Taylor expanded in b around inf 33.1%
associate-/r*33.5%
Simplified33.5%
Final simplification33.5%
(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 2023217
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:herbie-target
(if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -1.100156740804105e-171) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 0.0) (/ (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.1708877911747488e-53) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 2.876823679546137e+130) (- (+ (* (* 9.0 (/ y c)) (/ x z)) (/ b (* c z))) (* 4.0 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) 1.3838515042456319e+158) (/ (+ (- (* (* x 9.0) y) (* (* z 4.0) (* t a))) b) (* z c)) (- (+ (* 9.0 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4.0 (/ (* a t) c))))))))
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))