
(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 16 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 (<= (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0)))) 1e+303) (+ (+ x (/ t (* z (* y 3.0)))) (/ y (* z -3.0))) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+303) {
tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - 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 (((x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))) <= 1d+303) then
tmp = (x + (t / (z * (y * 3.0d0)))) + (y / (z * (-3.0d0)))
else
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+303) {
tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+303: tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0)) else: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0)))) <= 1e+303) tmp = Float64(Float64(x + Float64(t / Float64(z * Float64(y * 3.0)))) + Float64(y / Float64(z * -3.0))); else tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+303) tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0)); else tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+303], N[(N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)} \leq 10^{+303}:\\
\;\;\;\;\left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right) + \frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\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))) < 1e303Initial program 98.9%
+-commutative98.9%
associate-+r-98.9%
sub-neg98.9%
associate-*l*98.9%
*-commutative98.9%
distribute-frac-neg298.9%
distribute-rgt-neg-in98.9%
metadata-eval98.9%
Simplified98.9%
if 1e303 < (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) Initial program 79.4%
sub-neg79.4%
associate-+l+79.4%
+-commutative79.4%
remove-double-neg79.4%
distribute-frac-neg79.4%
distribute-neg-in79.4%
remove-double-neg79.4%
sub-neg79.4%
neg-mul-179.4%
times-frac95.2%
distribute-frac-neg95.2%
neg-mul-195.2%
*-commutative95.2%
associate-/l*95.1%
*-commutative95.1%
Simplified100.0%
Final simplification99.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ y (* z -3.0))))
(if (<= y -6.8e+87)
t_1
(if (<= y -3100000000000.0)
x
(if (<= y 1.35e-110)
(* (/ t z) (/ 0.3333333333333333 y))
(if (<= y 8.6e+27) x t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double tmp;
if (y <= -6.8e+87) {
tmp = t_1;
} else if (y <= -3100000000000.0) {
tmp = x;
} else if (y <= 1.35e-110) {
tmp = (t / z) * (0.3333333333333333 / y);
} else if (y <= 8.6e+27) {
tmp = x;
} 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 = y / (z * (-3.0d0))
if (y <= (-6.8d+87)) then
tmp = t_1
else if (y <= (-3100000000000.0d0)) then
tmp = x
else if (y <= 1.35d-110) then
tmp = (t / z) * (0.3333333333333333d0 / y)
else if (y <= 8.6d+27) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double tmp;
if (y <= -6.8e+87) {
tmp = t_1;
} else if (y <= -3100000000000.0) {
tmp = x;
} else if (y <= 1.35e-110) {
tmp = (t / z) * (0.3333333333333333 / y);
} else if (y <= 8.6e+27) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y / (z * -3.0) tmp = 0 if y <= -6.8e+87: tmp = t_1 elif y <= -3100000000000.0: tmp = x elif y <= 1.35e-110: tmp = (t / z) * (0.3333333333333333 / y) elif y <= 8.6e+27: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y / Float64(z * -3.0)) tmp = 0.0 if (y <= -6.8e+87) tmp = t_1; elseif (y <= -3100000000000.0) tmp = x; elseif (y <= 1.35e-110) tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); elseif (y <= 8.6e+27) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y / (z * -3.0); tmp = 0.0; if (y <= -6.8e+87) tmp = t_1; elseif (y <= -3100000000000.0) tmp = x; elseif (y <= 1.35e-110) tmp = (t / z) * (0.3333333333333333 / y); elseif (y <= 8.6e+27) tmp = x; 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]}, If[LessEqual[y, -6.8e+87], t$95$1, If[LessEqual[y, -3100000000000.0], x, If[LessEqual[y, 1.35e-110], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+27], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot -3}\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3100000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-110}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8000000000000004e87 or 8.60000000000000017e27 < y Initial program 98.8%
+-commutative98.8%
associate-+r-98.8%
sub-neg98.8%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
clear-num98.7%
inv-pow98.7%
*-commutative98.7%
*-un-lft-identity98.7%
times-frac98.8%
metadata-eval98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Taylor expanded in y around inf 74.2%
*-commutative74.2%
metadata-eval74.2%
times-frac74.4%
associate-*r/74.4%
*-commutative74.4%
associate-/r*74.2%
metadata-eval74.2%
Simplified74.2%
clear-num74.2%
un-div-inv74.3%
div-inv74.4%
metadata-eval74.4%
Applied egg-rr74.4%
if -6.8000000000000004e87 < y < -3.1e12 or 1.3499999999999999e-110 < y < 8.60000000000000017e27Initial program 95.4%
sub-neg95.4%
associate-+l+95.4%
+-commutative95.4%
remove-double-neg95.4%
distribute-frac-neg95.4%
distribute-neg-in95.4%
remove-double-neg95.4%
sub-neg95.4%
neg-mul-195.4%
times-frac97.5%
distribute-frac-neg97.5%
neg-mul-197.5%
*-commutative97.5%
associate-/l*97.5%
*-commutative97.5%
Simplified99.8%
Taylor expanded in x around inf 58.4%
if -3.1e12 < y < 1.3499999999999999e-110Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
associate-*r/66.1%
*-commutative66.1%
*-commutative66.1%
times-frac69.0%
Simplified69.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ y (* z -3.0))))
(if (<= y -6.8e+87)
t_1
(if (<= y -4500000000000.0)
x
(if (<= y 1.25e-97)
(* 0.3333333333333333 (/ t (* y z)))
(if (<= y 8.6e+27) x t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double tmp;
if (y <= -6.8e+87) {
tmp = t_1;
} else if (y <= -4500000000000.0) {
tmp = x;
} else if (y <= 1.25e-97) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 8.6e+27) {
tmp = x;
} 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 = y / (z * (-3.0d0))
if (y <= (-6.8d+87)) then
tmp = t_1
else if (y <= (-4500000000000.0d0)) then
tmp = x
else if (y <= 1.25d-97) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else if (y <= 8.6d+27) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y / (z * -3.0);
double tmp;
if (y <= -6.8e+87) {
tmp = t_1;
} else if (y <= -4500000000000.0) {
tmp = x;
} else if (y <= 1.25e-97) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 8.6e+27) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y / (z * -3.0) tmp = 0 if y <= -6.8e+87: tmp = t_1 elif y <= -4500000000000.0: tmp = x elif y <= 1.25e-97: tmp = 0.3333333333333333 * (t / (y * z)) elif y <= 8.6e+27: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y / Float64(z * -3.0)) tmp = 0.0 if (y <= -6.8e+87) tmp = t_1; elseif (y <= -4500000000000.0) tmp = x; elseif (y <= 1.25e-97) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); elseif (y <= 8.6e+27) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y / (z * -3.0); tmp = 0.0; if (y <= -6.8e+87) tmp = t_1; elseif (y <= -4500000000000.0) tmp = x; elseif (y <= 1.25e-97) tmp = 0.3333333333333333 * (t / (y * z)); elseif (y <= 8.6e+27) tmp = x; 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]}, If[LessEqual[y, -6.8e+87], t$95$1, If[LessEqual[y, -4500000000000.0], x, If[LessEqual[y, 1.25e-97], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+27], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z \cdot -3}\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4500000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-97}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8000000000000004e87 or 8.60000000000000017e27 < y Initial program 98.8%
+-commutative98.8%
associate-+r-98.8%
sub-neg98.8%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
clear-num98.7%
inv-pow98.7%
*-commutative98.7%
*-un-lft-identity98.7%
times-frac98.8%
metadata-eval98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Taylor expanded in y around inf 74.2%
*-commutative74.2%
metadata-eval74.2%
times-frac74.4%
associate-*r/74.4%
*-commutative74.4%
associate-/r*74.2%
metadata-eval74.2%
Simplified74.2%
clear-num74.2%
un-div-inv74.3%
div-inv74.4%
metadata-eval74.4%
Applied egg-rr74.4%
if -6.8000000000000004e87 < y < -4.5e12 or 1.2499999999999999e-97 < y < 8.60000000000000017e27Initial program 95.4%
sub-neg95.4%
associate-+l+95.4%
+-commutative95.4%
remove-double-neg95.4%
distribute-frac-neg95.4%
distribute-neg-in95.4%
remove-double-neg95.4%
sub-neg95.4%
neg-mul-195.4%
times-frac97.5%
distribute-frac-neg97.5%
neg-mul-197.5%
*-commutative97.5%
associate-/l*97.5%
*-commutative97.5%
Simplified99.8%
Taylor expanded in x around inf 58.4%
if -4.5e12 < y < 1.2499999999999999e-97Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2.8e-64) (not (<= y 3e-75))) (+ x (* (- (/ t y) y) (* 0.3333333333333333 (/ 1.0 z)))) (+ x (/ (/ t z) (* y 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2.8e-64) || !(y <= 3e-75)) {
tmp = x + (((t / y) - y) * (0.3333333333333333 * (1.0 / z)));
} 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 <= (-2.8d-64)) .or. (.not. (y <= 3d-75))) then
tmp = x + (((t / y) - y) * (0.3333333333333333d0 * (1.0d0 / z)))
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 <= -2.8e-64) || !(y <= 3e-75)) {
tmp = x + (((t / y) - y) * (0.3333333333333333 * (1.0 / z)));
} else {
tmp = x + ((t / z) / (y * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2.8e-64) or not (y <= 3e-75): tmp = x + (((t / y) - y) * (0.3333333333333333 * (1.0 / z))) else: tmp = x + ((t / z) / (y * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2.8e-64) || !(y <= 3e-75)) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 * Float64(1.0 / z)))); else tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2.8e-64) || ~((y <= 3e-75))) tmp = x + (((t / y) - y) * (0.3333333333333333 * (1.0 / z))); else tmp = x + ((t / z) / (y * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2.8e-64], N[Not[LessEqual[y, 3e-75]], $MachinePrecision]], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{-64} \lor \neg \left(y \leq 3 \cdot 10^{-75}\right):\\
\;\;\;\;x + \left(\frac{t}{y} - y\right) \cdot \left(0.3333333333333333 \cdot \frac{1}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\
\end{array}
\end{array}
if y < -2.80000000000000004e-64 or 2.9999999999999999e-75 < y Initial program 97.8%
sub-neg97.8%
associate-+l+97.8%
+-commutative97.8%
remove-double-neg97.8%
distribute-frac-neg97.8%
distribute-neg-in97.8%
remove-double-neg97.8%
sub-neg97.8%
neg-mul-197.8%
times-frac98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
div-inv99.7%
Applied egg-rr99.7%
if -2.80000000000000004e-64 < y < 2.9999999999999999e-75Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
+-commutative92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
distribute-neg-in92.6%
remove-double-neg92.6%
sub-neg92.6%
neg-mul-192.6%
times-frac87.5%
distribute-frac-neg87.5%
neg-mul-187.5%
*-commutative87.5%
associate-/l*87.5%
*-commutative87.5%
Simplified87.4%
Taylor expanded in t around inf 92.6%
metadata-eval92.6%
associate-/r*87.4%
times-frac87.4%
metadata-eval87.4%
times-frac87.6%
*-un-lft-identity87.6%
*-commutative87.6%
*-un-lft-identity87.6%
*-un-lft-identity87.6%
associate-*l/87.5%
frac-times92.6%
*-un-lft-identity92.6%
associate-/r*97.1%
Applied egg-rr97.1%
Final simplification98.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ t y) y)))
(if (<= y -8.5e-86)
(+ x (* t_1 (/ 1.0 (/ z 0.3333333333333333))))
(if (<= y 1.95e-69)
(+ x (/ (/ t z) (* y 3.0)))
(+ x (* t_1 (* 0.3333333333333333 (/ 1.0 z))))))))
double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -8.5e-86) {
tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333)));
} else if (y <= 1.95e-69) {
tmp = x + ((t / z) / (y * 3.0));
} else {
tmp = x + (t_1 * (0.3333333333333333 * (1.0 / 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 = (t / y) - y
if (y <= (-8.5d-86)) then
tmp = x + (t_1 * (1.0d0 / (z / 0.3333333333333333d0)))
else if (y <= 1.95d-69) then
tmp = x + ((t / z) / (y * 3.0d0))
else
tmp = x + (t_1 * (0.3333333333333333d0 * (1.0d0 / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -8.5e-86) {
tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333)));
} else if (y <= 1.95e-69) {
tmp = x + ((t / z) / (y * 3.0));
} else {
tmp = x + (t_1 * (0.3333333333333333 * (1.0 / z)));
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / y) - y tmp = 0 if y <= -8.5e-86: tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333))) elif y <= 1.95e-69: tmp = x + ((t / z) / (y * 3.0)) else: tmp = x + (t_1 * (0.3333333333333333 * (1.0 / z))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / y) - y) tmp = 0.0 if (y <= -8.5e-86) tmp = Float64(x + Float64(t_1 * Float64(1.0 / Float64(z / 0.3333333333333333)))); elseif (y <= 1.95e-69) tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))); else tmp = Float64(x + Float64(t_1 * Float64(0.3333333333333333 * Float64(1.0 / z)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / y) - y; tmp = 0.0; if (y <= -8.5e-86) tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333))); elseif (y <= 1.95e-69) tmp = x + ((t / z) / (y * 3.0)); else tmp = x + (t_1 * (0.3333333333333333 * (1.0 / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[y, -8.5e-86], N[(x + N[(t$95$1 * N[(1.0 / N[(z / 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e-69], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 * N[(0.3333333333333333 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y} - y\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{-86}:\\
\;\;\;\;x + t\_1 \cdot \frac{1}{\frac{z}{0.3333333333333333}}\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-69}:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + t\_1 \cdot \left(0.3333333333333333 \cdot \frac{1}{z}\right)\\
\end{array}
\end{array}
if y < -8.499999999999999e-86Initial program 97.2%
sub-neg97.2%
associate-+l+97.2%
+-commutative97.2%
remove-double-neg97.2%
distribute-frac-neg97.2%
distribute-neg-in97.2%
remove-double-neg97.2%
sub-neg97.2%
neg-mul-197.2%
times-frac98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
clear-num99.7%
inv-pow99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
if -8.499999999999999e-86 < y < 1.9499999999999999e-69Initial program 93.3%
sub-neg93.3%
associate-+l+93.3%
+-commutative93.3%
remove-double-neg93.3%
distribute-frac-neg93.3%
distribute-neg-in93.3%
remove-double-neg93.3%
sub-neg93.3%
neg-mul-193.3%
times-frac87.1%
distribute-frac-neg87.1%
neg-mul-187.1%
*-commutative87.1%
associate-/l*87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in t around inf 93.3%
metadata-eval93.3%
associate-/r*87.1%
times-frac87.0%
metadata-eval87.0%
times-frac87.2%
*-un-lft-identity87.2%
*-commutative87.2%
*-un-lft-identity87.2%
*-un-lft-identity87.2%
associate-*l/87.2%
frac-times93.3%
*-un-lft-identity93.3%
associate-/r*97.0%
Applied egg-rr97.0%
if 1.9499999999999999e-69 < y Initial program 97.3%
sub-neg97.3%
associate-+l+97.3%
+-commutative97.3%
remove-double-neg97.3%
distribute-frac-neg97.3%
distribute-neg-in97.3%
remove-double-neg97.3%
sub-neg97.3%
neg-mul-197.3%
times-frac98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
div-inv99.7%
Applied egg-rr99.7%
Final simplification98.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.6e-66) (not (<= y 2.6e-83))) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (+ x (/ (/ t z) (* y 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.6e-66) || !(y <= 2.6e-83)) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} 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 <= (-3.6d-66)) .or. (.not. (y <= 2.6d-83))) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
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 <= -3.6e-66) || !(y <= 2.6e-83)) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = x + ((t / z) / (y * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.6e-66) or not (y <= 2.6e-83): tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = x + ((t / z) / (y * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.6e-66) || !(y <= 2.6e-83)) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.6e-66) || ~((y <= 2.6e-83))) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = x + ((t / z) / (y * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.6e-66], N[Not[LessEqual[y, 2.6e-83]], $MachinePrecision]], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{-66} \lor \neg \left(y \leq 2.6 \cdot 10^{-83}\right):\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\
\end{array}
\end{array}
if y < -3.60000000000000012e-66 or 2.60000000000000009e-83 < y Initial program 97.8%
sub-neg97.8%
associate-+l+97.8%
+-commutative97.8%
remove-double-neg97.8%
distribute-frac-neg97.8%
distribute-neg-in97.8%
remove-double-neg97.8%
sub-neg97.8%
neg-mul-197.8%
times-frac98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
if -3.60000000000000012e-66 < y < 2.60000000000000009e-83Initial program 92.5%
sub-neg92.5%
associate-+l+92.5%
+-commutative92.5%
remove-double-neg92.5%
distribute-frac-neg92.5%
distribute-neg-in92.5%
remove-double-neg92.5%
sub-neg92.5%
neg-mul-192.5%
times-frac87.3%
distribute-frac-neg87.3%
neg-mul-187.3%
*-commutative87.3%
associate-/l*87.3%
*-commutative87.3%
Simplified87.2%
Taylor expanded in t around inf 92.5%
metadata-eval92.5%
associate-/r*87.2%
times-frac87.2%
metadata-eval87.2%
times-frac87.3%
*-un-lft-identity87.3%
*-commutative87.3%
*-un-lft-identity87.3%
*-un-lft-identity87.3%
associate-*l/87.3%
frac-times92.5%
*-un-lft-identity92.5%
associate-/r*97.0%
Applied egg-rr97.0%
Final simplification98.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.65e+37)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 0.0017)
(+ x (/ (/ t z) (* y 3.0)))
(- x (/ (* y 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.65e+37) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 0.0017) {
tmp = x + ((t / z) / (y * 3.0));
} else {
tmp = x - ((y * 0.3333333333333333) / 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 <= (-2.65d+37)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 0.0017d0) then
tmp = x + ((t / z) / (y * 3.0d0))
else
tmp = x - ((y * 0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.65e+37) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 0.0017) {
tmp = x + ((t / z) / (y * 3.0));
} else {
tmp = x - ((y * 0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.65e+37: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 0.0017: tmp = x + ((t / z) / (y * 3.0)) else: tmp = x - ((y * 0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.65e+37) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 0.0017) tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))); else tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.65e+37) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 0.0017) tmp = x + ((t / z) / (y * 3.0)); else tmp = x - ((y * 0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.65e+37], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0017], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.65 \cdot 10^{+37}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 0.0017:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.6500000000000001e37Initial program 97.9%
Taylor expanded in t around 0 95.8%
if -2.6500000000000001e37 < y < 0.00169999999999999991Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac90.6%
distribute-frac-neg90.6%
neg-mul-190.6%
*-commutative90.6%
associate-/l*90.6%
*-commutative90.6%
Simplified90.5%
Taylor expanded in t around inf 89.2%
metadata-eval89.2%
associate-/r*85.3%
times-frac85.3%
metadata-eval85.3%
times-frac85.4%
*-un-lft-identity85.4%
*-commutative85.4%
*-un-lft-identity85.4%
*-un-lft-identity85.4%
associate-*l/85.4%
frac-times89.2%
*-un-lft-identity89.2%
associate-/r*92.5%
Applied egg-rr92.5%
if 0.00169999999999999991 < y Initial program 98.2%
sub-neg98.2%
associate-+l+98.2%
+-commutative98.2%
remove-double-neg98.2%
distribute-frac-neg98.2%
distribute-neg-in98.2%
remove-double-neg98.2%
sub-neg98.2%
neg-mul-198.2%
times-frac98.2%
distribute-frac-neg98.2%
neg-mul-198.2%
*-commutative98.2%
associate-/l*98.2%
*-commutative98.2%
Simplified99.6%
Taylor expanded in t around 0 93.7%
metadata-eval93.7%
cancel-sign-sub-inv93.7%
associate-*r/93.8%
Simplified93.8%
Final simplification93.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.4e+37)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 0.00165)
(+ x (* 0.3333333333333333 (/ t (* y z))))
(- x (/ (* y 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.4e+37) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 0.00165) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x - ((y * 0.3333333333333333) / 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 <= (-8.4d+37)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 0.00165d0) then
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
else
tmp = x - ((y * 0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.4e+37) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 0.00165) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x - ((y * 0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.4e+37: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 0.00165: tmp = x + (0.3333333333333333 * (t / (y * z))) else: tmp = x - ((y * 0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.4e+37) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 0.00165) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); else tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8.4e+37) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 0.00165) tmp = x + (0.3333333333333333 * (t / (y * z))); else tmp = x - ((y * 0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.4e+37], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00165], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.4 \cdot 10^{+37}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -8.4000000000000004e37Initial program 97.9%
Taylor expanded in t around 0 95.8%
if -8.4000000000000004e37 < y < 0.00165Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac90.6%
distribute-frac-neg90.6%
neg-mul-190.6%
*-commutative90.6%
associate-/l*90.6%
*-commutative90.6%
Simplified90.5%
Taylor expanded in t around inf 89.2%
if 0.00165 < y Initial program 98.2%
sub-neg98.2%
associate-+l+98.2%
+-commutative98.2%
remove-double-neg98.2%
distribute-frac-neg98.2%
distribute-neg-in98.2%
remove-double-neg98.2%
sub-neg98.2%
neg-mul-198.2%
times-frac98.2%
distribute-frac-neg98.2%
neg-mul-198.2%
*-commutative98.2%
associate-/l*98.2%
*-commutative98.2%
Simplified99.6%
Taylor expanded in t around 0 93.7%
metadata-eval93.7%
cancel-sign-sub-inv93.7%
associate-*r/93.8%
Simplified93.8%
Final simplification91.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -750000000000.0) (not (<= y 6e-97))) (- x (* 0.3333333333333333 (/ y z))) (* (/ t z) (/ 0.3333333333333333 y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -750000000000.0) || !(y <= 6e-97)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = (t / z) * (0.3333333333333333 / 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 <= (-750000000000.0d0)) .or. (.not. (y <= 6d-97))) then
tmp = x - (0.3333333333333333d0 * (y / z))
else
tmp = (t / z) * (0.3333333333333333d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -750000000000.0) || !(y <= 6e-97)) {
tmp = x - (0.3333333333333333 * (y / z));
} else {
tmp = (t / z) * (0.3333333333333333 / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -750000000000.0) or not (y <= 6e-97): tmp = x - (0.3333333333333333 * (y / z)) else: tmp = (t / z) * (0.3333333333333333 / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -750000000000.0) || !(y <= 6e-97)) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); else tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -750000000000.0) || ~((y <= 6e-97))) tmp = x - (0.3333333333333333 * (y / z)); else tmp = (t / z) * (0.3333333333333333 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -750000000000.0], N[Not[LessEqual[y, 6e-97]], $MachinePrecision]], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -750000000000 \lor \neg \left(y \leq 6 \cdot 10^{-97}\right):\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\end{array}
\end{array}
if y < -7.5e11 or 6.00000000000000048e-97 < y Initial program 97.7%
Taylor expanded in t around 0 89.0%
if -7.5e11 < y < 6.00000000000000048e-97Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
associate-*r/66.1%
*-commutative66.1%
*-commutative66.1%
times-frac69.0%
Simplified69.0%
Final simplification80.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -750000000000.0)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 9.5e-101)
(/ (/ (/ t z) 3.0) y)
(- x (/ (* y 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -750000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 9.5e-101) {
tmp = ((t / z) / 3.0) / y;
} else {
tmp = x - ((y * 0.3333333333333333) / 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 <= (-750000000000.0d0)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 9.5d-101) then
tmp = ((t / z) / 3.0d0) / y
else
tmp = x - ((y * 0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -750000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 9.5e-101) {
tmp = ((t / z) / 3.0) / y;
} else {
tmp = x - ((y * 0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -750000000000.0: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 9.5e-101: tmp = ((t / z) / 3.0) / y else: tmp = x - ((y * 0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -750000000000.0) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 9.5e-101) tmp = Float64(Float64(Float64(t / z) / 3.0) / y); else tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -750000000000.0) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 9.5e-101) tmp = ((t / z) / 3.0) / y; else tmp = x - ((y * 0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -750000000000.0], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-101], N[(N[(N[(t / z), $MachinePrecision] / 3.0), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -750000000000:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-101}:\\
\;\;\;\;\frac{\frac{\frac{t}{z}}{3}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -7.5e11Initial program 98.0%
Taylor expanded in t around 0 96.1%
if -7.5e11 < y < 9.49999999999999994e-101Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
associate-*r/66.1%
*-commutative66.1%
times-frac59.8%
Simplified59.8%
clear-num59.8%
div-inv59.9%
metadata-eval59.9%
associate-/r*59.8%
times-frac69.0%
*-commutative69.0%
div-inv69.0%
associate-/r*69.0%
Applied egg-rr69.0%
if 9.49999999999999994e-101 < y Initial program 97.5%
sub-neg97.5%
associate-+l+97.5%
+-commutative97.5%
remove-double-neg97.5%
distribute-frac-neg97.5%
distribute-neg-in97.5%
remove-double-neg97.5%
sub-neg97.5%
neg-mul-197.5%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.6%
*-commutative98.6%
Simplified99.6%
Taylor expanded in t around 0 84.8%
metadata-eval84.8%
cancel-sign-sub-inv84.8%
associate-*r/84.9%
Simplified84.9%
Final simplification80.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -750000000000.0)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 8.2e-107)
(/ (* t (/ 0.3333333333333333 z)) y)
(- x (/ (* y 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -750000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 8.2e-107) {
tmp = (t * (0.3333333333333333 / z)) / y;
} else {
tmp = x - ((y * 0.3333333333333333) / 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 <= (-750000000000.0d0)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 8.2d-107) then
tmp = (t * (0.3333333333333333d0 / z)) / y
else
tmp = x - ((y * 0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -750000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 8.2e-107) {
tmp = (t * (0.3333333333333333 / z)) / y;
} else {
tmp = x - ((y * 0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -750000000000.0: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 8.2e-107: tmp = (t * (0.3333333333333333 / z)) / y else: tmp = x - ((y * 0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -750000000000.0) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 8.2e-107) tmp = Float64(Float64(t * Float64(0.3333333333333333 / z)) / y); else tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -750000000000.0) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 8.2e-107) tmp = (t * (0.3333333333333333 / z)) / y; else tmp = x - ((y * 0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -750000000000.0], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e-107], N[(N[(t * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -750000000000:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-107}:\\
\;\;\;\;\frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -7.5e11Initial program 98.0%
Taylor expanded in t around 0 96.1%
if -7.5e11 < y < 8.1999999999999998e-107Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
associate-*r/66.1%
*-commutative66.1%
times-frac59.8%
Simplified59.8%
associate-*l/69.0%
Applied egg-rr69.0%
if 8.1999999999999998e-107 < y Initial program 97.5%
sub-neg97.5%
associate-+l+97.5%
+-commutative97.5%
remove-double-neg97.5%
distribute-frac-neg97.5%
distribute-neg-in97.5%
remove-double-neg97.5%
sub-neg97.5%
neg-mul-197.5%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.6%
*-commutative98.6%
Simplified99.6%
Taylor expanded in t around 0 84.8%
metadata-eval84.8%
cancel-sign-sub-inv84.8%
associate-*r/84.9%
Simplified84.9%
Final simplification80.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -72000000000000.0)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 5.2e-96)
(* (/ t z) (/ 0.3333333333333333 y))
(- x (/ (* y 0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -72000000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 5.2e-96) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = x - ((y * 0.3333333333333333) / 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 <= (-72000000000000.0d0)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 5.2d-96) then
tmp = (t / z) * (0.3333333333333333d0 / y)
else
tmp = x - ((y * 0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -72000000000000.0) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 5.2e-96) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = x - ((y * 0.3333333333333333) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -72000000000000.0: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 5.2e-96: tmp = (t / z) * (0.3333333333333333 / y) else: tmp = x - ((y * 0.3333333333333333) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -72000000000000.0) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 5.2e-96) tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); else tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -72000000000000.0) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 5.2e-96) tmp = (t / z) * (0.3333333333333333 / y); else tmp = x - ((y * 0.3333333333333333) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -72000000000000.0], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e-96], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -72000000000000:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-96}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -7.2e13Initial program 98.0%
Taylor expanded in t around 0 96.1%
if -7.2e13 < y < 5.2000000000000003e-96Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
clear-num93.1%
inv-pow93.1%
*-commutative93.1%
*-un-lft-identity93.1%
times-frac93.1%
metadata-eval93.1%
Applied egg-rr93.1%
unpow-193.1%
Simplified93.1%
Taylor expanded in t around inf 66.2%
associate-*r/66.1%
*-commutative66.1%
*-commutative66.1%
times-frac69.0%
Simplified69.0%
if 5.2000000000000003e-96 < y Initial program 97.5%
sub-neg97.5%
associate-+l+97.5%
+-commutative97.5%
remove-double-neg97.5%
distribute-frac-neg97.5%
distribute-neg-in97.5%
remove-double-neg97.5%
sub-neg97.5%
neg-mul-197.5%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.6%
*-commutative98.6%
Simplified99.6%
Taylor expanded in t around 0 84.8%
metadata-eval84.8%
cancel-sign-sub-inv84.8%
associate-*r/84.9%
Simplified84.9%
Final simplification80.0%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8.5e+87) (not (<= y 8.2e+27))) (/ y (* z -3.0)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.5e+87) || !(y <= 8.2e+27)) {
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 <= (-8.5d+87)) .or. (.not. (y <= 8.2d+27))) 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 <= -8.5e+87) || !(y <= 8.2e+27)) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -8.5e+87) or not (y <= 8.2e+27): tmp = y / (z * -3.0) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -8.5e+87) || !(y <= 8.2e+27)) 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 <= -8.5e+87) || ~((y <= 8.2e+27))) tmp = y / (z * -3.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8.5e+87], N[Not[LessEqual[y, 8.2e+27]], $MachinePrecision]], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{+87} \lor \neg \left(y \leq 8.2 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -8.5000000000000001e87 or 8.2000000000000005e27 < y Initial program 98.8%
+-commutative98.8%
associate-+r-98.8%
sub-neg98.8%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
clear-num98.7%
inv-pow98.7%
*-commutative98.7%
*-un-lft-identity98.7%
times-frac98.8%
metadata-eval98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Taylor expanded in y around inf 74.2%
*-commutative74.2%
metadata-eval74.2%
times-frac74.4%
associate-*r/74.4%
*-commutative74.4%
associate-/r*74.2%
metadata-eval74.2%
Simplified74.2%
clear-num74.2%
un-div-inv74.3%
div-inv74.4%
metadata-eval74.4%
Applied egg-rr74.4%
if -8.5000000000000001e87 < y < 8.2000000000000005e27Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac91.0%
distribute-frac-neg91.0%
neg-mul-191.0%
*-commutative91.0%
associate-/l*91.0%
*-commutative91.0%
Simplified91.5%
Taylor expanded in x around inf 35.8%
Final simplification50.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.55e+88) (not (<= y 4.5e+27))) (/ -0.3333333333333333 (/ z y)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.55e+88) || !(y <= 4.5e+27)) {
tmp = -0.3333333333333333 / (z / y);
} 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 <= (-1.55d+88)) .or. (.not. (y <= 4.5d+27))) then
tmp = (-0.3333333333333333d0) / (z / y)
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 <= -1.55e+88) || !(y <= 4.5e+27)) {
tmp = -0.3333333333333333 / (z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.55e+88) or not (y <= 4.5e+27): tmp = -0.3333333333333333 / (z / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.55e+88) || !(y <= 4.5e+27)) tmp = Float64(-0.3333333333333333 / Float64(z / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.55e+88) || ~((y <= 4.5e+27))) tmp = -0.3333333333333333 / (z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.55e+88], N[Not[LessEqual[y, 4.5e+27]], $MachinePrecision]], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+88} \lor \neg \left(y \leq 4.5 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.5500000000000001e88 or 4.4999999999999999e27 < y Initial program 98.8%
+-commutative98.8%
associate-+r-98.8%
sub-neg98.8%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
clear-num98.7%
inv-pow98.7%
*-commutative98.7%
*-un-lft-identity98.7%
times-frac98.8%
metadata-eval98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Taylor expanded in y around inf 74.2%
clear-num74.3%
un-div-inv74.3%
Applied egg-rr74.3%
if -1.5500000000000001e88 < y < 4.4999999999999999e27Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac91.0%
distribute-frac-neg91.0%
neg-mul-191.0%
*-commutative91.0%
associate-/l*91.0%
*-commutative91.0%
Simplified91.5%
Taylor expanded in x around inf 35.8%
Final simplification50.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2.7e+88) (not (<= y 3.9e+27))) (* (/ y z) -0.3333333333333333) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2.7e+88) || !(y <= 3.9e+27)) {
tmp = (y / z) * -0.3333333333333333;
} 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 <= (-2.7d+88)) .or. (.not. (y <= 3.9d+27))) then
tmp = (y / z) * (-0.3333333333333333d0)
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 <= -2.7e+88) || !(y <= 3.9e+27)) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2.7e+88) or not (y <= 3.9e+27): tmp = (y / z) * -0.3333333333333333 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2.7e+88) || !(y <= 3.9e+27)) tmp = Float64(Float64(y / z) * -0.3333333333333333); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2.7e+88) || ~((y <= 3.9e+27))) tmp = (y / z) * -0.3333333333333333; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2.7e+88], N[Not[LessEqual[y, 3.9e+27]], $MachinePrecision]], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+88} \lor \neg \left(y \leq 3.9 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.70000000000000016e88 or 3.8999999999999999e27 < y Initial program 98.8%
+-commutative98.8%
associate-+r-98.8%
sub-neg98.8%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
clear-num98.7%
inv-pow98.7%
*-commutative98.7%
*-un-lft-identity98.7%
times-frac98.8%
metadata-eval98.8%
Applied egg-rr98.8%
unpow-198.8%
Simplified98.8%
Taylor expanded in y around inf 74.2%
if -2.70000000000000016e88 < y < 3.8999999999999999e27Initial program 93.7%
sub-neg93.7%
associate-+l+93.7%
+-commutative93.7%
remove-double-neg93.7%
distribute-frac-neg93.7%
distribute-neg-in93.7%
remove-double-neg93.7%
sub-neg93.7%
neg-mul-193.7%
times-frac91.0%
distribute-frac-neg91.0%
neg-mul-191.0%
*-commutative91.0%
associate-/l*91.0%
*-commutative91.0%
Simplified91.5%
Taylor expanded in x around inf 35.8%
Final simplification50.4%
(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 95.7%
sub-neg95.7%
associate-+l+95.7%
+-commutative95.7%
remove-double-neg95.7%
distribute-frac-neg95.7%
distribute-neg-in95.7%
remove-double-neg95.7%
sub-neg95.7%
neg-mul-195.7%
times-frac93.9%
distribute-frac-neg93.9%
neg-mul-193.9%
*-commutative93.9%
associate-/l*93.9%
*-commutative93.9%
Simplified94.6%
Taylor expanded in x around inf 31.3%
(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 2024128
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(! :herbie-platform default (+ (- x (/ y (* z 3))) (/ (/ t (* z 3)) y)))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))