
(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 (or (<= (* z 3.0) -2e-29) (not (<= (* z 3.0) 2e+50))) (+ (/ y (* z -3.0)) (+ x (/ t (* z (* y 3.0))))) (+ x (* (/ -0.3333333333333333 z) (- y (/ t y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (((z * 3.0) <= -2e-29) || !((z * 3.0) <= 2e+50)) {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
} else {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / 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 (((z * 3.0d0) <= (-2d-29)) .or. (.not. ((z * 3.0d0) <= 2d+50))) then
tmp = (y / (z * (-3.0d0))) + (x + (t / (z * (y * 3.0d0))))
else
tmp = x + (((-0.3333333333333333d0) / z) * (y - (t / y)))
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-29) || !((z * 3.0) <= 2e+50)) {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
} else {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((z * 3.0) <= -2e-29) or not ((z * 3.0) <= 2e+50): tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))) else: tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(z * 3.0) <= -2e-29) || !(Float64(z * 3.0) <= 2e+50)) tmp = Float64(Float64(y / Float64(z * -3.0)) + Float64(x + Float64(t / Float64(z * Float64(y * 3.0))))); else tmp = Float64(x + Float64(Float64(-0.3333333333333333 / z) * Float64(y - Float64(t / y)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((z * 3.0) <= -2e-29) || ~(((z * 3.0) <= 2e+50))) tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))); else tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z * 3.0), $MachinePrecision], -2e-29], N[Not[LessEqual[N[(z * 3.0), $MachinePrecision], 2e+50]], $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], N[(x + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{-29} \lor \neg \left(z \cdot 3 \leq 2 \cdot 10^{+50}\right):\\
\;\;\;\;\frac{y}{z \cdot -3} + \left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < -1.99999999999999989e-29 or 2.0000000000000002e50 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
+-commutative99.8%
associate-+r-99.8%
sub-neg99.8%
associate-*l*99.8%
*-commutative99.8%
distribute-frac-neg299.8%
distribute-rgt-neg-in99.8%
metadata-eval99.8%
Simplified99.8%
if -1.99999999999999989e-29 < (*.f64 z #s(literal 3 binary64)) < 2.0000000000000002e50Initial program 88.0%
sub-neg88.0%
associate-+l+88.0%
remove-double-neg88.0%
distribute-frac-neg88.0%
sub-neg88.0%
distribute-frac-neg88.0%
neg-mul-188.0%
*-commutative88.0%
associate-/l*88.0%
*-commutative88.0%
neg-mul-188.0%
times-frac96.6%
distribute-lft-out--99.8%
*-commutative99.8%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* 0.3333333333333333 (/ t (* y z)))))
(if (<= y -8e+71)
(/ y (* z -3.0))
(if (<= y 9.5e-91)
t_1
(if (<= y 9.2e+46)
x
(if (<= y 3.1e+50) t_1 (* y (/ -0.3333333333333333 z))))))))
double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -8e+71) {
tmp = y / (z * -3.0);
} else if (y <= 9.5e-91) {
tmp = t_1;
} else if (y <= 9.2e+46) {
tmp = x;
} else if (y <= 3.1e+50) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = 0.3333333333333333d0 * (t / (y * z))
if (y <= (-8d+71)) then
tmp = y / (z * (-3.0d0))
else if (y <= 9.5d-91) then
tmp = t_1
else if (y <= 9.2d+46) then
tmp = x
else if (y <= 3.1d+50) then
tmp = t_1
else
tmp = y * ((-0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * (t / (y * z));
double tmp;
if (y <= -8e+71) {
tmp = y / (z * -3.0);
} else if (y <= 9.5e-91) {
tmp = t_1;
} else if (y <= 9.2e+46) {
tmp = x;
} else if (y <= 3.1e+50) {
tmp = t_1;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = 0.3333333333333333 * (t / (y * z)) tmp = 0 if y <= -8e+71: tmp = y / (z * -3.0) elif y <= 9.5e-91: tmp = t_1 elif y <= 9.2e+46: tmp = x elif y <= 3.1e+50: tmp = t_1 else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) t_1 = Float64(0.3333333333333333 * Float64(t / Float64(y * z))) tmp = 0.0 if (y <= -8e+71) tmp = Float64(y / Float64(z * -3.0)); elseif (y <= 9.5e-91) tmp = t_1; elseif (y <= 9.2e+46) tmp = x; elseif (y <= 3.1e+50) tmp = t_1; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = 0.3333333333333333 * (t / (y * z)); tmp = 0.0; if (y <= -8e+71) tmp = y / (z * -3.0); elseif (y <= 9.5e-91) tmp = t_1; elseif (y <= 9.2e+46) tmp = x; elseif (y <= 3.1e+50) tmp = t_1; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8e+71], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-91], t$95$1, If[LessEqual[y, 9.2e+46], x, If[LessEqual[y, 3.1e+50], t$95$1, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{if}\;y \leq -8 \cdot 10^{+71}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+46}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -8.0000000000000003e71Initial program 93.8%
+-commutative93.8%
associate-+r-93.8%
sub-neg93.8%
associate-*l*93.8%
*-commutative93.8%
distribute-frac-neg293.8%
distribute-rgt-neg-in93.8%
metadata-eval93.8%
Simplified93.8%
associate-/r*90.0%
div-inv90.0%
Applied egg-rr90.0%
Taylor expanded in y around inf 69.4%
associate-*r/69.3%
*-commutative69.3%
metadata-eval69.3%
div-inv69.3%
associate-/l/69.4%
Applied egg-rr69.4%
if -8.0000000000000003e71 < y < 9.5e-91 or 9.2000000000000002e46 < y < 3.10000000000000003e50Initial program 92.7%
+-commutative92.7%
associate-+r-92.7%
sub-neg92.7%
associate-*l*92.7%
*-commutative92.7%
distribute-frac-neg292.7%
distribute-rgt-neg-in92.7%
metadata-eval92.7%
Simplified92.7%
*-un-lft-identity92.7%
times-frac92.7%
Applied egg-rr92.7%
associate-*l/92.7%
*-lft-identity92.7%
Simplified92.7%
Taylor expanded in t around inf 64.9%
if 9.5e-91 < y < 9.2000000000000002e46Initial program 91.7%
sub-neg91.7%
associate-+l+91.7%
remove-double-neg91.7%
distribute-frac-neg91.7%
sub-neg91.7%
distribute-frac-neg91.7%
neg-mul-191.7%
*-commutative91.7%
associate-/l*91.6%
*-commutative91.6%
neg-mul-191.6%
times-frac95.6%
distribute-lft-out--95.7%
*-commutative95.7%
associate-/r*95.8%
metadata-eval95.8%
Simplified95.8%
Taylor expanded in x around inf 54.5%
if 3.10000000000000003e50 < 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%
associate-/r*97.8%
div-inv97.8%
Applied egg-rr97.8%
Taylor expanded in y around inf 64.4%
*-commutative64.4%
associate-*l/64.5%
associate-*r/64.6%
Simplified64.6%
Final simplification64.7%
(FPCore (x y z t) :precision binary64 (if (<= y -2e-116) (+ x (* (/ -0.3333333333333333 z) (- y (/ t y)))) (+ (+ x (* (/ t z) (/ 1.0 (* y 3.0)))) (/ y (* z -3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e-116) {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
} else {
tmp = (x + ((t / z) * (1.0 / (y * 3.0)))) + (y / (z * -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 <= (-2d-116)) then
tmp = x + (((-0.3333333333333333d0) / z) * (y - (t / y)))
else
tmp = (x + ((t / z) * (1.0d0 / (y * 3.0d0)))) + (y / (z * (-3.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e-116) {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
} else {
tmp = (x + ((t / z) * (1.0 / (y * 3.0)))) + (y / (z * -3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2e-116: tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))) else: tmp = (x + ((t / z) * (1.0 / (y * 3.0)))) + (y / (z * -3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2e-116) tmp = Float64(x + Float64(Float64(-0.3333333333333333 / z) * Float64(y - Float64(t / y)))); else tmp = Float64(Float64(x + Float64(Float64(t / z) * Float64(1.0 / Float64(y * 3.0)))) + Float64(y / Float64(z * -3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2e-116) tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))); else tmp = (x + ((t / z) * (1.0 / (y * 3.0)))) + (y / (z * -3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2e-116], N[(x + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(t / z), $MachinePrecision] * N[(1.0 / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-116}:\\
\;\;\;\;x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{t}{z} \cdot \frac{1}{y \cdot 3}\right) + \frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if y < -2e-116Initial program 95.3%
sub-neg95.3%
associate-+l+95.3%
remove-double-neg95.3%
distribute-frac-neg95.3%
sub-neg95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.3%
*-commutative95.3%
neg-mul-195.3%
times-frac95.3%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
if -2e-116 < y Initial program 93.4%
+-commutative93.4%
associate-+r-93.4%
sub-neg93.4%
associate-*l*93.4%
*-commutative93.4%
distribute-frac-neg293.4%
distribute-rgt-neg-in93.4%
metadata-eval93.4%
Simplified93.4%
associate-/r*99.2%
div-inv99.2%
Applied egg-rr99.2%
Final simplification99.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8.2e-134) (not (<= y 1.48e-61))) (+ x (* (/ -0.3333333333333333 z) (- y (/ t y)))) (+ x (/ 0.3333333333333333 (* y (/ z t))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.2e-134) || !(y <= 1.48e-61)) {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
} else {
tmp = x + (0.3333333333333333 / (y * (z / t)));
}
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.2d-134)) .or. (.not. (y <= 1.48d-61))) then
tmp = x + (((-0.3333333333333333d0) / z) * (y - (t / y)))
else
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.2e-134) || !(y <= 1.48e-61)) {
tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
} else {
tmp = x + (0.3333333333333333 / (y * (z / t)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -8.2e-134) or not (y <= 1.48e-61): tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))) else: tmp = x + (0.3333333333333333 / (y * (z / t))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -8.2e-134) || !(y <= 1.48e-61)) tmp = Float64(x + Float64(Float64(-0.3333333333333333 / z) * Float64(y - Float64(t / y)))); else tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -8.2e-134) || ~((y <= 1.48e-61))) tmp = x + ((-0.3333333333333333 / z) * (y - (t / y))); else tmp = x + (0.3333333333333333 / (y * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8.2e-134], N[Not[LessEqual[y, 1.48e-61]], $MachinePrecision]], N[(x + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{-134} \lor \neg \left(y \leq 1.48 \cdot 10^{-61}\right):\\
\;\;\;\;x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\end{array}
\end{array}
if y < -8.2000000000000004e-134 or 1.4799999999999999e-61 < y Initial program 97.3%
sub-neg97.3%
associate-+l+97.3%
remove-double-neg97.3%
distribute-frac-neg97.3%
sub-neg97.3%
distribute-frac-neg97.3%
neg-mul-197.3%
*-commutative97.3%
associate-/l*97.2%
*-commutative97.2%
neg-mul-197.2%
times-frac97.2%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.8%
metadata-eval99.8%
Simplified99.8%
if -8.2000000000000004e-134 < y < 1.4799999999999999e-61Initial program 89.0%
sub-neg89.0%
associate-+l+89.0%
remove-double-neg89.0%
distribute-frac-neg89.0%
sub-neg89.0%
distribute-frac-neg89.0%
neg-mul-189.0%
*-commutative89.0%
associate-/l*89.0%
*-commutative89.0%
neg-mul-189.0%
times-frac85.7%
distribute-lft-out--85.7%
*-commutative85.7%
associate-/r*85.7%
metadata-eval85.7%
Simplified85.7%
Taylor expanded in y around 0 87.7%
metadata-eval87.7%
times-frac87.7%
*-commutative87.7%
*-lft-identity87.7%
associate-*r*87.7%
Simplified87.7%
associate-/r*84.4%
div-inv84.4%
frac-times98.5%
associate-/r*98.4%
associate-*r/98.5%
times-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
*-commutative98.5%
clear-num98.5%
un-div-inv98.5%
div-inv98.5%
clear-num98.5%
Applied egg-rr98.5%
Final simplification99.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.6e+72)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 2.35e+49)
(+ 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 <= -2.6e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.35e+49) {
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 <= (-2.6d+72)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 2.35d+49) 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 <= -2.6e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.35e+49) {
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 <= -2.6e+72: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 2.35e+49: 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 <= -2.6e+72) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 2.35e+49) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.6e+72) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 2.35e+49) 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, -2.6e+72], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e+49], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+72}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+49}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.59999999999999981e72Initial program 93.7%
Taylor expanded in t around 0 94.3%
if -2.59999999999999981e72 < y < 2.3499999999999999e49Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac90.6%
distribute-lft-out--91.2%
*-commutative91.2%
associate-/r*91.2%
metadata-eval91.2%
Simplified91.2%
Taylor expanded in y around 0 86.7%
if 2.3499999999999999e49 < y Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.8%
*-commutative99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around 0 97.6%
+-commutative97.6%
associate-*r/97.8%
associate-*l/97.8%
*-commutative97.8%
Simplified97.8%
Final simplification90.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.5e+72)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 1.6e+49)
(+ x (* 0.3333333333333333 (/ (/ t z) y)))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.5e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.6e+49) {
tmp = x + (0.3333333333333333 * ((t / 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 <= (-2.5d+72)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 1.6d+49) then
tmp = x + (0.3333333333333333d0 * ((t / 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 <= -2.5e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.6e+49) {
tmp = x + (0.3333333333333333 * ((t / z) / y));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.5e+72: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 1.6e+49: tmp = x + (0.3333333333333333 * ((t / z) / y)) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.5e+72) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 1.6e+49) tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(t / z) / y))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.5e+72) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 1.6e+49) tmp = x + (0.3333333333333333 * ((t / z) / y)); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.5e+72], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+49], N[(x + N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+72}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+49}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.49999999999999996e72Initial program 93.7%
Taylor expanded in t around 0 94.3%
if -2.49999999999999996e72 < y < 1.60000000000000007e49Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac90.6%
distribute-lft-out--91.2%
*-commutative91.2%
associate-/r*91.2%
metadata-eval91.2%
Simplified91.2%
Taylor expanded in y around 0 86.7%
metadata-eval86.7%
times-frac86.7%
*-commutative86.7%
*-lft-identity86.7%
associate-*r*86.7%
Simplified86.7%
associate-/r*84.7%
div-inv84.6%
frac-times93.2%
associate-/r*93.2%
associate-*r/93.2%
times-frac93.2%
metadata-eval93.2%
Applied egg-rr93.2%
if 1.60000000000000007e49 < y Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.8%
*-commutative99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around 0 97.6%
+-commutative97.6%
associate-*r/97.8%
associate-*l/97.8%
*-commutative97.8%
Simplified97.8%
Final simplification94.2%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.5e+72)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 2.8e+49)
(+ x (/ 0.3333333333333333 (* y (/ z t))))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.5e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.8e+49) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} 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.5d+72)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 2.8d+49) then
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
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.5e+72) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.8e+49) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.5e+72: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 2.8e+49: tmp = x + (0.3333333333333333 / (y * (z / t))) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.5e+72) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 2.8e+49) tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.5e+72) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 2.8e+49) tmp = x + (0.3333333333333333 / (y * (z / t))); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.5e+72], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+49], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+72}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+49}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.49999999999999996e72Initial program 93.7%
Taylor expanded in t around 0 94.3%
if -2.49999999999999996e72 < y < 2.7999999999999998e49Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac90.6%
distribute-lft-out--91.2%
*-commutative91.2%
associate-/r*91.2%
metadata-eval91.2%
Simplified91.2%
Taylor expanded in y around 0 86.7%
metadata-eval86.7%
times-frac86.7%
*-commutative86.7%
*-lft-identity86.7%
associate-*r*86.7%
Simplified86.7%
associate-/r*84.7%
div-inv84.6%
frac-times93.2%
associate-/r*93.2%
associate-*r/93.2%
times-frac93.2%
metadata-eval93.2%
Applied egg-rr93.2%
*-commutative93.2%
clear-num93.2%
un-div-inv93.2%
div-inv93.2%
clear-num93.2%
Applied egg-rr93.2%
if 2.7999999999999998e49 < y Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
remove-double-neg99.9%
distribute-frac-neg99.9%
sub-neg99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.8%
*-commutative99.8%
neg-mul-199.8%
times-frac99.7%
distribute-lft-out--99.7%
*-commutative99.7%
associate-/r*99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around 0 97.6%
+-commutative97.6%
associate-*r/97.8%
associate-*l/97.8%
*-commutative97.8%
Simplified97.8%
Final simplification94.2%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.2e-74) (not (<= y 1.4e-90))) (+ x (* y (/ -0.3333333333333333 z))) (* 0.3333333333333333 (/ t (* y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.2e-74) || !(y <= 1.4e-90)) {
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 <= (-4.2d-74)) .or. (.not. (y <= 1.4d-90))) 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 <= -4.2e-74) || !(y <= 1.4e-90)) {
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 <= -4.2e-74) or not (y <= 1.4e-90): 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 <= -4.2e-74) || !(y <= 1.4e-90)) tmp = Float64(x + Float64(y * Float64(-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 <= -4.2e-74) || ~((y <= 1.4e-90))) 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, -4.2e-74], N[Not[LessEqual[y, 1.4e-90]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{-74} \lor \neg \left(y \leq 1.4 \cdot 10^{-90}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -4.2e-74 or 1.3999999999999999e-90 < y Initial program 96.0%
sub-neg96.0%
associate-+l+96.0%
remove-double-neg96.0%
distribute-frac-neg96.0%
sub-neg96.0%
distribute-frac-neg96.0%
neg-mul-196.0%
*-commutative96.0%
associate-/l*95.9%
*-commutative95.9%
neg-mul-195.9%
times-frac96.5%
distribute-lft-out--99.1%
*-commutative99.1%
associate-/r*99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in t around 0 82.4%
+-commutative82.4%
associate-*r/82.4%
associate-*l/82.4%
*-commutative82.4%
Simplified82.4%
if -4.2e-74 < y < 1.3999999999999999e-90Initial program 91.2%
+-commutative91.2%
associate-+r-91.2%
sub-neg91.2%
associate-*l*91.2%
*-commutative91.2%
distribute-frac-neg291.2%
distribute-rgt-neg-in91.2%
metadata-eval91.2%
Simplified91.2%
*-un-lft-identity91.2%
times-frac91.2%
Applied egg-rr91.2%
associate-*l/91.2%
*-lft-identity91.2%
Simplified91.2%
Taylor expanded in t around inf 72.9%
Final simplification78.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.35e-79)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 1.4e-90)
(* 0.3333333333333333 (/ t (* y z)))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.35e-79) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.4e-90) {
tmp = 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 <= (-2.35d-79)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 1.4d-90) then
tmp = 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 <= -2.35e-79) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.4e-90) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.35e-79: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 1.4e-90: tmp = 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 <= -2.35e-79) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 1.4e-90) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.35e-79) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 1.4e-90) tmp = 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, -2.35e-79], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-90], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.35 \cdot 10^{-79}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-90}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.3500000000000001e-79Initial program 95.0%
Taylor expanded in t around 0 81.5%
if -2.3500000000000001e-79 < y < 1.3999999999999999e-90Initial program 91.2%
+-commutative91.2%
associate-+r-91.2%
sub-neg91.2%
associate-*l*91.2%
*-commutative91.2%
distribute-frac-neg291.2%
distribute-rgt-neg-in91.2%
metadata-eval91.2%
Simplified91.2%
*-un-lft-identity91.2%
times-frac91.2%
Applied egg-rr91.2%
associate-*l/91.2%
*-lft-identity91.2%
Simplified91.2%
Taylor expanded in t around inf 72.9%
if 1.3999999999999999e-90 < y Initial program 97.1%
sub-neg97.1%
associate-+l+97.1%
remove-double-neg97.1%
distribute-frac-neg97.1%
sub-neg97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*96.9%
*-commutative96.9%
neg-mul-196.9%
times-frac98.3%
distribute-lft-out--98.3%
*-commutative98.3%
associate-/r*98.5%
metadata-eval98.5%
Simplified98.5%
Taylor expanded in t around 0 83.4%
+-commutative83.4%
associate-*r/83.5%
associate-*l/83.5%
*-commutative83.5%
Simplified83.5%
Final simplification78.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.2e-76)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 3.7e-90)
(* 0.3333333333333333 (/ t (* y z)))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.2e-76) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 3.7e-90) {
tmp = 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 <= (-1.2d-76)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 3.7d-90) then
tmp = 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 <= -1.2e-76) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 3.7e-90) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.2e-76: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 3.7e-90: tmp = 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 <= -1.2e-76) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 3.7e-90) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.2e-76) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 3.7e-90) tmp = 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, -1.2e-76], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-90], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-76}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-90}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.20000000000000007e-76Initial program 95.0%
Taylor expanded in t around 0 81.5%
associate-*r/81.5%
Applied egg-rr81.5%
if -1.20000000000000007e-76 < y < 3.70000000000000018e-90Initial program 91.2%
+-commutative91.2%
associate-+r-91.2%
sub-neg91.2%
associate-*l*91.2%
*-commutative91.2%
distribute-frac-neg291.2%
distribute-rgt-neg-in91.2%
metadata-eval91.2%
Simplified91.2%
*-un-lft-identity91.2%
times-frac91.2%
Applied egg-rr91.2%
associate-*l/91.2%
*-lft-identity91.2%
Simplified91.2%
Taylor expanded in t around inf 72.9%
if 3.70000000000000018e-90 < y Initial program 97.1%
sub-neg97.1%
associate-+l+97.1%
remove-double-neg97.1%
distribute-frac-neg97.1%
sub-neg97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*96.9%
*-commutative96.9%
neg-mul-196.9%
times-frac98.3%
distribute-lft-out--98.3%
*-commutative98.3%
associate-/r*98.5%
metadata-eval98.5%
Simplified98.5%
Taylor expanded in t around 0 83.4%
+-commutative83.4%
associate-*r/83.5%
associate-*l/83.5%
*-commutative83.5%
Simplified83.5%
Final simplification78.6%
(FPCore (x y z t) :precision binary64 (if (<= x -6.2e-68) x (if (<= x 3.7e+85) (* -0.3333333333333333 (/ y z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.2e-68) {
tmp = x;
} else if (x <= 3.7e+85) {
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 (x <= (-6.2d-68)) then
tmp = x
else if (x <= 3.7d+85) 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 (x <= -6.2e-68) {
tmp = x;
} else if (x <= 3.7e+85) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -6.2e-68: tmp = x elif x <= 3.7e+85: tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -6.2e-68) tmp = x; elseif (x <= 3.7e+85) 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 (x <= -6.2e-68) tmp = x; elseif (x <= 3.7e+85) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -6.2e-68], x, If[LessEqual[x, 3.7e+85], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{-68}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+85}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -6.1999999999999999e-68 or 3.7000000000000002e85 < x Initial program 89.8%
sub-neg89.8%
associate-+l+89.8%
remove-double-neg89.8%
distribute-frac-neg89.8%
sub-neg89.8%
distribute-frac-neg89.8%
neg-mul-189.8%
*-commutative89.8%
associate-/l*89.8%
*-commutative89.8%
neg-mul-189.8%
times-frac93.0%
distribute-lft-out--95.4%
*-commutative95.4%
associate-/r*95.4%
metadata-eval95.4%
Simplified95.4%
Taylor expanded in x around inf 49.1%
if -6.1999999999999999e-68 < x < 3.7000000000000002e85Initial 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%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 43.6%
Final simplification46.3%
(FPCore (x y z t) :precision binary64 (if (<= x -8.5e-68) x (if (<= x 1.05e+84) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8.5e-68) {
tmp = x;
} else if (x <= 1.05e+84) {
tmp = y * (-0.3333333333333333 / 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 (x <= (-8.5d-68)) then
tmp = x
else if (x <= 1.05d+84) then
tmp = y * ((-0.3333333333333333d0) / 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 (x <= -8.5e-68) {
tmp = x;
} else if (x <= 1.05e+84) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8.5e-68: tmp = x elif x <= 1.05e+84: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8.5e-68) tmp = x; elseif (x <= 1.05e+84) tmp = Float64(y * Float64(-0.3333333333333333 / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -8.5e-68) tmp = x; elseif (x <= 1.05e+84) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8.5e-68], x, If[LessEqual[x, 1.05e+84], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-68}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+84}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.50000000000000026e-68 or 1.05000000000000009e84 < x Initial program 89.8%
sub-neg89.8%
associate-+l+89.8%
remove-double-neg89.8%
distribute-frac-neg89.8%
sub-neg89.8%
distribute-frac-neg89.8%
neg-mul-189.8%
*-commutative89.8%
associate-/l*89.8%
*-commutative89.8%
neg-mul-189.8%
times-frac93.0%
distribute-lft-out--95.4%
*-commutative95.4%
associate-/r*95.4%
metadata-eval95.4%
Simplified95.4%
Taylor expanded in x around inf 49.1%
if -8.50000000000000026e-68 < x < 1.05000000000000009e84Initial 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%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 43.6%
*-commutative43.6%
associate-*l/43.6%
associate-*r/43.6%
Simplified43.6%
Final simplification46.4%
(FPCore (x y z t) :precision binary64 (if (<= x -2.5e-68) (* y (/ x y)) (if (<= x 4e+85) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.5e-68) {
tmp = y * (x / y);
} else if (x <= 4e+85) {
tmp = y * (-0.3333333333333333 / 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 (x <= (-2.5d-68)) then
tmp = y * (x / y)
else if (x <= 4d+85) then
tmp = y * ((-0.3333333333333333d0) / 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 (x <= -2.5e-68) {
tmp = y * (x / y);
} else if (x <= 4e+85) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.5e-68: tmp = y * (x / y) elif x <= 4e+85: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.5e-68) tmp = Float64(y * Float64(x / y)); elseif (x <= 4e+85) tmp = Float64(y * Float64(-0.3333333333333333 / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2.5e-68) tmp = y * (x / y); elseif (x <= 4e+85) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.5e-68], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+85], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{-68}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+85}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.49999999999999986e-68Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac91.6%
distribute-lft-out--94.1%
*-commutative94.1%
associate-/r*94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in y around inf 57.4%
Taylor expanded in x around inf 46.9%
if -2.49999999999999986e-68 < x < 4.0000000000000001e85Initial 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%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 43.6%
*-commutative43.6%
associate-*l/43.6%
associate-*r/43.6%
Simplified43.6%
if 4.0000000000000001e85 < x Initial program 84.9%
sub-neg84.9%
associate-+l+84.9%
remove-double-neg84.9%
distribute-frac-neg84.9%
sub-neg84.9%
distribute-frac-neg84.9%
neg-mul-184.9%
*-commutative84.9%
associate-/l*84.9%
*-commutative84.9%
neg-mul-184.9%
times-frac95.6%
distribute-lft-out--97.8%
*-commutative97.8%
associate-/r*97.8%
metadata-eval97.8%
Simplified97.8%
Taylor expanded in x around inf 56.7%
Final simplification47.0%
(FPCore (x y z t) :precision binary64 (if (<= x -9.5e-68) (* z (/ x z)) (if (<= x 4e+85) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -9.5e-68) {
tmp = z * (x / z);
} else if (x <= 4e+85) {
tmp = y * (-0.3333333333333333 / 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 (x <= (-9.5d-68)) then
tmp = z * (x / z)
else if (x <= 4d+85) then
tmp = y * ((-0.3333333333333333d0) / 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 (x <= -9.5e-68) {
tmp = z * (x / z);
} else if (x <= 4e+85) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -9.5e-68: tmp = z * (x / z) elif x <= 4e+85: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -9.5e-68) tmp = Float64(z * Float64(x / z)); elseif (x <= 4e+85) tmp = Float64(y * Float64(-0.3333333333333333 / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -9.5e-68) tmp = z * (x / z); elseif (x <= 4e+85) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -9.5e-68], N[(z * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+85], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{-68}:\\
\;\;\;\;z \cdot \frac{x}{z}\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+85}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -9.4999999999999997e-68Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac91.6%
distribute-lft-out--94.1%
*-commutative94.1%
associate-/r*94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in y around inf 57.4%
Taylor expanded in z around 0 35.7%
Taylor expanded in y around 0 25.1%
*-commutative25.1%
associate-/l*51.9%
Applied egg-rr51.9%
if -9.4999999999999997e-68 < x < 4.0000000000000001e85Initial 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%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 43.6%
*-commutative43.6%
associate-*l/43.6%
associate-*r/43.6%
Simplified43.6%
if 4.0000000000000001e85 < x Initial program 84.9%
sub-neg84.9%
associate-+l+84.9%
remove-double-neg84.9%
distribute-frac-neg84.9%
sub-neg84.9%
distribute-frac-neg84.9%
neg-mul-184.9%
*-commutative84.9%
associate-/l*84.9%
*-commutative84.9%
neg-mul-184.9%
times-frac95.6%
distribute-lft-out--97.8%
*-commutative97.8%
associate-/r*97.8%
metadata-eval97.8%
Simplified97.8%
Taylor expanded in x around inf 56.7%
Final simplification48.6%
(FPCore (x y z t) :precision binary64 (if (<= x -1.42e-67) (* z (/ x z)) (if (<= x 1.35e+84) (/ y (* z -3.0)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.42e-67) {
tmp = z * (x / z);
} else if (x <= 1.35e+84) {
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 (x <= (-1.42d-67)) then
tmp = z * (x / z)
else if (x <= 1.35d+84) 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 (x <= -1.42e-67) {
tmp = z * (x / z);
} else if (x <= 1.35e+84) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.42e-67: tmp = z * (x / z) elif x <= 1.35e+84: tmp = y / (z * -3.0) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.42e-67) tmp = Float64(z * Float64(x / z)); elseif (x <= 1.35e+84) 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 (x <= -1.42e-67) tmp = z * (x / z); elseif (x <= 1.35e+84) tmp = y / (z * -3.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.42e-67], N[(z * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+84], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.42 \cdot 10^{-67}:\\
\;\;\;\;z \cdot \frac{x}{z}\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+84}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.42000000000000004e-67Initial program 92.6%
sub-neg92.6%
associate-+l+92.6%
remove-double-neg92.6%
distribute-frac-neg92.6%
sub-neg92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
*-commutative92.6%
neg-mul-192.6%
times-frac91.6%
distribute-lft-out--94.1%
*-commutative94.1%
associate-/r*94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in y around inf 57.4%
Taylor expanded in z around 0 35.7%
Taylor expanded in y around 0 25.1%
*-commutative25.1%
associate-/l*51.9%
Applied egg-rr51.9%
if -1.42000000000000004e-67 < x < 1.35e84Initial 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%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 43.6%
associate-*r/43.6%
*-commutative43.6%
metadata-eval43.6%
div-inv43.7%
associate-/l/43.7%
Applied egg-rr43.7%
if 1.35e84 < x Initial program 84.9%
sub-neg84.9%
associate-+l+84.9%
remove-double-neg84.9%
distribute-frac-neg84.9%
sub-neg84.9%
distribute-frac-neg84.9%
neg-mul-184.9%
*-commutative84.9%
associate-/l*84.9%
*-commutative84.9%
neg-mul-184.9%
times-frac95.6%
distribute-lft-out--97.8%
*-commutative97.8%
associate-/r*97.8%
metadata-eval97.8%
Simplified97.8%
Taylor expanded in x around inf 56.7%
Final simplification48.6%
(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 94.1%
sub-neg94.1%
associate-+l+94.1%
remove-double-neg94.1%
distribute-frac-neg94.1%
sub-neg94.1%
distribute-frac-neg94.1%
neg-mul-194.1%
*-commutative94.1%
associate-/l*94.0%
*-commutative94.0%
neg-mul-194.0%
times-frac92.7%
distribute-lft-out--94.3%
*-commutative94.3%
associate-/r*94.3%
metadata-eval94.3%
Simplified94.3%
Taylor expanded in x around inf 31.3%
Final simplification31.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 2024095
(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))))