
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.05e-94) (not (<= y 1e-129))) (+ x (/ (/ (- (/ t y) y) 3.0) z)) (+ x (* 0.3333333333333333 (/ (/ t z) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.05e-94) || !(y <= 1e-129)) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = x + (0.3333333333333333 * ((t / z) / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.05d-94)) .or. (.not. (y <= 1d-129))) then
tmp = x + ((((t / y) - y) / 3.0d0) / z)
else
tmp = x + (0.3333333333333333d0 * ((t / z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.05e-94) || !(y <= 1e-129)) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = x + (0.3333333333333333 * ((t / z) / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.05e-94) or not (y <= 1e-129): tmp = x + ((((t / y) - y) / 3.0) / z) else: tmp = x + (0.3333333333333333 * ((t / z) / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.05e-94) || !(y <= 1e-129)) tmp = Float64(x + Float64(Float64(Float64(Float64(t / y) - y) / 3.0) / z)); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(t / z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.05e-94) || ~((y <= 1e-129))) tmp = x + ((((t / y) - y) / 3.0) / z); else tmp = x + (0.3333333333333333 * ((t / z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.05e-94], N[Not[LessEqual[y, 1e-129]], $MachinePrecision]], N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{-94} \lor \neg \left(y \leq 10^{-129}\right):\\
\;\;\;\;x + \frac{\frac{\frac{t}{y} - y}{3}}{z}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\end{array}
\end{array}
if y < -1.05e-94 or 9.9999999999999993e-130 < y Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac98.1%
distribute-frac-neg98.1%
neg-mul-198.1%
*-commutative98.1%
associate-/l*98.0%
*-commutative98.0%
Simplified99.2%
*-commutative99.2%
clear-num99.1%
div-inv99.2%
metadata-eval99.2%
un-div-inv99.2%
Applied egg-rr99.2%
*-un-lft-identity99.2%
times-frac99.2%
Applied egg-rr99.2%
associate-*l/99.3%
*-lft-identity99.3%
Simplified99.3%
if -1.05e-94 < y < 9.9999999999999993e-130Initial program 91.0%
+-commutative91.0%
associate-+r-91.0%
+-commutative91.0%
associate--l+91.0%
sub-neg91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
distribute-neg-in91.0%
remove-double-neg91.0%
sub-neg91.0%
neg-mul-191.0%
times-frac87.0%
distribute-frac-neg87.0%
neg-mul-187.0%
*-commutative87.0%
associate-/l*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in t around inf 91.0%
*-commutative91.0%
metadata-eval91.0%
times-frac91.1%
*-commutative91.1%
associate-*r*91.0%
*-rgt-identity91.0%
associate-/r*98.6%
*-lft-identity98.6%
*-commutative98.6%
times-frac98.5%
metadata-eval98.5%
Simplified98.5%
Final simplification99.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ y -3.0) z)))
(if (<= y -4.7e+83)
t_1
(if (<= y -1.25e-20)
x
(if (<= y 6.5e+51) (* 0.3333333333333333 (/ t (* y z))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (y / -3.0) / z;
double tmp;
if (y <= -4.7e+83) {
tmp = t_1;
} else if (y <= -1.25e-20) {
tmp = x;
} else if (y <= 6.5e+51) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (y / (-3.0d0)) / z
if (y <= (-4.7d+83)) then
tmp = t_1
else if (y <= (-1.25d-20)) then
tmp = x
else if (y <= 6.5d+51) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y / -3.0) / z;
double tmp;
if (y <= -4.7e+83) {
tmp = t_1;
} else if (y <= -1.25e-20) {
tmp = x;
} else if (y <= 6.5e+51) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / -3.0) / z tmp = 0 if y <= -4.7e+83: tmp = t_1 elif y <= -1.25e-20: tmp = x elif y <= 6.5e+51: tmp = 0.3333333333333333 * (t / (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / -3.0) / z) tmp = 0.0 if (y <= -4.7e+83) tmp = t_1; elseif (y <= -1.25e-20) tmp = x; elseif (y <= 6.5e+51) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / -3.0) / z; tmp = 0.0; if (y <= -4.7e+83) tmp = t_1; elseif (y <= -1.25e-20) tmp = x; elseif (y <= 6.5e+51) tmp = 0.3333333333333333 * (t / (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[y, -4.7e+83], t$95$1, If[LessEqual[y, -1.25e-20], x, If[LessEqual[y, 6.5e+51], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{y}{-3}}{z}\\
\mathbf{if}\;y \leq -4.7 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+51}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.6999999999999999e83 or 6.5e51 < y Initial program 96.9%
+-commutative96.9%
associate-+r-96.9%
sub-neg96.9%
associate-*l*96.9%
*-commutative96.9%
distribute-frac-neg296.9%
distribute-rgt-neg-in96.9%
metadata-eval96.9%
Simplified96.9%
associate-/r*93.9%
div-inv93.9%
Applied egg-rr93.9%
Taylor expanded in y around inf 73.6%
*-commutative73.6%
associate-*l/73.6%
Simplified73.6%
metadata-eval73.6%
div-inv73.8%
Applied egg-rr73.8%
if -4.6999999999999999e83 < y < -1.25e-20Initial program 99.7%
+-commutative99.7%
associate-+r-99.7%
sub-neg99.7%
associate-*l*99.7%
*-commutative99.7%
distribute-frac-neg299.7%
distribute-rgt-neg-in99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around inf 57.5%
if -1.25e-20 < y < 6.5e51Initial program 92.2%
+-commutative92.2%
associate-+r-92.2%
sub-neg92.2%
associate-*l*92.2%
*-commutative92.2%
distribute-frac-neg292.2%
distribute-rgt-neg-in92.2%
metadata-eval92.2%
Simplified92.2%
associate-/r*98.3%
div-inv98.2%
Applied egg-rr98.2%
*-un-lft-identity98.2%
times-frac98.2%
Applied egg-rr98.2%
associate-*l/98.3%
*-lft-identity98.3%
Simplified98.3%
Taylor expanded in t around inf 57.7%
Final simplification63.9%
(FPCore (x y z t) :precision binary64 (if (<= (* 3.0 z) 1e-42) (+ x (/ (/ (- (/ t y) y) 3.0) z)) (+ (/ y (* z -3.0)) (+ x (/ t (* z (* y 3.0)))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((3.0 * z) <= 1e-42) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((3.0d0 * z) <= 1d-42) then
tmp = x + ((((t / y) - y) / 3.0d0) / z)
else
tmp = (y / (z * (-3.0d0))) + (x + (t / (z * (y * 3.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((3.0 * z) <= 1e-42) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (3.0 * z) <= 1e-42: tmp = x + ((((t / y) - y) / 3.0) / z) else: tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(3.0 * z) <= 1e-42) tmp = Float64(x + Float64(Float64(Float64(Float64(t / y) - y) / 3.0) / z)); else tmp = Float64(Float64(y / Float64(z * -3.0)) + Float64(x + Float64(t / Float64(z * Float64(y * 3.0))))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((3.0 * z) <= 1e-42) tmp = x + ((((t / y) - y) / 3.0) / z); else tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(3.0 * z), $MachinePrecision], 1e-42], N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;3 \cdot z \leq 10^{-42}:\\
\;\;\;\;x + \frac{\frac{\frac{t}{y} - y}{3}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot -3} + \left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right)\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1.00000000000000004e-42Initial program 92.4%
+-commutative92.4%
associate-+r-92.4%
+-commutative92.4%
associate--l+92.4%
sub-neg92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
sub-neg92.4%
neg-mul-192.4%
times-frac96.5%
distribute-frac-neg96.5%
neg-mul-196.5%
*-commutative96.5%
associate-/l*96.5%
*-commutative96.5%
Simplified97.6%
*-commutative97.6%
clear-num97.6%
div-inv97.6%
metadata-eval97.6%
un-div-inv97.6%
Applied egg-rr97.6%
*-un-lft-identity97.6%
times-frac97.6%
Applied egg-rr97.6%
associate-*l/97.7%
*-lft-identity97.7%
Simplified97.7%
if 1.00000000000000004e-42 < (*.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%
Final simplification98.4%
(FPCore (x y z t) :precision binary64 (if (<= (* 3.0 z) 1e-42) (+ x (/ (/ (- (/ t y) y) 3.0) z)) (+ (/ (/ y -3.0) z) (+ x (/ t (* z (* y 3.0)))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((3.0 * z) <= 1e-42) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = ((y / -3.0) / z) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((3.0d0 * z) <= 1d-42) then
tmp = x + ((((t / y) - y) / 3.0d0) / z)
else
tmp = ((y / (-3.0d0)) / z) + (x + (t / (z * (y * 3.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((3.0 * z) <= 1e-42) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = ((y / -3.0) / z) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (3.0 * z) <= 1e-42: tmp = x + ((((t / y) - y) / 3.0) / z) else: tmp = ((y / -3.0) / z) + (x + (t / (z * (y * 3.0)))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(3.0 * z) <= 1e-42) tmp = Float64(x + Float64(Float64(Float64(Float64(t / y) - y) / 3.0) / z)); else tmp = Float64(Float64(Float64(y / -3.0) / z) + Float64(x + Float64(t / Float64(z * Float64(y * 3.0))))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((3.0 * z) <= 1e-42) tmp = x + ((((t / y) - y) / 3.0) / z); else tmp = ((y / -3.0) / z) + (x + (t / (z * (y * 3.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(3.0 * z), $MachinePrecision], 1e-42], N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision] + N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;3 \cdot z \leq 10^{-42}:\\
\;\;\;\;x + \frac{\frac{\frac{t}{y} - y}{3}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{-3}}{z} + \left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right)\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1.00000000000000004e-42Initial program 92.4%
+-commutative92.4%
associate-+r-92.4%
+-commutative92.4%
associate--l+92.4%
sub-neg92.4%
remove-double-neg92.4%
distribute-frac-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
sub-neg92.4%
neg-mul-192.4%
times-frac96.5%
distribute-frac-neg96.5%
neg-mul-196.5%
*-commutative96.5%
associate-/l*96.5%
*-commutative96.5%
Simplified97.6%
*-commutative97.6%
clear-num97.6%
div-inv97.6%
metadata-eval97.6%
un-div-inv97.6%
Applied egg-rr97.6%
*-un-lft-identity97.6%
times-frac97.6%
Applied egg-rr97.6%
associate-*l/97.7%
*-lft-identity97.7%
Simplified97.7%
if 1.00000000000000004e-42 < (*.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%
*-un-lft-identity98.6%
times-frac98.6%
Applied egg-rr99.7%
associate-*l/98.6%
*-lft-identity98.6%
Simplified99.8%
Final simplification98.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8e-96) (not (<= y 5e-129))) (+ x (* (- (/ t y) y) (/ 0.3333333333333333 z))) (+ x (* 0.3333333333333333 (/ (/ t z) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8e-96) || !(y <= 5e-129)) {
tmp = x + (((t / y) - y) * (0.3333333333333333 / z));
} else {
tmp = x + (0.3333333333333333 * ((t / z) / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-8d-96)) .or. (.not. (y <= 5d-129))) then
tmp = x + (((t / y) - y) * (0.3333333333333333d0 / z))
else
tmp = x + (0.3333333333333333d0 * ((t / z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8e-96) || !(y <= 5e-129)) {
tmp = x + (((t / y) - y) * (0.3333333333333333 / z));
} else {
tmp = x + (0.3333333333333333 * ((t / z) / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -8e-96) or not (y <= 5e-129): tmp = x + (((t / y) - y) * (0.3333333333333333 / z)) else: tmp = x + (0.3333333333333333 * ((t / z) / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -8e-96) || !(y <= 5e-129)) tmp = Float64(x + Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(t / z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -8e-96) || ~((y <= 5e-129))) tmp = x + (((t / y) - y) * (0.3333333333333333 / z)); else tmp = x + (0.3333333333333333 * ((t / z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8e-96], N[Not[LessEqual[y, 5e-129]], $MachinePrecision]], N[(x + N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-96} \lor \neg \left(y \leq 5 \cdot 10^{-129}\right):\\
\;\;\;\;x + \left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\end{array}
\end{array}
if y < -7.9999999999999993e-96 or 5.00000000000000027e-129 < y Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac98.1%
distribute-frac-neg98.1%
neg-mul-198.1%
*-commutative98.1%
associate-/l*98.0%
*-commutative98.0%
Simplified99.2%
if -7.9999999999999993e-96 < y < 5.00000000000000027e-129Initial program 91.0%
+-commutative91.0%
associate-+r-91.0%
+-commutative91.0%
associate--l+91.0%
sub-neg91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
distribute-neg-in91.0%
remove-double-neg91.0%
sub-neg91.0%
neg-mul-191.0%
times-frac87.0%
distribute-frac-neg87.0%
neg-mul-187.0%
*-commutative87.0%
associate-/l*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in t around inf 91.0%
*-commutative91.0%
metadata-eval91.0%
times-frac91.1%
*-commutative91.1%
associate-*r*91.0%
*-rgt-identity91.0%
associate-/r*98.6%
*-lft-identity98.6%
*-commutative98.6%
times-frac98.5%
metadata-eval98.5%
Simplified98.5%
Final simplification99.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ t y) y)))
(if (<= y -3e-95)
(+ x (/ t_1 (* 3.0 z)))
(if (<= y 2.9e-130)
(+ x (* 0.3333333333333333 (/ (/ t z) y)))
(+ x (* t_1 (/ 0.3333333333333333 z)))))))
double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -3e-95) {
tmp = x + (t_1 / (3.0 * z));
} else if (y <= 2.9e-130) {
tmp = x + (0.3333333333333333 * ((t / z) / y));
} else {
tmp = x + (t_1 * (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 = (t / y) - y
if (y <= (-3d-95)) then
tmp = x + (t_1 / (3.0d0 * z))
else if (y <= 2.9d-130) then
tmp = x + (0.3333333333333333d0 * ((t / z) / y))
else
tmp = x + (t_1 * (0.3333333333333333d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -3e-95) {
tmp = x + (t_1 / (3.0 * z));
} else if (y <= 2.9e-130) {
tmp = x + (0.3333333333333333 * ((t / z) / y));
} else {
tmp = x + (t_1 * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / y) - y tmp = 0 if y <= -3e-95: tmp = x + (t_1 / (3.0 * z)) elif y <= 2.9e-130: tmp = x + (0.3333333333333333 * ((t / z) / y)) else: tmp = x + (t_1 * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / y) - y) tmp = 0.0 if (y <= -3e-95) tmp = Float64(x + Float64(t_1 / Float64(3.0 * z))); elseif (y <= 2.9e-130) tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(t / z) / y))); else tmp = Float64(x + Float64(t_1 * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / y) - y; tmp = 0.0; if (y <= -3e-95) tmp = x + (t_1 / (3.0 * z)); elseif (y <= 2.9e-130) tmp = x + (0.3333333333333333 * ((t / z) / y)); else tmp = x + (t_1 * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[y, -3e-95], N[(x + N[(t$95$1 / N[(3.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e-130], N[(x + N[(0.3333333333333333 * N[(N[(t / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y} - y\\
\mathbf{if}\;y \leq -3 \cdot 10^{-95}:\\
\;\;\;\;x + \frac{t\_1}{3 \cdot z}\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-130}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + t\_1 \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -3e-95Initial program 97.5%
+-commutative97.5%
associate-+r-97.5%
+-commutative97.5%
associate--l+97.5%
sub-neg97.5%
remove-double-neg97.5%
distribute-frac-neg97.5%
distribute-neg-in97.5%
remove-double-neg97.5%
sub-neg97.5%
neg-mul-197.5%
times-frac98.7%
distribute-frac-neg98.7%
neg-mul-198.7%
*-commutative98.7%
associate-/l*98.7%
*-commutative98.7%
Simplified98.6%
*-commutative98.6%
clear-num98.6%
div-inv98.7%
metadata-eval98.7%
un-div-inv98.7%
Applied egg-rr98.7%
if -3e-95 < y < 2.9e-130Initial program 91.0%
+-commutative91.0%
associate-+r-91.0%
+-commutative91.0%
associate--l+91.0%
sub-neg91.0%
remove-double-neg91.0%
distribute-frac-neg91.0%
distribute-neg-in91.0%
remove-double-neg91.0%
sub-neg91.0%
neg-mul-191.0%
times-frac87.0%
distribute-frac-neg87.0%
neg-mul-187.0%
*-commutative87.0%
associate-/l*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in t around inf 91.0%
*-commutative91.0%
metadata-eval91.0%
times-frac91.1%
*-commutative91.1%
associate-*r*91.0%
*-rgt-identity91.0%
associate-/r*98.6%
*-lft-identity98.6%
*-commutative98.6%
times-frac98.5%
metadata-eval98.5%
Simplified98.5%
if 2.9e-130 < y Initial program 95.2%
+-commutative95.2%
associate-+r-95.2%
+-commutative95.2%
associate--l+95.2%
sub-neg95.2%
remove-double-neg95.2%
distribute-frac-neg95.2%
distribute-neg-in95.2%
remove-double-neg95.2%
sub-neg95.2%
neg-mul-195.2%
times-frac97.4%
distribute-frac-neg97.4%
neg-mul-197.4%
*-commutative97.4%
associate-/l*97.4%
*-commutative97.4%
Simplified99.8%
Final simplification99.0%
(FPCore (x y z t) :precision binary64 (if (<= y -9e-26) (+ x (/ (/ (- (/ t y) y) 3.0) z)) (+ (+ x (/ (/ t z) (* y 3.0))) (/ (/ y -3.0) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e-26) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (x + ((t / z) / (y * 3.0))) + ((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 <= (-9d-26)) then
tmp = x + ((((t / y) - y) / 3.0d0) / z)
else
tmp = (x + ((t / z) / (y * 3.0d0))) + ((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 <= -9e-26) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (x + ((t / z) / (y * 3.0))) + ((y / -3.0) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9e-26: tmp = x + ((((t / y) - y) / 3.0) / z) else: tmp = (x + ((t / z) / (y * 3.0))) + ((y / -3.0) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9e-26) tmp = Float64(x + Float64(Float64(Float64(Float64(t / y) - y) / 3.0) / z)); else tmp = Float64(Float64(x + Float64(Float64(t / z) / Float64(y * 3.0))) + Float64(Float64(y / -3.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -9e-26) tmp = x + ((((t / y) - y) / 3.0) / z); else tmp = (x + ((t / z) / (y * 3.0))) + ((y / -3.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9e-26], N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{-26}:\\
\;\;\;\;x + \frac{\frac{\frac{t}{y} - y}{3}}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{\frac{t}{z}}{y \cdot 3}\right) + \frac{\frac{y}{-3}}{z}\\
\end{array}
\end{array}
if y < -8.9999999999999998e-26Initial program 99.8%
+-commutative99.8%
associate-+r-99.8%
+-commutative99.8%
associate--l+99.8%
sub-neg99.8%
remove-double-neg99.8%
distribute-frac-neg99.8%
distribute-neg-in99.8%
remove-double-neg99.8%
sub-neg99.8%
neg-mul-199.8%
times-frac99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
*-commutative99.8%
Simplified99.7%
*-commutative99.7%
clear-num99.7%
div-inv99.8%
metadata-eval99.8%
un-div-inv99.8%
Applied egg-rr99.8%
*-un-lft-identity99.8%
times-frac99.8%
Applied egg-rr99.8%
associate-*l/100.0%
*-lft-identity100.0%
Simplified100.0%
if -8.9999999999999998e-26 < y Initial 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%
associate-/r*98.1%
div-inv98.1%
Applied egg-rr98.1%
*-un-lft-identity98.1%
times-frac98.1%
Applied egg-rr98.1%
associate-*l/98.2%
*-lft-identity98.2%
Simplified98.2%
un-div-inv98.2%
Applied egg-rr98.2%
Final simplification98.7%
(FPCore (x y z t) :precision binary64 (if (<= y -1.5e-58) (+ x (/ (/ (- (/ t y) y) 3.0) z)) (+ (+ x (/ (/ t z) (* y 3.0))) (/ y (* z -3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.5e-58) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (x + ((t / z) / (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 <= (-1.5d-58)) then
tmp = x + ((((t / y) - y) / 3.0d0) / z)
else
tmp = (x + ((t / z) / (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 <= -1.5e-58) {
tmp = x + ((((t / y) - y) / 3.0) / z);
} else {
tmp = (x + ((t / z) / (y * 3.0))) + (y / (z * -3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.5e-58: tmp = x + ((((t / y) - y) / 3.0) / z) else: tmp = (x + ((t / z) / (y * 3.0))) + (y / (z * -3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.5e-58) tmp = Float64(x + Float64(Float64(Float64(Float64(t / y) - y) / 3.0) / z)); else tmp = Float64(Float64(x + Float64(Float64(t / z) / 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 <= -1.5e-58) tmp = x + ((((t / y) - y) / 3.0) / z); else tmp = (x + ((t / z) / (y * 3.0))) + (y / (z * -3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.5e-58], N[(x + N[(N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / 3.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{-58}:\\
\;\;\;\;x + \frac{\frac{\frac{t}{y} - y}{3}}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{\frac{t}{z}}{y \cdot 3}\right) + \frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if y < -1.50000000000000004e-58Initial program 98.5%
+-commutative98.5%
associate-+r-98.5%
+-commutative98.5%
associate--l+98.5%
sub-neg98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
distribute-neg-in98.5%
remove-double-neg98.5%
sub-neg98.5%
neg-mul-198.5%
times-frac99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.7%
*-commutative99.7%
Simplified99.6%
*-commutative99.6%
clear-num99.7%
div-inv99.7%
metadata-eval99.7%
un-div-inv99.8%
Applied egg-rr99.8%
*-un-lft-identity99.8%
times-frac99.8%
Applied egg-rr99.8%
associate-*l/99.9%
*-lft-identity99.9%
Simplified99.9%
if -1.50000000000000004e-58 < y Initial program 93.0%
+-commutative93.0%
associate-+r-93.0%
sub-neg93.0%
associate-*l*93.0%
*-commutative93.0%
distribute-frac-neg293.0%
distribute-rgt-neg-in93.0%
metadata-eval93.0%
Simplified93.0%
associate-/r*98.1%
div-inv98.0%
Applied egg-rr98.0%
un-div-inv98.1%
Applied egg-rr98.1%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(if (<= x -7.2e+73)
(+ x (* y (/ -0.3333333333333333 z)))
(if (<= x 5.3e+60)
(* (- (/ t y) y) (/ 0.3333333333333333 z))
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.2e+73) {
tmp = x + (y * (-0.3333333333333333 / z));
} else if (x <= 5.3e+60) {
tmp = ((t / y) - y) * (0.3333333333333333 / z);
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-7.2d+73)) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else if (x <= 5.3d+60) then
tmp = ((t / y) - y) * (0.3333333333333333d0 / z)
else
tmp = x - (0.3333333333333333d0 * (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.2e+73) {
tmp = x + (y * (-0.3333333333333333 / z));
} else if (x <= 5.3e+60) {
tmp = ((t / y) - y) * (0.3333333333333333 / z);
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -7.2e+73: tmp = x + (y * (-0.3333333333333333 / z)) elif x <= 5.3e+60: tmp = ((t / y) - y) * (0.3333333333333333 / z) else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -7.2e+73) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); elseif (x <= 5.3e+60) tmp = Float64(Float64(Float64(t / y) - y) * Float64(0.3333333333333333 / z)); else tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -7.2e+73) tmp = x + (y * (-0.3333333333333333 / z)); elseif (x <= 5.3e+60) tmp = ((t / y) - y) * (0.3333333333333333 / z); else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -7.2e+73], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.3e+60], N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+73}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{+60}:\\
\;\;\;\;\left(\frac{t}{y} - y\right) \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if x < -7.1999999999999998e73Initial program 95.9%
+-commutative95.9%
associate-+r-95.9%
+-commutative95.9%
associate--l+95.9%
sub-neg95.9%
remove-double-neg95.9%
distribute-frac-neg95.9%
distribute-neg-in95.9%
remove-double-neg95.9%
sub-neg95.9%
neg-mul-195.9%
times-frac99.9%
distribute-frac-neg99.9%
neg-mul-199.9%
*-commutative99.9%
associate-/l*99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around 0 85.5%
metadata-eval85.5%
distribute-lft-neg-in85.5%
*-commutative85.5%
associate-*l/85.5%
associate-*r/85.5%
distribute-rgt-neg-out85.5%
distribute-neg-frac85.5%
metadata-eval85.5%
Simplified85.5%
if -7.1999999999999998e73 < x < 5.2999999999999997e60Initial program 93.9%
+-commutative93.9%
associate-+r-93.9%
sub-neg93.9%
associate-*l*93.9%
*-commutative93.9%
distribute-frac-neg293.9%
distribute-rgt-neg-in93.9%
metadata-eval93.9%
Simplified93.9%
associate-/r*96.0%
div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in z around 0 84.4%
+-commutative84.4%
metadata-eval84.4%
distribute-lft-neg-in84.4%
distribute-rgt-neg-in84.4%
distribute-lft-in84.4%
sub-neg84.4%
associate-*l/84.4%
Simplified84.4%
if 5.2999999999999997e60 < x Initial program 95.9%
Taylor expanded in t around 0 84.8%
Final simplification84.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -4.6e+69)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 4.2e+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 <= -4.6e+69) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 4.2e+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 <= (-4.6d+69)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 4.2d+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 <= -4.6e+69) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 4.2e+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 <= -4.6e+69: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 4.2e+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 <= -4.6e+69) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 4.2e+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 <= -4.6e+69) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 4.2e+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, -4.6e+69], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+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 -4.6 \cdot 10^{+69}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 4.2 \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 < -4.60000000000000033e69Initial program 99.9%
Taylor expanded in t around 0 97.6%
if -4.60000000000000033e69 < y < 4.20000000000000022e49Initial 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-frac91.8%
distribute-frac-neg91.8%
neg-mul-191.8%
*-commutative91.8%
associate-/l*91.8%
*-commutative91.8%
Simplified92.5%
Taylor expanded in t around inf 86.9%
if 4.20000000000000022e49 < y Initial program 94.3%
+-commutative94.3%
associate-+r-94.3%
+-commutative94.3%
associate--l+94.3%
sub-neg94.3%
remove-double-neg94.3%
distribute-frac-neg94.3%
distribute-neg-in94.3%
remove-double-neg94.3%
sub-neg94.3%
neg-mul-194.3%
times-frac97.9%
distribute-frac-neg97.9%
neg-mul-197.9%
*-commutative97.9%
associate-/l*97.9%
*-commutative97.9%
Simplified99.8%
Taylor expanded in t around 0 92.5%
metadata-eval92.5%
distribute-lft-neg-in92.5%
*-commutative92.5%
associate-*l/92.5%
associate-*r/92.6%
distribute-rgt-neg-out92.6%
distribute-neg-frac92.6%
metadata-eval92.6%
Simplified92.6%
Final simplification90.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.35e+70)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 4.6e+50)
(+ 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.35e+70) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 4.6e+50) {
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.35d+70)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 4.6d+50) 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.35e+70) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 4.6e+50) {
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.35e+70: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 4.6e+50: 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.35e+70) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 4.6e+50) 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.35e+70) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 4.6e+50) 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.35e+70], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+50], 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.35 \cdot 10^{+70}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+50}:\\
\;\;\;\;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.3499999999999999e70Initial program 99.9%
Taylor expanded in t around 0 97.6%
if -2.3499999999999999e70 < y < 4.59999999999999994e50Initial 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-frac91.8%
distribute-frac-neg91.8%
neg-mul-191.8%
*-commutative91.8%
associate-/l*91.8%
*-commutative91.8%
Simplified92.5%
Taylor expanded in t around inf 86.9%
*-commutative86.9%
metadata-eval86.9%
times-frac87.0%
*-commutative87.0%
associate-*r*86.9%
*-rgt-identity86.9%
associate-/r*91.0%
*-lft-identity91.0%
*-commutative91.0%
times-frac90.9%
metadata-eval90.9%
Simplified90.9%
if 4.59999999999999994e50 < y Initial program 94.3%
+-commutative94.3%
associate-+r-94.3%
+-commutative94.3%
associate--l+94.3%
sub-neg94.3%
remove-double-neg94.3%
distribute-frac-neg94.3%
distribute-neg-in94.3%
remove-double-neg94.3%
sub-neg94.3%
neg-mul-194.3%
times-frac97.9%
distribute-frac-neg97.9%
neg-mul-197.9%
*-commutative97.9%
associate-/l*97.9%
*-commutative97.9%
Simplified99.8%
Taylor expanded in t around 0 92.5%
metadata-eval92.5%
distribute-lft-neg-in92.5%
*-commutative92.5%
associate-*l/92.5%
associate-*r/92.6%
distribute-rgt-neg-out92.6%
distribute-neg-frac92.6%
metadata-eval92.6%
Simplified92.6%
Final simplification92.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8.5e-152) (not (<= y 7.9e-84))) (+ x (* y (/ -0.3333333333333333 z))) (* 0.3333333333333333 (/ t (* y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.5e-152) || !(y <= 7.9e-84)) {
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 <= (-8.5d-152)) .or. (.not. (y <= 7.9d-84))) 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 <= -8.5e-152) || !(y <= 7.9e-84)) {
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 <= -8.5e-152) or not (y <= 7.9e-84): 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 <= -8.5e-152) || !(y <= 7.9e-84)) 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 <= -8.5e-152) || ~((y <= 7.9e-84))) 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, -8.5e-152], N[Not[LessEqual[y, 7.9e-84]], $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 -8.5 \cdot 10^{-152} \lor \neg \left(y \leq 7.9 \cdot 10^{-84}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -8.5000000000000007e-152 or 7.89999999999999991e-84 < y Initial program 95.8%
+-commutative95.8%
associate-+r-95.8%
+-commutative95.8%
associate--l+95.8%
sub-neg95.8%
remove-double-neg95.8%
distribute-frac-neg95.8%
distribute-neg-in95.8%
remove-double-neg95.8%
sub-neg95.8%
neg-mul-195.8%
times-frac97.0%
distribute-frac-neg97.0%
neg-mul-197.0%
*-commutative97.0%
associate-/l*97.0%
*-commutative97.0%
Simplified98.1%
Taylor expanded in t around 0 82.0%
metadata-eval82.0%
distribute-lft-neg-in82.0%
*-commutative82.0%
associate-*l/82.0%
associate-*r/82.0%
distribute-rgt-neg-out82.0%
distribute-neg-frac82.0%
metadata-eval82.0%
Simplified82.0%
if -8.5000000000000007e-152 < y < 7.89999999999999991e-84Initial program 92.2%
+-commutative92.2%
associate-+r-92.2%
sub-neg92.2%
associate-*l*92.3%
*-commutative92.3%
distribute-frac-neg292.3%
distribute-rgt-neg-in92.3%
metadata-eval92.3%
Simplified92.3%
associate-/r*98.6%
div-inv98.5%
Applied egg-rr98.5%
*-un-lft-identity98.5%
times-frac98.5%
Applied egg-rr98.5%
associate-*l/98.5%
*-lft-identity98.5%
Simplified98.5%
Taylor expanded in t around inf 67.6%
Final simplification77.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.4e-153)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 1.92e-84)
(* 0.3333333333333333 (/ t (* y z)))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.4e-153) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.92e-84) {
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 <= (-3.4d-153)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 1.92d-84) 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 <= -3.4e-153) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 1.92e-84) {
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 <= -3.4e-153: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 1.92e-84: 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 <= -3.4e-153) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 1.92e-84) 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 <= -3.4e-153) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 1.92e-84) 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, -3.4e-153], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.92e-84], 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 -3.4 \cdot 10^{-153}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.92 \cdot 10^{-84}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -3.3999999999999998e-153Initial program 96.9%
Taylor expanded in t around 0 79.9%
if -3.3999999999999998e-153 < y < 1.92e-84Initial program 92.2%
+-commutative92.2%
associate-+r-92.2%
sub-neg92.2%
associate-*l*92.3%
*-commutative92.3%
distribute-frac-neg292.3%
distribute-rgt-neg-in92.3%
metadata-eval92.3%
Simplified92.3%
associate-/r*98.6%
div-inv98.5%
Applied egg-rr98.5%
*-un-lft-identity98.5%
times-frac98.5%
Applied egg-rr98.5%
associate-*l/98.5%
*-lft-identity98.5%
Simplified98.5%
Taylor expanded in t around inf 67.6%
if 1.92e-84 < y 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-frac96.9%
distribute-frac-neg96.9%
neg-mul-196.9%
*-commutative96.9%
associate-/l*96.9%
*-commutative96.9%
Simplified99.8%
Taylor expanded in t around 0 85.0%
metadata-eval85.0%
distribute-lft-neg-in85.0%
*-commutative85.0%
associate-*l/85.0%
associate-*r/85.0%
distribute-rgt-neg-out85.0%
distribute-neg-frac85.0%
metadata-eval85.0%
Simplified85.0%
Final simplification77.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.6e-152)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 2.25e-84)
(* 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.6e-152) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 2.25e-84) {
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.6d-152)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 2.25d-84) 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.6e-152) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 2.25e-84) {
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.6e-152: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 2.25e-84: 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.6e-152) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 2.25e-84) 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.6e-152) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 2.25e-84) 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.6e-152], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.25e-84], 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.6 \cdot 10^{-152}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-84}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.60000000000000006e-152Initial program 96.9%
+-commutative96.9%
associate-+r-96.9%
sub-neg96.9%
associate-*l*96.9%
*-commutative96.9%
distribute-frac-neg296.9%
distribute-rgt-neg-in96.9%
metadata-eval96.9%
Simplified96.9%
Taylor expanded in t around 0 79.9%
metadata-eval79.9%
cancel-sign-sub-inv79.9%
associate-*r/80.0%
Simplified80.0%
if -1.60000000000000006e-152 < y < 2.25000000000000008e-84Initial program 92.2%
+-commutative92.2%
associate-+r-92.2%
sub-neg92.2%
associate-*l*92.3%
*-commutative92.3%
distribute-frac-neg292.3%
distribute-rgt-neg-in92.3%
metadata-eval92.3%
Simplified92.3%
associate-/r*98.6%
div-inv98.5%
Applied egg-rr98.5%
*-un-lft-identity98.5%
times-frac98.5%
Applied egg-rr98.5%
associate-*l/98.5%
*-lft-identity98.5%
Simplified98.5%
Taylor expanded in t around inf 67.6%
if 2.25000000000000008e-84 < y 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-frac96.9%
distribute-frac-neg96.9%
neg-mul-196.9%
*-commutative96.9%
associate-/l*96.9%
*-commutative96.9%
Simplified99.8%
Taylor expanded in t around 0 85.0%
metadata-eval85.0%
distribute-lft-neg-in85.0%
*-commutative85.0%
associate-*l/85.0%
associate-*r/85.0%
distribute-rgt-neg-out85.0%
distribute-neg-frac85.0%
metadata-eval85.0%
Simplified85.0%
Final simplification77.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4.7e+83) (not (<= y 1.2e+88))) (* (/ y z) -0.3333333333333333) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.7e+83) || !(y <= 1.2e+88)) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-4.7d+83)) .or. (.not. (y <= 1.2d+88))) then
tmp = (y / z) * (-0.3333333333333333d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4.7e+83) || !(y <= 1.2e+88)) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4.7e+83) or not (y <= 1.2e+88): tmp = (y / z) * -0.3333333333333333 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4.7e+83) || !(y <= 1.2e+88)) tmp = Float64(Float64(y / z) * -0.3333333333333333); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -4.7e+83) || ~((y <= 1.2e+88))) tmp = (y / z) * -0.3333333333333333; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.7e+83], N[Not[LessEqual[y, 1.2e+88]], $MachinePrecision]], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.7 \cdot 10^{+83} \lor \neg \left(y \leq 1.2 \cdot 10^{+88}\right):\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.6999999999999999e83 or 1.2e88 < y Initial program 96.5%
+-commutative96.5%
associate-+r-96.5%
sub-neg96.5%
associate-*l*96.5%
*-commutative96.5%
distribute-frac-neg296.5%
distribute-rgt-neg-in96.5%
metadata-eval96.5%
Simplified96.5%
associate-/r*93.2%
div-inv93.2%
Applied egg-rr93.2%
Taylor expanded in y around inf 78.2%
if -4.6999999999999999e83 < y < 1.2e88Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
sub-neg93.6%
associate-*l*93.7%
*-commutative93.7%
distribute-frac-neg293.7%
distribute-rgt-neg-in93.7%
metadata-eval93.7%
Simplified93.7%
Taylor expanded in z around inf 39.2%
Final simplification52.7%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1e+84) (not (<= y 8.5e+86))) (/ y (* z -3.0)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1e+84) || !(y <= 8.5e+86)) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1d+84)) .or. (.not. (y <= 8.5d+86))) then
tmp = y / (z * (-3.0d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1e+84) || !(y <= 8.5e+86)) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1e+84) or not (y <= 8.5e+86): tmp = y / (z * -3.0) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1e+84) || !(y <= 8.5e+86)) tmp = Float64(y / Float64(z * -3.0)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1e+84) || ~((y <= 8.5e+86))) tmp = y / (z * -3.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1e+84], N[Not[LessEqual[y, 8.5e+86]], $MachinePrecision]], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+84} \lor \neg \left(y \leq 8.5 \cdot 10^{+86}\right):\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.00000000000000006e84 or 8.5000000000000005e86 < y Initial program 96.5%
+-commutative96.5%
associate-+r-96.5%
sub-neg96.5%
associate-*l*96.5%
*-commutative96.5%
distribute-frac-neg296.5%
distribute-rgt-neg-in96.5%
metadata-eval96.5%
Simplified96.5%
associate-/r*93.2%
div-inv93.2%
Applied egg-rr93.2%
Taylor expanded in y around inf 78.2%
add-sqr-sqrt34.0%
sqrt-unprod26.2%
swap-sqr26.2%
metadata-eval26.2%
metadata-eval26.2%
swap-sqr26.2%
associate-*r/26.2%
*-commutative26.2%
associate-*r/26.2%
*-commutative26.2%
frac-times16.8%
swap-sqr16.8%
metadata-eval16.8%
metadata-eval16.8%
swap-sqr16.8%
metadata-eval16.8%
div-inv16.8%
metadata-eval16.8%
div-inv16.8%
frac-times26.2%
sqrt-unprod34.1%
add-sqr-sqrt78.3%
associate-/l/78.3%
Applied egg-rr78.3%
if -1.00000000000000006e84 < y < 8.5000000000000005e86Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
sub-neg93.6%
associate-*l*93.7%
*-commutative93.7%
distribute-frac-neg293.7%
distribute-rgt-neg-in93.7%
metadata-eval93.7%
Simplified93.7%
Taylor expanded in z around inf 39.2%
Final simplification52.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -6.6e+83) (not (<= y 6.2e+87))) (/ (/ y -3.0) z) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.6e+83) || !(y <= 6.2e+87)) {
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 ((y <= (-6.6d+83)) .or. (.not. (y <= 6.2d+87))) 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 ((y <= -6.6e+83) || !(y <= 6.2e+87)) {
tmp = (y / -3.0) / z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6.6e+83) or not (y <= 6.2e+87): tmp = (y / -3.0) / z else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6.6e+83) || !(y <= 6.2e+87)) 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 ((y <= -6.6e+83) || ~((y <= 6.2e+87))) tmp = (y / -3.0) / z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6.6e+83], N[Not[LessEqual[y, 6.2e+87]], $MachinePrecision]], N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+83} \lor \neg \left(y \leq 6.2 \cdot 10^{+87}\right):\\
\;\;\;\;\frac{\frac{y}{-3}}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -6.59999999999999969e83 or 6.1999999999999999e87 < y Initial program 96.5%
+-commutative96.5%
associate-+r-96.5%
sub-neg96.5%
associate-*l*96.5%
*-commutative96.5%
distribute-frac-neg296.5%
distribute-rgt-neg-in96.5%
metadata-eval96.5%
Simplified96.5%
associate-/r*93.2%
div-inv93.2%
Applied egg-rr93.2%
Taylor expanded in y around inf 78.2%
*-commutative78.2%
associate-*l/78.2%
Simplified78.2%
metadata-eval78.2%
div-inv78.3%
Applied egg-rr78.3%
if -6.59999999999999969e83 < y < 6.1999999999999999e87Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
sub-neg93.6%
associate-*l*93.7%
*-commutative93.7%
distribute-frac-neg293.7%
distribute-rgt-neg-in93.7%
metadata-eval93.7%
Simplified93.7%
Taylor expanded in z around inf 39.2%
Final simplification52.8%
(FPCore (x y z t) :precision binary64 (if (<= y -1e+84) (/ -0.3333333333333333 (/ z y)) (if (<= y 4.5e+86) x (* (/ y z) -0.3333333333333333))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1e+84) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 4.5e+86) {
tmp = x;
} else {
tmp = (y / z) * -0.3333333333333333;
}
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 <= (-1d+84)) then
tmp = (-0.3333333333333333d0) / (z / y)
else if (y <= 4.5d+86) then
tmp = x
else
tmp = (y / z) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1e+84) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 4.5e+86) {
tmp = x;
} else {
tmp = (y / z) * -0.3333333333333333;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1e+84: tmp = -0.3333333333333333 / (z / y) elif y <= 4.5e+86: tmp = x else: tmp = (y / z) * -0.3333333333333333 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1e+84) tmp = Float64(-0.3333333333333333 / Float64(z / y)); elseif (y <= 4.5e+86) tmp = x; else tmp = Float64(Float64(y / z) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1e+84) tmp = -0.3333333333333333 / (z / y); elseif (y <= 4.5e+86) tmp = x; else tmp = (y / z) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1e+84], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+86], x, N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+84}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+86}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -1.00000000000000006e84Initial 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*89.1%
div-inv89.1%
Applied egg-rr89.1%
*-un-lft-identity89.1%
times-frac89.0%
Applied egg-rr89.0%
associate-*l/89.1%
*-lft-identity89.1%
Simplified89.1%
Taylor expanded in y around inf 78.3%
associate-*r/78.3%
associate-*l/78.2%
associate-/r/78.3%
Simplified78.3%
if -1.00000000000000006e84 < y < 4.49999999999999993e86Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
sub-neg93.6%
associate-*l*93.7%
*-commutative93.7%
distribute-frac-neg293.7%
distribute-rgt-neg-in93.7%
metadata-eval93.7%
Simplified93.7%
Taylor expanded in z around inf 39.2%
if 4.49999999999999993e86 < y Initial program 93.1%
+-commutative93.1%
associate-+r-93.1%
sub-neg93.1%
associate-*l*93.1%
*-commutative93.1%
distribute-frac-neg293.1%
distribute-rgt-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
associate-/r*97.4%
div-inv97.4%
Applied egg-rr97.4%
Taylor expanded in y around inf 78.0%
Final simplification52.7%
(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.7%
+-commutative94.7%
associate-+r-94.7%
sub-neg94.7%
associate-*l*94.7%
*-commutative94.7%
distribute-frac-neg294.7%
distribute-rgt-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in z around inf 32.4%
Final simplification32.4%
(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 2024079
(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))))