
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= (+ (/ t (* y (* z 3.0))) (- x (/ y (* z 3.0)))) (- INFINITY)) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ (+ x (pow (/ (* z (* y 3.0)) t) -1.0)) (/ y (* z -3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -((double) INFINITY)) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x + pow(((z * (y * 3.0)) / t), -1.0)) + (y / (z * -3.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double tmp;
if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -Double.POSITIVE_INFINITY) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x + Math.pow(((z * (y * 3.0)) / t), -1.0)) + (y / (z * -3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -math.inf: tmp = x + (((t / y) - y) / (z * 3.0)) else: tmp = (x + math.pow(((z * (y * 3.0)) / t), -1.0)) + (y / (z * -3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(t / Float64(y * Float64(z * 3.0))) + Float64(x - Float64(y / Float64(z * 3.0)))) <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(Float64(x + (Float64(Float64(z * Float64(y * 3.0)) / t) ^ -1.0)) + Float64(y / Float64(z * -3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -Inf) tmp = x + (((t / y) - y) / (z * 3.0)); else tmp = (x + (((z * (y * 3.0)) / t) ^ -1.0)) + (y / (z * -3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[Power[N[(N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{y \cdot \left(z \cdot 3\right)} + \left(x - \frac{y}{z \cdot 3}\right) \leq -\infty:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\left(x + {\left(\frac{z \cdot \left(y \cdot 3\right)}{t}\right)}^{-1}\right) + \frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) < -inf.0Initial program 87.8%
+-commutative87.8%
associate-+r-87.8%
+-commutative87.8%
associate--l+87.8%
sub-neg87.8%
remove-double-neg87.8%
distribute-frac-neg87.8%
distribute-neg-in87.8%
remove-double-neg87.8%
sub-neg87.8%
neg-mul-187.8%
times-frac99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
Simplified99.9%
*-commutative99.9%
clear-num99.9%
div-inv99.9%
metadata-eval99.9%
un-div-inv99.9%
Applied egg-rr99.9%
if -inf.0 < (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) Initial program 98.3%
+-commutative98.3%
associate-+r-98.3%
sub-neg98.3%
associate-*l*98.3%
*-commutative98.3%
distribute-frac-neg298.3%
distribute-rgt-neg-in98.3%
metadata-eval98.3%
Simplified98.3%
clear-num98.3%
inv-pow98.3%
Applied egg-rr98.3%
Final simplification98.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ y (* z -3.0))) (t_2 (* 0.3333333333333333 (/ t (* y z)))))
(if (<= y -6.8e+57)
t_1
(if (<= y -38000.0)
t_2
(if (<= y -17.0)
(* -0.3333333333333333 (/ y z))
(if (<= y -1.65e-110)
x
(if (<= y 4.6e-208)
t_2
(if (<= y 8.6e-203) x (if (<= y 3.05e-13) t_2 t_1)))))))))
double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double t_2 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -6.8e+57) {
tmp = t_1;
} else if (y <= -38000.0) {
tmp = t_2;
} else if (y <= -17.0) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= -1.65e-110) {
tmp = x;
} else if (y <= 4.6e-208) {
tmp = t_2;
} else if (y <= 8.6e-203) {
tmp = x;
} else if (y <= 3.05e-13) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y / (z * (-3.0d0))
t_2 = 0.3333333333333333d0 * (t / (y * z))
if (y <= (-6.8d+57)) then
tmp = t_1
else if (y <= (-38000.0d0)) then
tmp = t_2
else if (y <= (-17.0d0)) then
tmp = (-0.3333333333333333d0) * (y / z)
else if (y <= (-1.65d-110)) then
tmp = x
else if (y <= 4.6d-208) then
tmp = t_2
else if (y <= 8.6d-203) then
tmp = x
else if (y <= 3.05d-13) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double t_2 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -6.8e+57) {
tmp = t_1;
} else if (y <= -38000.0) {
tmp = t_2;
} else if (y <= -17.0) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= -1.65e-110) {
tmp = x;
} else if (y <= 4.6e-208) {
tmp = t_2;
} else if (y <= 8.6e-203) {
tmp = x;
} else if (y <= 3.05e-13) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y / (z * -3.0) t_2 = 0.3333333333333333 * (t / (y * z)) tmp = 0 if y <= -6.8e+57: tmp = t_1 elif y <= -38000.0: tmp = t_2 elif y <= -17.0: tmp = -0.3333333333333333 * (y / z) elif y <= -1.65e-110: tmp = x elif y <= 4.6e-208: tmp = t_2 elif y <= 8.6e-203: tmp = x elif y <= 3.05e-13: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y / Float64(z * -3.0)) t_2 = Float64(0.3333333333333333 * Float64(t / Float64(y * z))) tmp = 0.0 if (y <= -6.8e+57) tmp = t_1; elseif (y <= -38000.0) tmp = t_2; elseif (y <= -17.0) tmp = Float64(-0.3333333333333333 * Float64(y / z)); elseif (y <= -1.65e-110) tmp = x; elseif (y <= 4.6e-208) tmp = t_2; elseif (y <= 8.6e-203) tmp = x; elseif (y <= 3.05e-13) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y / (z * -3.0); t_2 = 0.3333333333333333 * (t / (y * z)); tmp = 0.0; if (y <= -6.8e+57) tmp = t_1; elseif (y <= -38000.0) tmp = t_2; elseif (y <= -17.0) tmp = -0.3333333333333333 * (y / z); elseif (y <= -1.65e-110) tmp = x; elseif (y <= 4.6e-208) tmp = t_2; elseif (y <= 8.6e-203) tmp = x; elseif (y <= 3.05e-13) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+57], t$95$1, If[LessEqual[y, -38000.0], t$95$2, If[LessEqual[y, -17.0], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-110], x, If[LessEqual[y, 4.6e-208], t$95$2, If[LessEqual[y, 8.6e-203], x, If[LessEqual[y, 3.05e-13], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot -3}\\
t_2 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -38000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -17:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-110}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-208}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{-203}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.79999999999999984e57 or 3.0500000000000001e-13 < y Initial program 99.0%
+-commutative99.0%
associate-+r-99.0%
sub-neg99.0%
associate-*l*99.0%
*-commutative99.0%
distribute-frac-neg299.0%
distribute-rgt-neg-in99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
inv-pow99.0%
Applied egg-rr99.0%
Taylor expanded in y around inf 71.2%
associate-*r/71.3%
*-commutative71.3%
associate-*r/71.2%
Simplified71.2%
clear-num71.2%
un-div-inv71.3%
div-inv71.4%
metadata-eval71.4%
Applied egg-rr71.4%
if -6.79999999999999984e57 < y < -38000 or -1.65e-110 < y < 4.59999999999999993e-208 or 8.60000000000000054e-203 < y < 3.0500000000000001e-13Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
sub-neg93.6%
associate-*l*93.6%
*-commutative93.6%
distribute-frac-neg293.6%
distribute-rgt-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
clear-num93.7%
inv-pow93.7%
Applied egg-rr93.7%
Taylor expanded in y around 0 66.3%
if -38000 < y < -17Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
sub-neg100.0%
associate-*l*100.0%
*-commutative100.0%
distribute-frac-neg2100.0%
distribute-rgt-neg-in100.0%
metadata-eval100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
Applied egg-rr100.0%
Taylor expanded in y around inf 100.0%
if -17 < y < -1.65e-110 or 4.59999999999999993e-208 < y < 8.60000000000000054e-203Initial program 96.0%
+-commutative96.0%
associate-+r-96.0%
sub-neg96.0%
associate-*l*96.1%
*-commutative96.1%
distribute-frac-neg296.1%
distribute-rgt-neg-in96.1%
metadata-eval96.1%
Simplified96.1%
Taylor expanded in z around inf 68.4%
(FPCore (x y z t) :precision binary64 (if (<= (+ (/ t (* y (* z 3.0))) (- x (/ y (* z 3.0)))) (- INFINITY)) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ (/ y (* z -3.0)) (+ x (/ t (* z (* y 3.0)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -((double) INFINITY)) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double tmp;
if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -Double.POSITIVE_INFINITY) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -math.inf: tmp = x + (((t / y) - y) / (z * 3.0)) else: tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(t / Float64(y * Float64(z * 3.0))) + Float64(x - Float64(y / Float64(z * 3.0)))) <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(Float64(y / Float64(z * -3.0)) + Float64(x + Float64(t / Float64(z * Float64(y * 3.0))))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((t / (y * (z * 3.0))) + (x - (y / (z * 3.0)))) <= -Inf) tmp = x + (((t / y) - y) / (z * 3.0)); else tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{y \cdot \left(z \cdot 3\right)} + \left(x - \frac{y}{z \cdot 3}\right) \leq -\infty:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot -3} + \left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) < -inf.0Initial program 87.8%
+-commutative87.8%
associate-+r-87.8%
+-commutative87.8%
associate--l+87.8%
sub-neg87.8%
remove-double-neg87.8%
distribute-frac-neg87.8%
distribute-neg-in87.8%
remove-double-neg87.8%
sub-neg87.8%
neg-mul-187.8%
times-frac99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
Simplified99.9%
*-commutative99.9%
clear-num99.9%
div-inv99.9%
metadata-eval99.9%
un-div-inv99.9%
Applied egg-rr99.9%
if -inf.0 < (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) Initial program 98.3%
+-commutative98.3%
associate-+r-98.3%
sub-neg98.3%
associate-*l*98.3%
*-commutative98.3%
distribute-frac-neg298.3%
distribute-rgt-neg-in98.3%
metadata-eval98.3%
Simplified98.3%
Final simplification98.6%
(FPCore (x y z t)
:precision binary64
(if (or (<= y -7e+49)
(not
(or (<= y -105000.0) (and (not (<= y -1.3e-109)) (<= y 4.2e-33)))))
(+ x (/ (* y -0.3333333333333333) z))
(* 0.3333333333333333 (/ t (* y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7e+49) || !((y <= -105000.0) || (!(y <= -1.3e-109) && (y <= 4.2e-33)))) {
tmp = x + ((y * -0.3333333333333333) / z);
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-7d+49)) .or. (.not. (y <= (-105000.0d0)) .or. (.not. (y <= (-1.3d-109))) .and. (y <= 4.2d-33))) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else
tmp = 0.3333333333333333d0 * (t / (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7e+49) || !((y <= -105000.0) || (!(y <= -1.3e-109) && (y <= 4.2e-33)))) {
tmp = x + ((y * -0.3333333333333333) / z);
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -7e+49) or not ((y <= -105000.0) or (not (y <= -1.3e-109) and (y <= 4.2e-33))): tmp = x + ((y * -0.3333333333333333) / z) else: tmp = 0.3333333333333333 * (t / (y * z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -7e+49) || !((y <= -105000.0) || (!(y <= -1.3e-109) && (y <= 4.2e-33)))) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); else tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -7e+49) || ~(((y <= -105000.0) || (~((y <= -1.3e-109)) && (y <= 4.2e-33))))) tmp = x + ((y * -0.3333333333333333) / z); else tmp = 0.3333333333333333 * (t / (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -7e+49], N[Not[Or[LessEqual[y, -105000.0], And[N[Not[LessEqual[y, -1.3e-109]], $MachinePrecision], LessEqual[y, 4.2e-33]]]], $MachinePrecision]], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+49} \lor \neg \left(y \leq -105000 \lor \neg \left(y \leq -1.3 \cdot 10^{-109}\right) \land y \leq 4.2 \cdot 10^{-33}\right):\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -6.9999999999999995e49 or -105000 < y < -1.2999999999999999e-109 or 4.2e-33 < y Initial program 99.2%
+-commutative99.2%
associate-+r-99.2%
+-commutative99.2%
associate--l+99.2%
sub-neg99.2%
remove-double-neg99.2%
distribute-frac-neg99.2%
distribute-neg-in99.2%
remove-double-neg99.2%
sub-neg99.2%
neg-mul-199.2%
times-frac99.2%
distribute-frac-neg99.2%
neg-mul-199.2%
*-commutative99.2%
associate-/l*99.1%
*-commutative99.1%
Simplified99.7%
associate-*l/99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 90.9%
*-commutative90.9%
Simplified90.9%
if -6.9999999999999995e49 < y < -105000 or -1.2999999999999999e-109 < y < 4.2e-33Initial program 93.0%
+-commutative93.0%
associate-+r-93.0%
sub-neg93.0%
associate-*l*93.0%
*-commutative93.0%
distribute-frac-neg293.0%
distribute-rgt-neg-in93.0%
metadata-eval93.0%
Simplified93.0%
clear-num93.0%
inv-pow93.0%
Applied egg-rr93.0%
Taylor expanded in y around 0 64.7%
Final simplification79.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (/ y (* z 3.0)))))
(if (<= y -7e+49)
t_1
(if (<= y -120000.0)
(/ 0.3333333333333333 (* z (/ y t)))
(if (or (<= y -2.2e-103) (not (<= y 4.9e-33)))
t_1
(/ (* t 0.3333333333333333) (* y z)))))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -2.2e-103) || !(y <= 4.9e-33)) {
tmp = t_1;
} else {
tmp = (t * 0.3333333333333333) / (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y / (z * 3.0d0))
if (y <= (-7d+49)) then
tmp = t_1
else if (y <= (-120000.0d0)) then
tmp = 0.3333333333333333d0 / (z * (y / t))
else if ((y <= (-2.2d-103)) .or. (.not. (y <= 4.9d-33))) then
tmp = t_1
else
tmp = (t * 0.3333333333333333d0) / (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -2.2e-103) || !(y <= 4.9e-33)) {
tmp = t_1;
} else {
tmp = (t * 0.3333333333333333) / (y * z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y / (z * 3.0)) tmp = 0 if y <= -7e+49: tmp = t_1 elif y <= -120000.0: tmp = 0.3333333333333333 / (z * (y / t)) elif (y <= -2.2e-103) or not (y <= 4.9e-33): tmp = t_1 else: tmp = (t * 0.3333333333333333) / (y * z) return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y / Float64(z * 3.0))) tmp = 0.0 if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = Float64(0.3333333333333333 / Float64(z * Float64(y / t))); elseif ((y <= -2.2e-103) || !(y <= 4.9e-33)) tmp = t_1; else tmp = Float64(Float64(t * 0.3333333333333333) / Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y / (z * 3.0)); tmp = 0.0; if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = 0.3333333333333333 / (z * (y / t)); elseif ((y <= -2.2e-103) || ~((y <= 4.9e-33))) tmp = t_1; else tmp = (t * 0.3333333333333333) / (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+49], t$95$1, If[LessEqual[y, -120000.0], N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.2e-103], N[Not[LessEqual[y, 4.9e-33]], $MachinePrecision]], t$95$1, N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{z \cdot 3}\\
\mathbf{if}\;y \leq -7 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -120000:\\
\;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-103} \lor \neg \left(y \leq 4.9 \cdot 10^{-33}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot 0.3333333333333333}{y \cdot z}\\
\end{array}
\end{array}
if y < -6.9999999999999995e49 or -1.2e5 < y < -2.1999999999999999e-103 or 4.8999999999999998e-33 < y Initial program 99.2%
+-commutative99.2%
associate-+r-99.2%
+-commutative99.2%
associate--l+99.2%
sub-neg99.2%
remove-double-neg99.2%
distribute-frac-neg99.2%
distribute-neg-in99.2%
remove-double-neg99.2%
sub-neg99.2%
neg-mul-199.2%
times-frac99.2%
distribute-frac-neg99.2%
neg-mul-199.2%
*-commutative99.2%
associate-/l*99.1%
*-commutative99.1%
Simplified99.7%
*-commutative99.7%
clear-num99.7%
div-inv99.8%
metadata-eval99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 91.0%
neg-mul-191.0%
Simplified91.0%
if -6.9999999999999995e49 < y < -1.2e5Initial program 85.3%
+-commutative85.3%
associate-+r-85.3%
sub-neg85.3%
associate-*l*85.5%
*-commutative85.5%
distribute-frac-neg285.5%
distribute-rgt-neg-in85.5%
metadata-eval85.5%
Simplified85.5%
clear-num85.3%
inv-pow85.3%
Applied egg-rr85.3%
Taylor expanded in y around 0 86.1%
clear-num85.9%
un-div-inv85.9%
*-commutative85.9%
associate-/l*86.3%
Applied egg-rr86.3%
if -2.1999999999999999e-103 < y < 4.8999999999999998e-33Initial program 93.5%
+-commutative93.5%
associate-+r-93.5%
sub-neg93.5%
associate-*l*93.5%
*-commutative93.5%
distribute-frac-neg293.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
clear-num93.5%
inv-pow93.5%
Applied egg-rr93.5%
Taylor expanded in y around 0 63.3%
*-commutative63.3%
associate-*l/63.4%
*-commutative63.4%
Applied egg-rr63.4%
Final simplification79.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* y -0.3333333333333333) z))))
(if (<= y -7e+49)
t_1
(if (<= y -30000.0)
(/ 0.3333333333333333 (* z (/ y t)))
(if (or (<= y -5e-103) (not (<= y 4.4e-33)))
t_1
(/ (* t 0.3333333333333333) (* y z)))))))
double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -30000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -5e-103) || !(y <= 4.4e-33)) {
tmp = t_1;
} else {
tmp = (t * 0.3333333333333333) / (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y * (-0.3333333333333333d0)) / z)
if (y <= (-7d+49)) then
tmp = t_1
else if (y <= (-30000.0d0)) then
tmp = 0.3333333333333333d0 / (z * (y / t))
else if ((y <= (-5d-103)) .or. (.not. (y <= 4.4d-33))) then
tmp = t_1
else
tmp = (t * 0.3333333333333333d0) / (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -30000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -5e-103) || !(y <= 4.4e-33)) {
tmp = t_1;
} else {
tmp = (t * 0.3333333333333333) / (y * z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y * -0.3333333333333333) / z) tmp = 0 if y <= -7e+49: tmp = t_1 elif y <= -30000.0: tmp = 0.3333333333333333 / (z * (y / t)) elif (y <= -5e-103) or not (y <= 4.4e-33): tmp = t_1 else: tmp = (t * 0.3333333333333333) / (y * z) return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)) tmp = 0.0 if (y <= -7e+49) tmp = t_1; elseif (y <= -30000.0) tmp = Float64(0.3333333333333333 / Float64(z * Float64(y / t))); elseif ((y <= -5e-103) || !(y <= 4.4e-33)) tmp = t_1; else tmp = Float64(Float64(t * 0.3333333333333333) / Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + ((y * -0.3333333333333333) / z); tmp = 0.0; if (y <= -7e+49) tmp = t_1; elseif (y <= -30000.0) tmp = 0.3333333333333333 / (z * (y / t)); elseif ((y <= -5e-103) || ~((y <= 4.4e-33))) tmp = t_1; else tmp = (t * 0.3333333333333333) / (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+49], t$95$1, If[LessEqual[y, -30000.0], N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -5e-103], N[Not[LessEqual[y, 4.4e-33]], $MachinePrecision]], t$95$1, N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -7 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -30000:\\
\;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-103} \lor \neg \left(y \leq 4.4 \cdot 10^{-33}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot 0.3333333333333333}{y \cdot z}\\
\end{array}
\end{array}
if y < -6.9999999999999995e49 or -3e4 < y < -4.99999999999999966e-103 or 4.40000000000000011e-33 < y Initial program 99.2%
+-commutative99.2%
associate-+r-99.2%
+-commutative99.2%
associate--l+99.2%
sub-neg99.2%
remove-double-neg99.2%
distribute-frac-neg99.2%
distribute-neg-in99.2%
remove-double-neg99.2%
sub-neg99.2%
neg-mul-199.2%
times-frac99.2%
distribute-frac-neg99.2%
neg-mul-199.2%
*-commutative99.2%
associate-/l*99.1%
*-commutative99.1%
Simplified99.7%
associate-*l/99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 90.9%
*-commutative90.9%
Simplified90.9%
if -6.9999999999999995e49 < y < -3e4Initial program 85.3%
+-commutative85.3%
associate-+r-85.3%
sub-neg85.3%
associate-*l*85.5%
*-commutative85.5%
distribute-frac-neg285.5%
distribute-rgt-neg-in85.5%
metadata-eval85.5%
Simplified85.5%
clear-num85.3%
inv-pow85.3%
Applied egg-rr85.3%
Taylor expanded in y around 0 86.1%
clear-num85.9%
un-div-inv85.9%
*-commutative85.9%
associate-/l*86.3%
Applied egg-rr86.3%
if -4.99999999999999966e-103 < y < 4.40000000000000011e-33Initial program 93.5%
+-commutative93.5%
associate-+r-93.5%
sub-neg93.5%
associate-*l*93.5%
*-commutative93.5%
distribute-frac-neg293.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
clear-num93.5%
inv-pow93.5%
Applied egg-rr93.5%
Taylor expanded in y around 0 63.3%
*-commutative63.3%
associate-*l/63.4%
*-commutative63.4%
Applied egg-rr63.4%
Final simplification79.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* y -0.3333333333333333) z))))
(if (<= y -7e+49)
t_1
(if (<= y -120000.0)
(/ 0.3333333333333333 (* z (/ y t)))
(if (or (<= y -1.5e-104) (not (<= y 4.2e-33)))
t_1
(* 0.3333333333333333 (/ t (* y z))))))))
double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -1.5e-104) || !(y <= 4.2e-33)) {
tmp = t_1;
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y * (-0.3333333333333333d0)) / z)
if (y <= (-7d+49)) then
tmp = t_1
else if (y <= (-120000.0d0)) then
tmp = 0.3333333333333333d0 / (z * (y / t))
else if ((y <= (-1.5d-104)) .or. (.not. (y <= 4.2d-33))) then
tmp = t_1
else
tmp = 0.3333333333333333d0 * (t / (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if ((y <= -1.5e-104) || !(y <= 4.2e-33)) {
tmp = t_1;
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y * -0.3333333333333333) / z) tmp = 0 if y <= -7e+49: tmp = t_1 elif y <= -120000.0: tmp = 0.3333333333333333 / (z * (y / t)) elif (y <= -1.5e-104) or not (y <= 4.2e-33): tmp = t_1 else: tmp = 0.3333333333333333 * (t / (y * z)) return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)) tmp = 0.0 if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = Float64(0.3333333333333333 / Float64(z * Float64(y / t))); elseif ((y <= -1.5e-104) || !(y <= 4.2e-33)) tmp = t_1; else tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + ((y * -0.3333333333333333) / z); tmp = 0.0; if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = 0.3333333333333333 / (z * (y / t)); elseif ((y <= -1.5e-104) || ~((y <= 4.2e-33))) tmp = t_1; else tmp = 0.3333333333333333 * (t / (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+49], t$95$1, If[LessEqual[y, -120000.0], N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.5e-104], N[Not[LessEqual[y, 4.2e-33]], $MachinePrecision]], t$95$1, N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -7 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -120000:\\
\;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-104} \lor \neg \left(y \leq 4.2 \cdot 10^{-33}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -6.9999999999999995e49 or -1.2e5 < y < -1.5000000000000001e-104 or 4.2e-33 < y Initial program 99.2%
+-commutative99.2%
associate-+r-99.2%
+-commutative99.2%
associate--l+99.2%
sub-neg99.2%
remove-double-neg99.2%
distribute-frac-neg99.2%
distribute-neg-in99.2%
remove-double-neg99.2%
sub-neg99.2%
neg-mul-199.2%
times-frac99.2%
distribute-frac-neg99.2%
neg-mul-199.2%
*-commutative99.2%
associate-/l*99.1%
*-commutative99.1%
Simplified99.7%
associate-*l/99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 90.9%
*-commutative90.9%
Simplified90.9%
if -6.9999999999999995e49 < y < -1.2e5Initial program 85.3%
+-commutative85.3%
associate-+r-85.3%
sub-neg85.3%
associate-*l*85.5%
*-commutative85.5%
distribute-frac-neg285.5%
distribute-rgt-neg-in85.5%
metadata-eval85.5%
Simplified85.5%
clear-num85.3%
inv-pow85.3%
Applied egg-rr85.3%
Taylor expanded in y around 0 86.1%
clear-num85.9%
un-div-inv85.9%
*-commutative85.9%
associate-/l*86.3%
Applied egg-rr86.3%
if -1.5000000000000001e-104 < y < 4.2e-33Initial program 93.5%
+-commutative93.5%
associate-+r-93.5%
sub-neg93.5%
associate-*l*93.5%
*-commutative93.5%
distribute-frac-neg293.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
clear-num93.5%
inv-pow93.5%
Applied egg-rr93.5%
Taylor expanded in y around 0 63.3%
Final simplification79.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* y -0.3333333333333333) z))))
(if (<= y -7e+49)
t_1
(if (<= y -120000.0)
(/ 0.3333333333333333 (* z (/ y t)))
(if (<= y -1.65e-105)
(- x (* y (/ 0.3333333333333333 z)))
(if (<= y 5.1e-33) (/ (* t 0.3333333333333333) (* y z)) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if (y <= -1.65e-105) {
tmp = x - (y * (0.3333333333333333 / z));
} else if (y <= 5.1e-33) {
tmp = (t * 0.3333333333333333) / (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y * (-0.3333333333333333d0)) / z)
if (y <= (-7d+49)) then
tmp = t_1
else if (y <= (-120000.0d0)) then
tmp = 0.3333333333333333d0 / (z * (y / t))
else if (y <= (-1.65d-105)) then
tmp = x - (y * (0.3333333333333333d0 / z))
else if (y <= 5.1d-33) then
tmp = (t * 0.3333333333333333d0) / (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y * -0.3333333333333333) / z);
double tmp;
if (y <= -7e+49) {
tmp = t_1;
} else if (y <= -120000.0) {
tmp = 0.3333333333333333 / (z * (y / t));
} else if (y <= -1.65e-105) {
tmp = x - (y * (0.3333333333333333 / z));
} else if (y <= 5.1e-33) {
tmp = (t * 0.3333333333333333) / (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x + ((y * -0.3333333333333333) / z) tmp = 0 if y <= -7e+49: tmp = t_1 elif y <= -120000.0: tmp = 0.3333333333333333 / (z * (y / t)) elif y <= -1.65e-105: tmp = x - (y * (0.3333333333333333 / z)) elif y <= 5.1e-33: tmp = (t * 0.3333333333333333) / (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)) tmp = 0.0 if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = Float64(0.3333333333333333 / Float64(z * Float64(y / t))); elseif (y <= -1.65e-105) tmp = Float64(x - Float64(y * Float64(0.3333333333333333 / z))); elseif (y <= 5.1e-33) tmp = Float64(Float64(t * 0.3333333333333333) / Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + ((y * -0.3333333333333333) / z); tmp = 0.0; if (y <= -7e+49) tmp = t_1; elseif (y <= -120000.0) tmp = 0.3333333333333333 / (z * (y / t)); elseif (y <= -1.65e-105) tmp = x - (y * (0.3333333333333333 / z)); elseif (y <= 5.1e-33) tmp = (t * 0.3333333333333333) / (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+49], t$95$1, If[LessEqual[y, -120000.0], N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-105], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.1e-33], N[(N[(t * 0.3333333333333333), $MachinePrecision] / N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -7 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -120000:\\
\;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-105}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5.1 \cdot 10^{-33}:\\
\;\;\;\;\frac{t \cdot 0.3333333333333333}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.9999999999999995e49 or 5.10000000000000008e-33 < y Initial program 99.0%
+-commutative99.0%
associate-+r-99.0%
+-commutative99.0%
associate--l+99.0%
sub-neg99.0%
remove-double-neg99.0%
distribute-frac-neg99.0%
distribute-neg-in99.0%
remove-double-neg99.0%
sub-neg99.0%
neg-mul-199.0%
times-frac99.1%
distribute-frac-neg99.1%
neg-mul-199.1%
*-commutative99.1%
associate-/l*99.0%
*-commutative99.0%
Simplified99.6%
associate-*l/99.7%
Applied egg-rr99.7%
Taylor expanded in t around 0 93.9%
*-commutative93.9%
Simplified93.9%
if -6.9999999999999995e49 < y < -1.2e5Initial program 85.3%
+-commutative85.3%
associate-+r-85.3%
sub-neg85.3%
associate-*l*85.5%
*-commutative85.5%
distribute-frac-neg285.5%
distribute-rgt-neg-in85.5%
metadata-eval85.5%
Simplified85.5%
clear-num85.3%
inv-pow85.3%
Applied egg-rr85.3%
Taylor expanded in y around 0 86.1%
clear-num85.9%
un-div-inv85.9%
*-commutative85.9%
associate-/l*86.3%
Applied egg-rr86.3%
if -1.2e5 < y < -1.6499999999999999e-105Initial program 99.9%
+-commutative99.9%
associate-+r-99.9%
+-commutative99.9%
associate--l+99.9%
sub-neg99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
distribute-neg-in99.9%
remove-double-neg99.9%
sub-neg99.9%
neg-mul-199.9%
times-frac99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 71.5%
neg-mul-171.6%
Simplified71.5%
if -1.6499999999999999e-105 < y < 5.10000000000000008e-33Initial program 93.5%
+-commutative93.5%
associate-+r-93.5%
sub-neg93.5%
associate-*l*93.5%
*-commutative93.5%
distribute-frac-neg293.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
clear-num93.5%
inv-pow93.5%
Applied egg-rr93.5%
Taylor expanded in y around 0 63.3%
*-commutative63.3%
associate-*l/63.4%
*-commutative63.4%
Applied egg-rr63.4%
Final simplification79.2%
(FPCore (x y z t) :precision binary64 (if (or (<= (* z 3.0) -2e-33) (not (<= (* z 3.0) 4e+109))) (- x (/ y (* z 3.0))) (* 0.3333333333333333 (/ (- (/ t y) y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (((z * 3.0) <= -2e-33) || !((z * 3.0) <= 4e+109)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((z * 3.0d0) <= (-2d-33)) .or. (.not. ((z * 3.0d0) <= 4d+109))) then
tmp = x - (y / (z * 3.0d0))
else
tmp = 0.3333333333333333d0 * (((t / y) - y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((z * 3.0) <= -2e-33) || !((z * 3.0) <= 4e+109)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((z * 3.0) <= -2e-33) or not ((z * 3.0) <= 4e+109): tmp = x - (y / (z * 3.0)) else: tmp = 0.3333333333333333 * (((t / y) - y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(z * 3.0) <= -2e-33) || !(Float64(z * 3.0) <= 4e+109)) tmp = Float64(x - Float64(y / Float64(z * 3.0))); else tmp = Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((z * 3.0) <= -2e-33) || ~(((z * 3.0) <= 4e+109))) tmp = x - (y / (z * 3.0)); else tmp = 0.3333333333333333 * (((t / y) - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z * 3.0), $MachinePrecision], -2e-33], N[Not[LessEqual[N[(z * 3.0), $MachinePrecision], 4e+109]], $MachinePrecision]], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{-33} \lor \neg \left(z \cdot 3 \leq 4 \cdot 10^{+109}\right):\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < -2.0000000000000001e-33 or 3.99999999999999993e109 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
+-commutative99.8%
associate-+r-99.8%
+-commutative99.8%
associate--l+99.8%
sub-neg99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
distribute-neg-in99.8%
remove-double-neg99.8%
sub-neg99.8%
neg-mul-199.8%
times-frac90.6%
distribute-frac-neg90.6%
neg-mul-190.6%
*-commutative90.6%
associate-/l*90.5%
*-commutative90.5%
Simplified90.4%
*-commutative90.4%
clear-num90.4%
div-inv90.5%
metadata-eval90.5%
un-div-inv90.6%
Applied egg-rr90.6%
Taylor expanded in t around 0 74.7%
neg-mul-174.7%
Simplified74.7%
if -2.0000000000000001e-33 < (*.f64 z #s(literal 3 binary64)) < 3.99999999999999993e109Initial program 93.3%
+-commutative93.3%
associate-+r-93.3%
sub-neg93.3%
associate-*l*93.2%
*-commutative93.2%
distribute-frac-neg293.2%
distribute-rgt-neg-in93.2%
metadata-eval93.2%
Simplified93.2%
clear-num93.2%
inv-pow93.2%
Applied egg-rr93.2%
Taylor expanded in z around 0 88.0%
+-commutative88.0%
metadata-eval88.0%
distribute-lft-neg-in88.0%
distribute-rgt-neg-out88.0%
distribute-lft-out88.1%
sub-neg88.1%
associate-*r/88.0%
Simplified88.0%
Final simplification81.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -6.8e+57) (not (<= y 1.35e-32))) (- x (/ y (* z 3.0))) (+ x (/ (/ (* t 0.3333333333333333) z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 1.35e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (((t * 0.3333333333333333) / z) / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-6.8d+57)) .or. (.not. (y <= 1.35d-32))) then
tmp = x - (y / (z * 3.0d0))
else
tmp = x + (((t * 0.3333333333333333d0) / z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 1.35e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (((t * 0.3333333333333333) / z) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6.8e+57) or not (y <= 1.35e-32): tmp = x - (y / (z * 3.0)) else: tmp = x + (((t * 0.3333333333333333) / z) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6.8e+57) || !(y <= 1.35e-32)) tmp = Float64(x - Float64(y / Float64(z * 3.0))); else tmp = Float64(x + Float64(Float64(Float64(t * 0.3333333333333333) / z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -6.8e+57) || ~((y <= 1.35e-32))) tmp = x - (y / (z * 3.0)); else tmp = x + (((t * 0.3333333333333333) / z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6.8e+57], N[Not[LessEqual[y, 1.35e-32]], $MachinePrecision]], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(t * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+57} \lor \neg \left(y \leq 1.35 \cdot 10^{-32}\right):\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{t \cdot 0.3333333333333333}{z}}{y}\\
\end{array}
\end{array}
if y < -6.79999999999999984e57 or 1.3499999999999999e-32 < y Initial program 99.0%
+-commutative99.0%
associate-+r-99.0%
+-commutative99.0%
associate--l+99.0%
sub-neg99.0%
remove-double-neg99.0%
distribute-frac-neg99.0%
distribute-neg-in99.0%
remove-double-neg99.0%
sub-neg99.0%
neg-mul-199.0%
times-frac99.0%
distribute-frac-neg99.0%
neg-mul-199.0%
*-commutative99.0%
associate-/l*99.0%
*-commutative99.0%
Simplified99.6%
*-commutative99.6%
clear-num99.7%
div-inv99.8%
metadata-eval99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 94.0%
neg-mul-194.0%
Simplified94.0%
if -6.79999999999999984e57 < y < 1.3499999999999999e-32Initial program 94.0%
+-commutative94.0%
associate-+r-94.0%
+-commutative94.0%
associate--l+94.0%
sub-neg94.0%
remove-double-neg94.0%
distribute-frac-neg94.0%
distribute-neg-in94.0%
remove-double-neg94.0%
sub-neg94.0%
neg-mul-194.0%
times-frac90.0%
distribute-frac-neg90.0%
neg-mul-190.0%
*-commutative90.0%
associate-/l*89.9%
*-commutative89.9%
Simplified90.7%
Taylor expanded in t around inf 89.8%
associate-*r/89.8%
*-commutative89.8%
associate-/r*92.0%
*-commutative92.0%
Applied egg-rr92.0%
Final simplification93.0%
(FPCore (x y z t) :precision binary64 (if (or (<= y -6.8e+57) (not (<= y 2.1e-32))) (- x (/ y (* z 3.0))) (+ x (/ t (* z (* y 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 2.1e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (t / (z * (y * 3.0)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-6.8d+57)) .or. (.not. (y <= 2.1d-32))) then
tmp = x - (y / (z * 3.0d0))
else
tmp = x + (t / (z * (y * 3.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 2.1e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (t / (z * (y * 3.0)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6.8e+57) or not (y <= 2.1e-32): tmp = x - (y / (z * 3.0)) else: tmp = x + (t / (z * (y * 3.0))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6.8e+57) || !(y <= 2.1e-32)) tmp = Float64(x - Float64(y / Float64(z * 3.0))); else tmp = Float64(x + Float64(t / Float64(z * Float64(y * 3.0)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -6.8e+57) || ~((y <= 2.1e-32))) tmp = x - (y / (z * 3.0)); else tmp = x + (t / (z * (y * 3.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6.8e+57], N[Not[LessEqual[y, 2.1e-32]], $MachinePrecision]], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+57} \lor \neg \left(y \leq 2.1 \cdot 10^{-32}\right):\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{z \cdot \left(y \cdot 3\right)}\\
\end{array}
\end{array}
if y < -6.79999999999999984e57 or 2.0999999999999999e-32 < y Initial program 99.0%
+-commutative99.0%
associate-+r-99.0%
+-commutative99.0%
associate--l+99.0%
sub-neg99.0%
remove-double-neg99.0%
distribute-frac-neg99.0%
distribute-neg-in99.0%
remove-double-neg99.0%
sub-neg99.0%
neg-mul-199.0%
times-frac99.0%
distribute-frac-neg99.0%
neg-mul-199.0%
*-commutative99.0%
associate-/l*99.0%
*-commutative99.0%
Simplified99.6%
*-commutative99.6%
clear-num99.7%
div-inv99.8%
metadata-eval99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 94.0%
neg-mul-194.0%
Simplified94.0%
if -6.79999999999999984e57 < y < 2.0999999999999999e-32Initial program 94.0%
+-commutative94.0%
associate-+r-94.0%
+-commutative94.0%
associate--l+94.0%
sub-neg94.0%
remove-double-neg94.0%
distribute-frac-neg94.0%
distribute-neg-in94.0%
remove-double-neg94.0%
sub-neg94.0%
neg-mul-194.0%
times-frac90.0%
distribute-frac-neg90.0%
neg-mul-190.0%
*-commutative90.0%
associate-/l*89.9%
*-commutative89.9%
Simplified90.7%
*-commutative90.7%
clear-num90.7%
div-inv90.7%
metadata-eval90.7%
un-div-inv90.7%
Applied egg-rr90.7%
Taylor expanded in t around inf 89.8%
associate-*r/89.8%
*-commutative89.8%
associate-/l/92.0%
associate-*l/92.1%
associate-*l/92.1%
metadata-eval92.1%
times-frac92.1%
*-rgt-identity92.1%
associate-/l/89.9%
*-commutative89.9%
Simplified89.9%
Final simplification91.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -6.8e+57) (not (<= y 2.05e-32))) (- x (/ y (* z 3.0))) (+ x (* 0.3333333333333333 (/ t (* y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 2.05e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-6.8d+57)) .or. (.not. (y <= 2.05d-32))) then
tmp = x - (y / (z * 3.0d0))
else
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e+57) || !(y <= 2.05e-32)) {
tmp = x - (y / (z * 3.0));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6.8e+57) or not (y <= 2.05e-32): tmp = x - (y / (z * 3.0)) else: tmp = x + (0.3333333333333333 * (t / (y * z))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6.8e+57) || !(y <= 2.05e-32)) tmp = Float64(x - Float64(y / Float64(z * 3.0))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -6.8e+57) || ~((y <= 2.05e-32))) tmp = x - (y / (z * 3.0)); else tmp = x + (0.3333333333333333 * (t / (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6.8e+57], N[Not[LessEqual[y, 2.05e-32]], $MachinePrecision]], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+57} \lor \neg \left(y \leq 2.05 \cdot 10^{-32}\right):\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -6.79999999999999984e57 or 2.04999999999999988e-32 < y Initial program 99.0%
+-commutative99.0%
associate-+r-99.0%
+-commutative99.0%
associate--l+99.0%
sub-neg99.0%
remove-double-neg99.0%
distribute-frac-neg99.0%
distribute-neg-in99.0%
remove-double-neg99.0%
sub-neg99.0%
neg-mul-199.0%
times-frac99.0%
distribute-frac-neg99.0%
neg-mul-199.0%
*-commutative99.0%
associate-/l*99.0%
*-commutative99.0%
Simplified99.6%
*-commutative99.6%
clear-num99.7%
div-inv99.8%
metadata-eval99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 94.0%
neg-mul-194.0%
Simplified94.0%
if -6.79999999999999984e57 < y < 2.04999999999999988e-32Initial program 94.0%
+-commutative94.0%
associate-+r-94.0%
+-commutative94.0%
associate--l+94.0%
sub-neg94.0%
remove-double-neg94.0%
distribute-frac-neg94.0%
distribute-neg-in94.0%
remove-double-neg94.0%
sub-neg94.0%
neg-mul-194.0%
times-frac90.0%
distribute-frac-neg90.0%
neg-mul-190.0%
*-commutative90.0%
associate-/l*89.9%
*-commutative89.9%
Simplified90.7%
Taylor expanded in t around inf 89.8%
Final simplification91.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -9.0) (not (<= y 3.3e+54))) (/ y (* z -3.0)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.0) || !(y <= 3.3e+54)) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-9.0d0)) .or. (.not. (y <= 3.3d+54))) then
tmp = y / (z * (-3.0d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.0) || !(y <= 3.3e+54)) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -9.0) or not (y <= 3.3e+54): tmp = y / (z * -3.0) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -9.0) || !(y <= 3.3e+54)) tmp = Float64(y / Float64(z * -3.0)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -9.0) || ~((y <= 3.3e+54))) tmp = y / (z * -3.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -9.0], N[Not[LessEqual[y, 3.3e+54]], $MachinePrecision]], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \lor \neg \left(y \leq 3.3 \cdot 10^{+54}\right):\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -9 or 3.3e54 < y Initial program 98.2%
+-commutative98.2%
associate-+r-98.2%
sub-neg98.2%
associate-*l*98.2%
*-commutative98.2%
distribute-frac-neg298.2%
distribute-rgt-neg-in98.2%
metadata-eval98.2%
Simplified98.2%
clear-num98.2%
inv-pow98.2%
Applied egg-rr98.2%
Taylor expanded in y around inf 69.7%
associate-*r/69.8%
*-commutative69.8%
associate-*r/69.7%
Simplified69.7%
clear-num69.7%
un-div-inv69.8%
div-inv69.8%
metadata-eval69.8%
Applied egg-rr69.8%
if -9 < y < 3.3e54Initial program 94.7%
+-commutative94.7%
associate-+r-94.7%
sub-neg94.7%
associate-*l*94.7%
*-commutative94.7%
distribute-frac-neg294.7%
distribute-rgt-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in z around inf 37.8%
Final simplification53.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -7000.0) (not (<= y 1.05e+55))) (* -0.3333333333333333 (/ y z)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7000.0) || !(y <= 1.05e+55)) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-7000.0d0)) .or. (.not. (y <= 1.05d+55))) then
tmp = (-0.3333333333333333d0) * (y / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -7000.0) || !(y <= 1.05e+55)) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -7000.0) or not (y <= 1.05e+55): tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -7000.0) || !(y <= 1.05e+55)) tmp = Float64(-0.3333333333333333 * Float64(y / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -7000.0) || ~((y <= 1.05e+55))) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -7000.0], N[Not[LessEqual[y, 1.05e+55]], $MachinePrecision]], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7000 \lor \neg \left(y \leq 1.05 \cdot 10^{+55}\right):\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -7e3 or 1.05e55 < y Initial program 98.2%
+-commutative98.2%
associate-+r-98.2%
sub-neg98.2%
associate-*l*98.2%
*-commutative98.2%
distribute-frac-neg298.2%
distribute-rgt-neg-in98.2%
metadata-eval98.2%
Simplified98.2%
clear-num98.2%
inv-pow98.2%
Applied egg-rr98.2%
Taylor expanded in y around inf 69.7%
if -7e3 < y < 1.05e55Initial program 94.7%
+-commutative94.7%
associate-+r-94.7%
sub-neg94.7%
associate-*l*94.7%
*-commutative94.7%
distribute-frac-neg294.7%
distribute-rgt-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in z around inf 37.8%
Final simplification53.3%
(FPCore (x y z t) :precision binary64 (if (<= y -0.115) (/ -0.3333333333333333 (/ z y)) (if (<= y 2.1e+39) x (* -0.3333333333333333 (/ y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.115) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 2.1e+39) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (y / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-0.115d0)) then
tmp = (-0.3333333333333333d0) / (z / y)
else if (y <= 2.1d+39) then
tmp = x
else
tmp = (-0.3333333333333333d0) * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.115) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 2.1e+39) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (y / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -0.115: tmp = -0.3333333333333333 / (z / y) elif y <= 2.1e+39: tmp = x else: tmp = -0.3333333333333333 * (y / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -0.115) tmp = Float64(-0.3333333333333333 / Float64(z / y)); elseif (y <= 2.1e+39) tmp = x; else tmp = Float64(-0.3333333333333333 * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -0.115) tmp = -0.3333333333333333 / (z / y); elseif (y <= 2.1e+39) tmp = x; else tmp = -0.3333333333333333 * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -0.115], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+39], x, N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.115:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+39}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -0.115000000000000005Initial program 96.8%
+-commutative96.8%
associate-+r-96.8%
sub-neg96.8%
associate-*l*96.8%
*-commutative96.8%
distribute-frac-neg296.8%
distribute-rgt-neg-in96.8%
metadata-eval96.8%
Simplified96.8%
clear-num96.8%
inv-pow96.8%
Applied egg-rr96.8%
Taylor expanded in y around inf 60.7%
clear-num60.7%
un-div-inv60.8%
Applied egg-rr60.8%
if -0.115000000000000005 < y < 2.0999999999999999e39Initial program 94.7%
+-commutative94.7%
associate-+r-94.7%
sub-neg94.7%
associate-*l*94.7%
*-commutative94.7%
distribute-frac-neg294.7%
distribute-rgt-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in z around inf 37.8%
if 2.0999999999999999e39 < y Initial program 99.9%
+-commutative99.9%
associate-+r-99.9%
sub-neg99.9%
associate-*l*99.9%
*-commutative99.9%
distribute-frac-neg299.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
clear-num99.9%
inv-pow99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 80.3%
(FPCore (x y z t) :precision binary64 (+ x (/ (- (/ t y) y) (* z 3.0))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) / (z * 3.0d0))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
def code(x, y, z, t): return x + (((t / y) - y) / (z * 3.0))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) / (z * 3.0)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\frac{t}{y} - y}{z \cdot 3}
\end{array}
Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac94.3%
distribute-frac-neg94.3%
neg-mul-194.3%
*-commutative94.3%
associate-/l*94.2%
*-commutative94.2%
Simplified94.9%
*-commutative94.9%
clear-num94.9%
div-inv95.0%
metadata-eval95.0%
un-div-inv95.0%
Applied egg-rr95.0%
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- (/ t y) y) 0.3333333333333333) z)))
double code(double x, double y, double z, double t) {
return x + ((((t / y) - y) * 0.3333333333333333) / z);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((((t / y) - y) * 0.3333333333333333d0) / z)
end function
public static double code(double x, double y, double z, double t) {
return x + ((((t / y) - y) * 0.3333333333333333) / z);
}
def code(x, y, z, t): return x + ((((t / y) - y) * 0.3333333333333333) / z)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(Float64(t / y) - y) * 0.3333333333333333) / z)) end
function tmp = code(x, y, z, t) tmp = x + ((((t / y) - y) * 0.3333333333333333) / z); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(\frac{t}{y} - y\right) \cdot 0.3333333333333333}{z}
\end{array}
Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac94.3%
distribute-frac-neg94.3%
neg-mul-194.3%
*-commutative94.3%
associate-/l*94.2%
*-commutative94.2%
Simplified94.9%
associate-*l/95.0%
Applied egg-rr95.0%
Final simplification95.0%
(FPCore (x y z t) :precision binary64 (+ x (* (- (/ t y) y) (/ 0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) * (0.3333333333333333d0 / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
def code(x, y, z, t): return x + (((t / y) - y) * (0.3333333333333333 / z))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) * (0.3333333333333333 / z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}
\end{array}
Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac94.3%
distribute-frac-neg94.3%
neg-mul-194.3%
*-commutative94.3%
associate-/l*94.2%
*-commutative94.2%
Simplified94.9%
Final simplification94.9%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
sub-neg96.4%
associate-*l*96.4%
*-commutative96.4%
distribute-frac-neg296.4%
distribute-rgt-neg-in96.4%
metadata-eval96.4%
Simplified96.4%
Taylor expanded in z around inf 30.7%
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}
herbie shell --seed 2024092
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))