
(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 18 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 (<= (* z 3.0) 20000000.0) (+ x (/ (- (/ t y) y) (* z 3.0))) (+ (+ x (/ t (* z (* 3.0 y)))) (/ y (* z -3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 20000000.0) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x + (t / (z * (3.0 * y)))) + (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 ((z * 3.0d0) <= 20000000.0d0) then
tmp = x + (((t / y) - y) / (z * 3.0d0))
else
tmp = (x + (t / (z * (3.0d0 * y)))) + (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 ((z * 3.0) <= 20000000.0) {
tmp = x + (((t / y) - y) / (z * 3.0));
} else {
tmp = (x + (t / (z * (3.0 * y)))) + (y / (z * -3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 20000000.0: tmp = x + (((t / y) - y) / (z * 3.0)) else: tmp = (x + (t / (z * (3.0 * y)))) + (y / (z * -3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 20000000.0) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))); else tmp = Float64(Float64(x + Float64(t / Float64(z * Float64(3.0 * y)))) + Float64(y / Float64(z * -3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 20000000.0) tmp = x + (((t / y) - y) / (z * 3.0)); else tmp = (x + (t / (z * (3.0 * y)))) + (y / (z * -3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 20000000.0], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(t / N[(z * N[(3.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 20000000:\\
\;\;\;\;x + \frac{\frac{t}{y} - y}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{t}{z \cdot \left(3 \cdot y\right)}\right) + \frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 2e7Initial program 93.2%
+-commutative93.2%
associate-+r-93.2%
+-commutative93.2%
associate--l+93.2%
sub-neg93.2%
remove-double-neg93.2%
distribute-frac-neg93.2%
distribute-neg-in93.2%
remove-double-neg93.2%
sub-neg93.2%
neg-mul-193.2%
times-frac97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
associate-/l*97.4%
*-commutative97.4%
Simplified98.8%
*-commutative98.8%
clear-num98.8%
div-inv98.8%
metadata-eval98.8%
un-div-inv98.9%
Applied egg-rr98.9%
if 2e7 < (*.f64 z #s(literal 3 binary64)) Initial program 97.9%
+-commutative97.9%
associate-+r-97.9%
sub-neg97.9%
associate-*l*98.0%
*-commutative98.0%
distribute-frac-neg298.0%
distribute-rgt-neg-in98.0%
metadata-eval98.0%
Simplified98.0%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.38e+48)
(/ (* y -0.3333333333333333) z)
(if (<= y 4e-66)
(* (/ 0.3333333333333333 y) (/ t z))
(if (<= y 1.3e-21) x (/ (/ y -3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.38e+48) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 4e-66) {
tmp = (0.3333333333333333 / y) * (t / z);
} else if (y <= 1.3e-21) {
tmp = x;
} else {
tmp = (y / -3.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) :: tmp
if (y <= (-1.38d+48)) then
tmp = (y * (-0.3333333333333333d0)) / z
else if (y <= 4d-66) then
tmp = (0.3333333333333333d0 / y) * (t / z)
else if (y <= 1.3d-21) then
tmp = x
else
tmp = (y / (-3.0d0)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.38e+48) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 4e-66) {
tmp = (0.3333333333333333 / y) * (t / z);
} else if (y <= 1.3e-21) {
tmp = x;
} else {
tmp = (y / -3.0) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.38e+48: tmp = (y * -0.3333333333333333) / z elif y <= 4e-66: tmp = (0.3333333333333333 / y) * (t / z) elif y <= 1.3e-21: tmp = x else: tmp = (y / -3.0) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.38e+48) tmp = Float64(Float64(y * -0.3333333333333333) / z); elseif (y <= 4e-66) tmp = Float64(Float64(0.3333333333333333 / y) * Float64(t / z)); elseif (y <= 1.3e-21) tmp = x; else tmp = Float64(Float64(y / -3.0) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.38e+48) tmp = (y * -0.3333333333333333) / z; elseif (y <= 4e-66) tmp = (0.3333333333333333 / y) * (t / z); elseif (y <= 1.3e-21) tmp = x; else tmp = (y / -3.0) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.38e+48], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 4e-66], N[(N[(0.3333333333333333 / y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e-21], x, N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.38 \cdot 10^{+48}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-66}:\\
\;\;\;\;\frac{0.3333333333333333}{y} \cdot \frac{t}{z}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-21}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{-3}}{z}\\
\end{array}
\end{array}
if y < -1.3800000000000001e48Initial program 95.4%
Taylor expanded in x around 0 64.7%
distribute-lft-out--64.7%
metadata-eval64.7%
associate-/r*66.7%
sub-div69.0%
times-frac69.2%
*-un-lft-identity69.2%
associate-/r*69.2%
Applied egg-rr69.2%
Taylor expanded in t around 0 60.8%
if -1.3800000000000001e48 < y < 3.9999999999999999e-66Initial program 90.7%
Taylor expanded in x around 0 69.3%
distribute-lft-out--69.3%
metadata-eval69.3%
associate-/r*72.3%
sub-div73.1%
times-frac73.2%
*-un-lft-identity73.2%
associate-/r*73.3%
Applied egg-rr73.3%
Taylor expanded in t around inf 66.2%
associate-*r/66.2%
*-commutative66.2%
associate-*r/66.3%
Simplified66.3%
*-commutative66.3%
associate-/l*67.4%
Applied egg-rr67.4%
if 3.9999999999999999e-66 < y < 1.30000000000000009e-21Initial program 99.5%
+-commutative99.5%
associate-+r-99.5%
sub-neg99.5%
associate-*l*99.5%
*-commutative99.5%
distribute-frac-neg299.5%
distribute-rgt-neg-in99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around inf 75.6%
if 1.30000000000000009e-21 < y Initial program 98.6%
Taylor expanded in x around 0 78.2%
distribute-lft-out--78.2%
metadata-eval78.2%
associate-/r*78.2%
sub-div79.5%
times-frac79.7%
*-un-lft-identity79.7%
associate-/r*79.7%
Applied egg-rr79.7%
Taylor expanded in t around 0 69.6%
add-sqr-sqrt69.4%
sqrt-unprod46.1%
sqr-neg46.1%
sqrt-unprod0.0%
add-sqr-sqrt1.7%
distribute-rgt-neg-in1.7%
*-commutative1.7%
distribute-rgt-neg-in1.7%
metadata-eval1.7%
metadata-eval1.7%
div-inv1.7%
frac-2neg1.7%
add-sqr-sqrt0.0%
sqrt-unprod46.3%
sqr-neg46.3%
sqrt-unprod69.4%
add-sqr-sqrt69.7%
metadata-eval69.7%
Applied egg-rr69.7%
Final simplification67.2%
(FPCore (x y z t)
:precision binary64
(if (<= y -6.8e+48)
(/ (* y -0.3333333333333333) z)
(if (<= y 3e-66)
(* t (/ (/ 0.3333333333333333 y) z))
(if (<= y 1.3e-21) x (/ (/ y -3.0) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.8e+48) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 3e-66) {
tmp = t * ((0.3333333333333333 / y) / z);
} else if (y <= 1.3e-21) {
tmp = x;
} else {
tmp = (y / -3.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) :: tmp
if (y <= (-6.8d+48)) then
tmp = (y * (-0.3333333333333333d0)) / z
else if (y <= 3d-66) then
tmp = t * ((0.3333333333333333d0 / y) / z)
else if (y <= 1.3d-21) then
tmp = x
else
tmp = (y / (-3.0d0)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.8e+48) {
tmp = (y * -0.3333333333333333) / z;
} else if (y <= 3e-66) {
tmp = t * ((0.3333333333333333 / y) / z);
} else if (y <= 1.3e-21) {
tmp = x;
} else {
tmp = (y / -3.0) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6.8e+48: tmp = (y * -0.3333333333333333) / z elif y <= 3e-66: tmp = t * ((0.3333333333333333 / y) / z) elif y <= 1.3e-21: tmp = x else: tmp = (y / -3.0) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6.8e+48) tmp = Float64(Float64(y * -0.3333333333333333) / z); elseif (y <= 3e-66) tmp = Float64(t * Float64(Float64(0.3333333333333333 / y) / z)); elseif (y <= 1.3e-21) tmp = x; else tmp = Float64(Float64(y / -3.0) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6.8e+48) tmp = (y * -0.3333333333333333) / z; elseif (y <= 3e-66) tmp = t * ((0.3333333333333333 / y) / z); elseif (y <= 1.3e-21) tmp = x; else tmp = (y / -3.0) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6.8e+48], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 3e-66], N[(t * N[(N[(0.3333333333333333 / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e-21], x, N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{+48}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-66}:\\
\;\;\;\;t \cdot \frac{\frac{0.3333333333333333}{y}}{z}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-21}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{-3}}{z}\\
\end{array}
\end{array}
if y < -6.8000000000000006e48Initial program 95.4%
Taylor expanded in x around 0 64.7%
distribute-lft-out--64.7%
metadata-eval64.7%
associate-/r*66.7%
sub-div69.0%
times-frac69.2%
*-un-lft-identity69.2%
associate-/r*69.2%
Applied egg-rr69.2%
Taylor expanded in t around 0 60.8%
if -6.8000000000000006e48 < y < 3.0000000000000002e-66Initial program 90.7%
Taylor expanded in x around 0 69.3%
distribute-lft-out--69.3%
metadata-eval69.3%
associate-/r*72.3%
sub-div73.1%
times-frac73.2%
*-un-lft-identity73.2%
associate-/r*73.3%
Applied egg-rr73.3%
Taylor expanded in t around inf 64.7%
associate-*r/64.8%
*-commutative64.8%
times-frac66.1%
*-rgt-identity66.1%
associate-*r/66.1%
associate-*r*64.7%
associate-*r/64.7%
associate-*l/64.7%
metadata-eval64.7%
Simplified64.7%
if 3.0000000000000002e-66 < y < 1.30000000000000009e-21Initial program 99.5%
+-commutative99.5%
associate-+r-99.5%
sub-neg99.5%
associate-*l*99.5%
*-commutative99.5%
distribute-frac-neg299.5%
distribute-rgt-neg-in99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around inf 75.6%
if 1.30000000000000009e-21 < y Initial program 98.6%
Taylor expanded in x around 0 78.2%
distribute-lft-out--78.2%
metadata-eval78.2%
associate-/r*78.2%
sub-div79.5%
times-frac79.7%
*-un-lft-identity79.7%
associate-/r*79.7%
Applied egg-rr79.7%
Taylor expanded in t around 0 69.6%
add-sqr-sqrt69.4%
sqrt-unprod46.1%
sqr-neg46.1%
sqrt-unprod0.0%
add-sqr-sqrt1.7%
distribute-rgt-neg-in1.7%
*-commutative1.7%
distribute-rgt-neg-in1.7%
metadata-eval1.7%
metadata-eval1.7%
div-inv1.7%
frac-2neg1.7%
add-sqr-sqrt0.0%
sqrt-unprod46.3%
sqr-neg46.3%
sqrt-unprod69.4%
add-sqr-sqrt69.7%
metadata-eval69.7%
Applied egg-rr69.7%
Final simplification65.9%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.6e+50)
(+ x (/ (* y -0.3333333333333333) z))
(if (<= y 5.7e-58)
(+ x (/ (* t (/ 0.3333333333333333 y)) z))
(- x (/ y (* z 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.6e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.7e-58) {
tmp = x + ((t * (0.3333333333333333 / y)) / z);
} else {
tmp = x - (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 <= (-2.6d+50)) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else if (y <= 5.7d-58) then
tmp = x + ((t * (0.3333333333333333d0 / y)) / z)
else
tmp = x - (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 <= -2.6e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.7e-58) {
tmp = x + ((t * (0.3333333333333333 / y)) / z);
} else {
tmp = x - (y / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.6e+50: tmp = x + ((y * -0.3333333333333333) / z) elif y <= 5.7e-58: tmp = x + ((t * (0.3333333333333333 / y)) / z) else: tmp = x - (y / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.6e+50) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); elseif (y <= 5.7e-58) tmp = Float64(x + Float64(Float64(t * Float64(0.3333333333333333 / y)) / z)); else tmp = Float64(x - Float64(y / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.6e+50) tmp = x + ((y * -0.3333333333333333) / z); elseif (y <= 5.7e-58) tmp = x + ((t * (0.3333333333333333 / y)) / z); else tmp = x - (y / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.6e+50], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.7e-58], N[(x + N[(N[(t * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+50}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{-58}:\\
\;\;\;\;x + \frac{t \cdot \frac{0.3333333333333333}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\end{array}
\end{array}
if y < -2.6000000000000002e50Initial program 95.3%
+-commutative95.3%
associate-+r-95.3%
+-commutative95.3%
associate--l+95.3%
sub-neg95.3%
remove-double-neg95.3%
distribute-frac-neg95.3%
distribute-neg-in95.3%
remove-double-neg95.3%
sub-neg95.3%
neg-mul-195.3%
times-frac97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
associate-/l*97.3%
*-commutative97.3%
Simplified99.6%
associate-*l/99.7%
Applied egg-rr99.7%
Taylor expanded in t around 0 91.3%
if -2.6000000000000002e50 < y < 5.70000000000000032e-58Initial program 90.9%
+-commutative90.9%
associate-+r-90.9%
+-commutative90.9%
associate--l+90.9%
sub-neg90.9%
remove-double-neg90.9%
distribute-frac-neg90.9%
distribute-neg-in90.9%
remove-double-neg90.9%
sub-neg90.9%
neg-mul-190.9%
times-frac92.5%
distribute-frac-neg92.5%
neg-mul-192.5%
*-commutative92.5%
associate-/l*92.4%
*-commutative92.4%
Simplified93.1%
associate-*l/93.2%
Applied egg-rr93.2%
Taylor expanded in t around inf 86.4%
*-commutative86.4%
associate-*l/86.5%
associate-/l*86.5%
Simplified86.5%
if 5.70000000000000032e-58 < y Initial program 98.6%
+-commutative98.6%
associate-+r-98.6%
+-commutative98.6%
associate--l+98.6%
sub-neg98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
distribute-neg-in98.6%
remove-double-neg98.6%
sub-neg98.6%
neg-mul-198.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.7%
*-commutative99.7%
clear-num99.6%
div-inv99.7%
metadata-eval99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 88.8%
neg-mul-188.8%
Simplified88.8%
Final simplification88.1%
(FPCore (x y z t) :precision binary64 (if (<= y -3.6e+50) (+ x (/ (* y -0.3333333333333333) z)) (if (<= y 5.7e-58) (+ x (/ t (* (* z 3.0) y))) (- x (/ y (* z 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.6e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.7e-58) {
tmp = x + (t / ((z * 3.0) * y));
} else {
tmp = x - (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 <= (-3.6d+50)) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else if (y <= 5.7d-58) then
tmp = x + (t / ((z * 3.0d0) * y))
else
tmp = x - (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 <= -3.6e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.7e-58) {
tmp = x + (t / ((z * 3.0) * y));
} else {
tmp = x - (y / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.6e+50: tmp = x + ((y * -0.3333333333333333) / z) elif y <= 5.7e-58: tmp = x + (t / ((z * 3.0) * y)) else: tmp = x - (y / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.6e+50) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); elseif (y <= 5.7e-58) tmp = Float64(x + Float64(t / Float64(Float64(z * 3.0) * y))); else tmp = Float64(x - Float64(y / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3.6e+50) tmp = x + ((y * -0.3333333333333333) / z); elseif (y <= 5.7e-58) tmp = x + (t / ((z * 3.0) * y)); else tmp = x - (y / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.6e+50], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.7e-58], N[(x + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{+50}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{-58}:\\
\;\;\;\;x + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\end{array}
\end{array}
if y < -3.59999999999999986e50Initial program 95.3%
+-commutative95.3%
associate-+r-95.3%
+-commutative95.3%
associate--l+95.3%
sub-neg95.3%
remove-double-neg95.3%
distribute-frac-neg95.3%
distribute-neg-in95.3%
remove-double-neg95.3%
sub-neg95.3%
neg-mul-195.3%
times-frac97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
associate-/l*97.3%
*-commutative97.3%
Simplified99.6%
associate-*l/99.7%
Applied egg-rr99.7%
Taylor expanded in t around 0 91.3%
if -3.59999999999999986e50 < y < 5.70000000000000032e-58Initial program 90.9%
+-commutative90.9%
associate-+r-90.9%
+-commutative90.9%
associate--l+90.9%
sub-neg90.9%
remove-double-neg90.9%
distribute-frac-neg90.9%
distribute-neg-in90.9%
remove-double-neg90.9%
sub-neg90.9%
neg-mul-190.9%
times-frac92.5%
distribute-frac-neg92.5%
neg-mul-192.5%
*-commutative92.5%
associate-/l*92.4%
*-commutative92.4%
Simplified93.1%
Taylor expanded in t around inf 86.4%
metadata-eval86.4%
associate-/r*86.4%
times-frac86.5%
*-un-lft-identity86.5%
*-commutative86.5%
associate-/l/86.5%
Applied egg-rr86.5%
if 5.70000000000000032e-58 < y Initial program 98.6%
+-commutative98.6%
associate-+r-98.6%
+-commutative98.6%
associate--l+98.6%
sub-neg98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
distribute-neg-in98.6%
remove-double-neg98.6%
sub-neg98.6%
neg-mul-198.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.7%
*-commutative99.7%
clear-num99.6%
div-inv99.7%
metadata-eval99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 88.8%
neg-mul-188.8%
Simplified88.8%
Final simplification88.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -6.2e+50)
(+ x (/ (* y -0.3333333333333333) z))
(if (<= y 5.5e-58)
(+ x (* 0.3333333333333333 (/ t (* z y))))
(- x (/ y (* z 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6.2e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.5e-58) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x - (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 <= (-6.2d+50)) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else if (y <= 5.5d-58) then
tmp = x + (0.3333333333333333d0 * (t / (z * y)))
else
tmp = x - (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 <= -6.2e+50) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 5.5e-58) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x - (y / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6.2e+50: tmp = x + ((y * -0.3333333333333333) / z) elif y <= 5.5e-58: tmp = x + (0.3333333333333333 * (t / (z * y))) else: tmp = x - (y / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6.2e+50) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); elseif (y <= 5.5e-58) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); else tmp = Float64(x - Float64(y / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6.2e+50) tmp = x + ((y * -0.3333333333333333) / z); elseif (y <= 5.5e-58) tmp = x + (0.3333333333333333 * (t / (z * y))); else tmp = x - (y / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6.2e+50], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-58], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+50}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-58}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\end{array}
\end{array}
if y < -6.20000000000000006e50Initial program 95.3%
+-commutative95.3%
associate-+r-95.3%
+-commutative95.3%
associate--l+95.3%
sub-neg95.3%
remove-double-neg95.3%
distribute-frac-neg95.3%
distribute-neg-in95.3%
remove-double-neg95.3%
sub-neg95.3%
neg-mul-195.3%
times-frac97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
associate-/l*97.3%
*-commutative97.3%
Simplified99.6%
associate-*l/99.7%
Applied egg-rr99.7%
Taylor expanded in t around 0 91.3%
if -6.20000000000000006e50 < y < 5.49999999999999996e-58Initial program 90.9%
+-commutative90.9%
associate-+r-90.9%
+-commutative90.9%
associate--l+90.9%
sub-neg90.9%
remove-double-neg90.9%
distribute-frac-neg90.9%
distribute-neg-in90.9%
remove-double-neg90.9%
sub-neg90.9%
neg-mul-190.9%
times-frac92.5%
distribute-frac-neg92.5%
neg-mul-192.5%
*-commutative92.5%
associate-/l*92.4%
*-commutative92.4%
Simplified93.1%
Taylor expanded in t around inf 86.4%
if 5.49999999999999996e-58 < y Initial program 98.6%
+-commutative98.6%
associate-+r-98.6%
+-commutative98.6%
associate--l+98.6%
sub-neg98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
distribute-neg-in98.6%
remove-double-neg98.6%
sub-neg98.6%
neg-mul-198.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.7%
*-commutative99.7%
clear-num99.6%
div-inv99.7%
metadata-eval99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 88.8%
neg-mul-188.8%
Simplified88.8%
Final simplification88.0%
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.8e-62) (not (<= y 3.8e-66))) (+ x (/ (* y -0.3333333333333333) z)) (* (/ 0.3333333333333333 y) (/ t z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.8e-62) || !(y <= 3.8e-66)) {
tmp = x + ((y * -0.3333333333333333) / z);
} else {
tmp = (0.3333333333333333 / y) * (t / 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 <= (-3.8d-62)) .or. (.not. (y <= 3.8d-66))) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else
tmp = (0.3333333333333333d0 / y) * (t / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.8e-62) || !(y <= 3.8e-66)) {
tmp = x + ((y * -0.3333333333333333) / z);
} else {
tmp = (0.3333333333333333 / y) * (t / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.8e-62) or not (y <= 3.8e-66): tmp = x + ((y * -0.3333333333333333) / z) else: tmp = (0.3333333333333333 / y) * (t / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.8e-62) || !(y <= 3.8e-66)) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); else tmp = Float64(Float64(0.3333333333333333 / y) * Float64(t / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.8e-62) || ~((y <= 3.8e-66))) tmp = x + ((y * -0.3333333333333333) / z); else tmp = (0.3333333333333333 / y) * (t / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.8e-62], N[Not[LessEqual[y, 3.8e-66]], $MachinePrecision]], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(0.3333333333333333 / y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{-62} \lor \neg \left(y \leq 3.8 \cdot 10^{-66}\right):\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.3333333333333333}{y} \cdot \frac{t}{z}\\
\end{array}
\end{array}
if y < -3.80000000000000006e-62 or 3.7999999999999998e-66 < y Initial program 96.5%
+-commutative96.5%
associate-+r-96.5%
+-commutative96.5%
associate--l+96.5%
sub-neg96.5%
remove-double-neg96.5%
distribute-frac-neg96.5%
distribute-neg-in96.5%
remove-double-neg96.5%
sub-neg96.5%
neg-mul-196.5%
times-frac97.2%
distribute-frac-neg97.2%
neg-mul-197.2%
*-commutative97.2%
associate-/l*97.1%
*-commutative97.1%
Simplified99.0%
associate-*l/99.0%
Applied egg-rr99.0%
Taylor expanded in t around 0 83.6%
if -3.80000000000000006e-62 < y < 3.7999999999999998e-66Initial program 90.7%
Taylor expanded in x around 0 70.3%
distribute-lft-out--70.3%
metadata-eval70.3%
associate-/r*73.9%
sub-div73.9%
times-frac74.0%
*-un-lft-identity74.0%
associate-/r*74.0%
Applied egg-rr74.0%
Taylor expanded in t around inf 70.3%
associate-*r/70.3%
*-commutative70.3%
associate-*r/70.3%
Simplified70.3%
*-commutative70.3%
associate-/l*70.8%
Applied egg-rr70.8%
Final simplification78.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.6e-62)
(+ x (/ (* y -0.3333333333333333) z))
(if (<= y 4.6e-65)
(* (/ 0.3333333333333333 y) (/ t z))
(- x (/ y (* z 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.6e-62) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 4.6e-65) {
tmp = (0.3333333333333333 / y) * (t / z);
} else {
tmp = x - (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 <= (-8.6d-62)) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else if (y <= 4.6d-65) then
tmp = (0.3333333333333333d0 / y) * (t / z)
else
tmp = x - (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 <= -8.6e-62) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 4.6e-65) {
tmp = (0.3333333333333333 / y) * (t / z);
} else {
tmp = x - (y / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.6e-62: tmp = x + ((y * -0.3333333333333333) / z) elif y <= 4.6e-65: tmp = (0.3333333333333333 / y) * (t / z) else: tmp = x - (y / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.6e-62) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); elseif (y <= 4.6e-65) tmp = Float64(Float64(0.3333333333333333 / y) * Float64(t / z)); else tmp = Float64(x - Float64(y / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8.6e-62) tmp = x + ((y * -0.3333333333333333) / z); elseif (y <= 4.6e-65) tmp = (0.3333333333333333 / y) * (t / z); else tmp = x - (y / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.6e-62], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-65], N[(N[(0.3333333333333333 / y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.6 \cdot 10^{-62}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-65}:\\
\;\;\;\;\frac{0.3333333333333333}{y} \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\end{array}
\end{array}
if y < -8.5999999999999993e-62Initial program 93.8%
+-commutative93.8%
associate-+r-93.8%
+-commutative93.8%
associate--l+93.8%
sub-neg93.8%
remove-double-neg93.8%
distribute-frac-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
sub-neg93.8%
neg-mul-193.8%
times-frac95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.2%
*-commutative95.2%
Simplified98.1%
associate-*l/98.3%
Applied egg-rr98.3%
Taylor expanded in t around 0 78.2%
if -8.5999999999999993e-62 < y < 4.5999999999999999e-65Initial program 90.7%
Taylor expanded in x around 0 70.3%
distribute-lft-out--70.3%
metadata-eval70.3%
associate-/r*73.9%
sub-div73.9%
times-frac74.0%
*-un-lft-identity74.0%
associate-/r*74.0%
Applied egg-rr74.0%
Taylor expanded in t around inf 70.3%
associate-*r/70.3%
*-commutative70.3%
associate-*r/70.3%
Simplified70.3%
*-commutative70.3%
associate-/l*70.8%
Applied egg-rr70.8%
if 4.5999999999999999e-65 < y Initial program 98.6%
+-commutative98.6%
associate-+r-98.6%
+-commutative98.6%
associate--l+98.6%
sub-neg98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
distribute-neg-in98.6%
remove-double-neg98.6%
sub-neg98.6%
neg-mul-198.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
*-commutative99.6%
clear-num99.6%
div-inv99.7%
metadata-eval99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in t around 0 87.9%
neg-mul-187.9%
Simplified87.9%
Final simplification78.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-62)
(+ x (/ (* y -0.3333333333333333) z))
(if (<= y 6.5e-66)
(* (/ 0.3333333333333333 y) (/ t z))
(- x (* y (/ 0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-62) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 6.5e-66) {
tmp = (0.3333333333333333 / y) * (t / 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 <= (-8d-62)) then
tmp = x + ((y * (-0.3333333333333333d0)) / z)
else if (y <= 6.5d-66) then
tmp = (0.3333333333333333d0 / y) * (t / 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 <= -8e-62) {
tmp = x + ((y * -0.3333333333333333) / z);
} else if (y <= 6.5e-66) {
tmp = (0.3333333333333333 / y) * (t / z);
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8e-62: tmp = x + ((y * -0.3333333333333333) / z) elif y <= 6.5e-66: tmp = (0.3333333333333333 / y) * (t / z) else: tmp = x - (y * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-62) tmp = Float64(x + Float64(Float64(y * -0.3333333333333333) / z)); elseif (y <= 6.5e-66) tmp = Float64(Float64(0.3333333333333333 / y) * Float64(t / 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 <= -8e-62) tmp = x + ((y * -0.3333333333333333) / z); elseif (y <= 6.5e-66) tmp = (0.3333333333333333 / y) * (t / z); else tmp = x - (y * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-62], N[(x + N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e-66], N[(N[(0.3333333333333333 / y), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-62}:\\
\;\;\;\;x + \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-66}:\\
\;\;\;\;\frac{0.3333333333333333}{y} \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -8.0000000000000003e-62Initial program 93.8%
+-commutative93.8%
associate-+r-93.8%
+-commutative93.8%
associate--l+93.8%
sub-neg93.8%
remove-double-neg93.8%
distribute-frac-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
sub-neg93.8%
neg-mul-193.8%
times-frac95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.2%
*-commutative95.2%
Simplified98.1%
associate-*l/98.3%
Applied egg-rr98.3%
Taylor expanded in t around 0 78.2%
if -8.0000000000000003e-62 < y < 6.50000000000000024e-66Initial program 90.7%
Taylor expanded in x around 0 70.3%
distribute-lft-out--70.3%
metadata-eval70.3%
associate-/r*73.9%
sub-div73.9%
times-frac74.0%
*-un-lft-identity74.0%
associate-/r*74.0%
Applied egg-rr74.0%
Taylor expanded in t around inf 70.3%
associate-*r/70.3%
*-commutative70.3%
associate-*r/70.3%
Simplified70.3%
*-commutative70.3%
associate-/l*70.8%
Applied egg-rr70.8%
if 6.50000000000000024e-66 < y Initial program 98.6%
+-commutative98.6%
associate-+r-98.6%
+-commutative98.6%
associate--l+98.6%
sub-neg98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
distribute-neg-in98.6%
remove-double-neg98.6%
sub-neg98.6%
neg-mul-198.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.6%
Taylor expanded in t around 0 87.8%
neg-mul-187.9%
Simplified87.8%
Final simplification78.5%
(FPCore (x y z t) :precision binary64 (if (<= x -8.5e+111) x (if (<= x 3.2e+47) (/ (/ y -3.0) z) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8.5e+111) {
tmp = x;
} else if (x <= 3.2e+47) {
tmp = (y / -3.0) / 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+111)) then
tmp = x
else if (x <= 3.2d+47) then
tmp = (y / (-3.0d0)) / 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+111) {
tmp = x;
} else if (x <= 3.2e+47) {
tmp = (y / -3.0) / z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8.5e+111: tmp = x elif x <= 3.2e+47: tmp = (y / -3.0) / z else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8.5e+111) tmp = x; elseif (x <= 3.2e+47) tmp = Float64(Float64(y / -3.0) / z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -8.5e+111) tmp = x; elseif (x <= 3.2e+47) tmp = (y / -3.0) / z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8.5e+111], x, If[LessEqual[x, 3.2e+47], N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{+111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+47}:\\
\;\;\;\;\frac{\frac{y}{-3}}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.49999999999999983e111 or 3.2e47 < x Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in z around inf 52.8%
if -8.49999999999999983e111 < x < 3.2e47Initial program 93.8%
Taylor expanded in x around 0 85.0%
distribute-lft-out--84.9%
metadata-eval84.9%
associate-/r*86.7%
sub-div87.9%
times-frac88.2%
*-un-lft-identity88.2%
associate-/r*88.2%
Applied egg-rr88.2%
Taylor expanded in t around 0 48.3%
add-sqr-sqrt28.0%
sqrt-unprod18.9%
sqr-neg18.9%
sqrt-unprod1.4%
add-sqr-sqrt2.3%
distribute-rgt-neg-in2.3%
*-commutative2.3%
distribute-rgt-neg-in2.3%
metadata-eval2.3%
metadata-eval2.3%
div-inv2.3%
frac-2neg2.3%
add-sqr-sqrt1.4%
sqrt-unprod19.0%
sqr-neg19.0%
sqrt-unprod28.0%
add-sqr-sqrt48.4%
metadata-eval48.4%
Applied egg-rr48.4%
(FPCore (x y z t) :precision binary64 (if (<= x -7.5e+111) x (if (<= x 1e+43) (/ (* y -0.3333333333333333) z) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.5e+111) {
tmp = x;
} else if (x <= 1e+43) {
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 <= (-7.5d+111)) then
tmp = x
else if (x <= 1d+43) 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 <= -7.5e+111) {
tmp = x;
} else if (x <= 1e+43) {
tmp = (y * -0.3333333333333333) / z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -7.5e+111: tmp = x elif x <= 1e+43: tmp = (y * -0.3333333333333333) / z else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -7.5e+111) tmp = x; elseif (x <= 1e+43) tmp = Float64(Float64(y * -0.3333333333333333) / z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -7.5e+111) tmp = x; elseif (x <= 1e+43) tmp = (y * -0.3333333333333333) / z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -7.5e+111], x, If[LessEqual[x, 1e+43], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 10^{+43}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.49999999999999948e111 or 1.00000000000000001e43 < x Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in z around inf 52.8%
if -7.49999999999999948e111 < x < 1.00000000000000001e43Initial program 93.8%
Taylor expanded in x around 0 85.0%
distribute-lft-out--84.9%
metadata-eval84.9%
associate-/r*86.7%
sub-div87.9%
times-frac88.2%
*-un-lft-identity88.2%
associate-/r*88.2%
Applied egg-rr88.2%
Taylor expanded in t around 0 48.3%
Final simplification50.0%
(FPCore (x y z t) :precision binary64 (if (<= x -6.2e+111) x (if (<= x 1.6e+48) (/ -0.3333333333333333 (/ z y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -6.2e+111) {
tmp = x;
} else if (x <= 1.6e+48) {
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 (x <= (-6.2d+111)) then
tmp = x
else if (x <= 1.6d+48) 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 (x <= -6.2e+111) {
tmp = x;
} else if (x <= 1.6e+48) {
tmp = -0.3333333333333333 / (z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -6.2e+111: tmp = x elif x <= 1.6e+48: tmp = -0.3333333333333333 / (z / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -6.2e+111) tmp = x; elseif (x <= 1.6e+48) 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 (x <= -6.2e+111) tmp = x; elseif (x <= 1.6e+48) tmp = -0.3333333333333333 / (z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -6.2e+111], x, If[LessEqual[x, 1.6e+48], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+48}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -6.2000000000000001e111 or 1.6000000000000001e48 < x Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in z around inf 52.8%
if -6.2000000000000001e111 < x < 1.6000000000000001e48Initial program 93.8%
Taylor expanded in x around 0 85.0%
distribute-lft-out--84.9%
metadata-eval84.9%
associate-/r*86.7%
sub-div87.9%
times-frac88.2%
*-un-lft-identity88.2%
associate-/r*88.2%
Applied egg-rr88.2%
Taylor expanded in t around 0 48.2%
clear-num48.2%
un-div-inv48.2%
Applied egg-rr48.2%
(FPCore (x y z t) :precision binary64 (if (<= x -8.5e+111) x (if (<= x 1.12e+41) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8.5e+111) {
tmp = x;
} else if (x <= 1.12e+41) {
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+111)) then
tmp = x
else if (x <= 1.12d+41) 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+111) {
tmp = x;
} else if (x <= 1.12e+41) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8.5e+111: tmp = x elif x <= 1.12e+41: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8.5e+111) tmp = x; elseif (x <= 1.12e+41) 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+111) tmp = x; elseif (x <= 1.12e+41) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8.5e+111], x, If[LessEqual[x, 1.12e+41], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{+111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.49999999999999983e111 or 1.1200000000000001e41 < x Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in z around inf 52.8%
if -8.49999999999999983e111 < x < 1.1200000000000001e41Initial program 93.8%
Taylor expanded in x around 0 85.0%
distribute-lft-out--84.9%
metadata-eval84.9%
associate-/r*86.7%
sub-div87.9%
times-frac88.2%
*-un-lft-identity88.2%
associate-/r*88.2%
Applied egg-rr88.2%
Taylor expanded in t around 0 48.2%
*-commutative48.2%
associate-*l/48.3%
associate-*r/48.2%
Simplified48.2%
(FPCore (x y z t) :precision binary64 (if (<= x -8e+111) x (if (<= x 1.1e+45) (* -0.3333333333333333 (/ y z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8e+111) {
tmp = x;
} else if (x <= 1.1e+45) {
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 <= (-8d+111)) then
tmp = x
else if (x <= 1.1d+45) 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 <= -8e+111) {
tmp = x;
} else if (x <= 1.1e+45) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8e+111: tmp = x elif x <= 1.1e+45: tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8e+111) tmp = x; elseif (x <= 1.1e+45) 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 <= -8e+111) tmp = x; elseif (x <= 1.1e+45) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8e+111], x, If[LessEqual[x, 1.1e+45], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+45}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.99999999999999965e111 or 1.1e45 < x Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
Taylor expanded in z around inf 52.8%
if -7.99999999999999965e111 < x < 1.1e45Initial program 93.8%
Taylor expanded in x around 0 85.0%
distribute-lft-out--84.9%
metadata-eval84.9%
associate-/r*86.7%
sub-div87.9%
times-frac88.2%
*-un-lft-identity88.2%
associate-/r*88.2%
Applied egg-rr88.2%
Taylor expanded in t around 0 48.2%
(FPCore (x y z t) :precision binary64 (+ x (/ (- (/ t y) y) (* z 3.0))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) / (z * 3.0d0))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) / (z * 3.0));
}
def code(x, y, z, t): return x + (((t / y) - y) / (z * 3.0))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) / Float64(z * 3.0))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) / (z * 3.0)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\frac{t}{y} - y}{z \cdot 3}
\end{array}
Initial program 94.2%
+-commutative94.2%
associate-+r-94.2%
+-commutative94.2%
associate--l+94.2%
sub-neg94.2%
remove-double-neg94.2%
distribute-frac-neg94.2%
distribute-neg-in94.2%
remove-double-neg94.2%
sub-neg94.2%
neg-mul-194.2%
times-frac95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.3%
*-commutative95.3%
Simplified96.4%
*-commutative96.4%
clear-num96.3%
div-inv96.5%
metadata-eval96.5%
un-div-inv96.5%
Applied egg-rr96.5%
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- (/ t y) y) 0.3333333333333333) z)))
double code(double x, double y, double z, double t) {
return x + ((((t / y) - y) * 0.3333333333333333) / z);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((((t / y) - y) * 0.3333333333333333d0) / z)
end function
public static double code(double x, double y, double z, double t) {
return x + ((((t / y) - y) * 0.3333333333333333) / z);
}
def code(x, y, z, t): return x + ((((t / y) - y) * 0.3333333333333333) / z)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(Float64(t / y) - y) * 0.3333333333333333) / z)) end
function tmp = code(x, y, z, t) tmp = x + ((((t / y) - y) * 0.3333333333333333) / z); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(\frac{t}{y} - y\right) \cdot 0.3333333333333333}{z}
\end{array}
Initial program 94.2%
+-commutative94.2%
associate-+r-94.2%
+-commutative94.2%
associate--l+94.2%
sub-neg94.2%
remove-double-neg94.2%
distribute-frac-neg94.2%
distribute-neg-in94.2%
remove-double-neg94.2%
sub-neg94.2%
neg-mul-194.2%
times-frac95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.3%
*-commutative95.3%
Simplified96.4%
associate-*l/96.4%
Applied egg-rr96.4%
Final simplification96.4%
(FPCore (x y z t) :precision binary64 (+ x (* (- (/ t y) y) (/ 0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((t / y) - y) * (0.3333333333333333d0 / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (((t / y) - y) * (0.3333333333333333 / z));
}
def code(x, y, z, t): return x + (((t / y) - y) * (0.3333333333333333 / z))
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z))) end
function tmp = code(x, y, z, t) tmp = x + (((t / y) - y) * (0.3333333333333333 / z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}
\end{array}
Initial program 94.2%
+-commutative94.2%
associate-+r-94.2%
+-commutative94.2%
associate--l+94.2%
sub-neg94.2%
remove-double-neg94.2%
distribute-frac-neg94.2%
distribute-neg-in94.2%
remove-double-neg94.2%
sub-neg94.2%
neg-mul-194.2%
times-frac95.3%
distribute-frac-neg95.3%
neg-mul-195.3%
*-commutative95.3%
associate-/l*95.3%
*-commutative95.3%
Simplified96.4%
Final simplification96.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 94.2%
+-commutative94.2%
associate-+r-94.2%
sub-neg94.2%
associate-*l*94.2%
*-commutative94.2%
distribute-frac-neg294.2%
distribute-rgt-neg-in94.2%
metadata-eval94.2%
Simplified94.2%
Taylor expanded in z around inf 26.1%
(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 2024108
(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))))