
(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 (<= t 3.4e-92) (+ x (* -0.3333333333333333 (/ (- y (/ t y)) z))) (+ (+ x (/ t (* z (* y 3.0)))) (/ y (* z -3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.4e-92) {
tmp = x + (-0.3333333333333333 * ((y - (t / y)) / 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 (t <= 3.4d-92) then
tmp = x + ((-0.3333333333333333d0) * ((y - (t / y)) / 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 (t <= 3.4e-92) {
tmp = x + (-0.3333333333333333 * ((y - (t / y)) / z));
} else {
tmp = (x + (t / (z * (y * 3.0)))) + (y / (z * -3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= 3.4e-92: tmp = x + (-0.3333333333333333 * ((y - (t / y)) / 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 (t <= 3.4e-92) tmp = Float64(x + Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z))); else tmp = Float64(Float64(x + Float64(t / Float64(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 (t <= 3.4e-92) tmp = x + (-0.3333333333333333 * ((y - (t / y)) / 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[t, 3.4e-92], N[(x + N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.4 \cdot 10^{-92}:\\
\;\;\;\;x + -0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right) + \frac{y}{z \cdot -3}\\
\end{array}
\end{array}
if t < 3.4000000000000003e-92Initial program 93.9%
sub-neg93.9%
associate-+l+93.9%
remove-double-neg93.9%
distribute-frac-neg93.9%
sub-neg93.9%
distribute-frac-neg93.9%
neg-mul-193.9%
*-commutative93.9%
associate-/l*93.8%
*-commutative93.8%
neg-mul-193.8%
times-frac98.1%
distribute-lft-out--98.1%
*-commutative98.1%
associate-/r*98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in z around 0 98.1%
if 3.4000000000000003e-92 < t Initial program 98.7%
+-commutative98.7%
associate-+r-98.7%
sub-neg98.7%
associate-*l*98.8%
*-commutative98.8%
distribute-frac-neg298.8%
distribute-rgt-neg-in98.8%
metadata-eval98.8%
Simplified98.8%
Final simplification98.3%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -1e+69)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= (* z 3.0) 5e+86)
(* -0.3333333333333333 (/ (- y (/ t y)) z))
(- x (/ 0.3333333333333333 (/ z y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -1e+69) {
tmp = x - (0.3333333333333333 * (y / z));
} else if ((z * 3.0) <= 5e+86) {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z * 3.0d0) <= (-1d+69)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if ((z * 3.0d0) <= 5d+86) then
tmp = (-0.3333333333333333d0) * ((y - (t / y)) / z)
else
tmp = x - (0.3333333333333333d0 / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -1e+69) {
tmp = x - (0.3333333333333333 * (y / z));
} else if ((z * 3.0) <= 5e+86) {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
} else {
tmp = x - (0.3333333333333333 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= -1e+69: tmp = x - (0.3333333333333333 * (y / z)) elif (z * 3.0) <= 5e+86: tmp = -0.3333333333333333 * ((y - (t / y)) / z) else: tmp = x - (0.3333333333333333 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= -1e+69) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (Float64(z * 3.0) <= 5e+86) tmp = Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z)); else tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= -1e+69) tmp = x - (0.3333333333333333 * (y / z)); elseif ((z * 3.0) <= 5e+86) tmp = -0.3333333333333333 * ((y - (t / y)) / z); else tmp = x - (0.3333333333333333 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -1e+69], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 5e+86], N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -1 \cdot 10^{+69}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;z \cdot 3 \leq 5 \cdot 10^{+86}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < -1.0000000000000001e69Initial program 99.7%
Taylor expanded in t around 0 78.3%
if -1.0000000000000001e69 < (*.f64 z #s(literal 3 binary64)) < 4.9999999999999998e86Initial program 93.0%
sub-neg93.0%
associate-+l+93.0%
remove-double-neg93.0%
distribute-frac-neg93.0%
sub-neg93.0%
distribute-frac-neg93.0%
neg-mul-193.0%
*-commutative93.0%
associate-/l*92.9%
*-commutative92.9%
neg-mul-192.9%
times-frac98.5%
distribute-lft-out--99.2%
*-commutative99.2%
associate-/r*99.1%
metadata-eval99.1%
Simplified99.1%
Taylor expanded in z around 0 99.1%
Taylor expanded in x around 0 87.5%
if 4.9999999999999998e86 < (*.f64 z #s(literal 3 binary64)) Initial program 99.7%
Taylor expanded in t around 0 79.6%
clear-num79.6%
un-div-inv79.7%
Applied egg-rr79.7%
(FPCore (x y z t)
:precision binary64
(if (<= y -5e+26)
(/ -0.3333333333333333 (/ z y))
(if (<= y 2.2e-36)
(* (/ t y) (/ 0.3333333333333333 z))
(if (<= y 180000000000.0) x (* -0.3333333333333333 (/ 1.0 (/ z y)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5e+26) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 2.2e-36) {
tmp = (t / y) * (0.3333333333333333 / z);
} else if (y <= 180000000000.0) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (1.0 / (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 <= (-5d+26)) then
tmp = (-0.3333333333333333d0) / (z / y)
else if (y <= 2.2d-36) then
tmp = (t / y) * (0.3333333333333333d0 / z)
else if (y <= 180000000000.0d0) then
tmp = x
else
tmp = (-0.3333333333333333d0) * (1.0d0 / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5e+26) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 2.2e-36) {
tmp = (t / y) * (0.3333333333333333 / z);
} else if (y <= 180000000000.0) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (1.0 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5e+26: tmp = -0.3333333333333333 / (z / y) elif y <= 2.2e-36: tmp = (t / y) * (0.3333333333333333 / z) elif y <= 180000000000.0: tmp = x else: tmp = -0.3333333333333333 * (1.0 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5e+26) tmp = Float64(-0.3333333333333333 / Float64(z / y)); elseif (y <= 2.2e-36) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); elseif (y <= 180000000000.0) tmp = x; else tmp = Float64(-0.3333333333333333 * Float64(1.0 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5e+26) tmp = -0.3333333333333333 / (z / y); elseif (y <= 2.2e-36) tmp = (t / y) * (0.3333333333333333 / z); elseif (y <= 180000000000.0) tmp = x; else tmp = -0.3333333333333333 * (1.0 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5e+26], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-36], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 180000000000.0], x, N[(-0.3333333333333333 * N[(1.0 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+26}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-36}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 180000000000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{1}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -5.0000000000000001e26Initial program 99.8%
Taylor expanded in t around 0 92.4%
clear-num92.3%
un-div-inv92.5%
Applied egg-rr92.5%
Taylor expanded in x around 0 57.4%
clear-num57.4%
un-div-inv57.5%
Applied egg-rr57.5%
if -5.0000000000000001e26 < y < 2.1999999999999999e-36Initial program 93.1%
sub-neg93.1%
associate-+l+93.1%
distribute-frac-neg93.1%
neg-mul-193.1%
*-commutative93.1%
times-frac93.1%
fma-define93.1%
metadata-eval93.1%
associate-*l*93.2%
*-commutative93.2%
Simplified93.2%
Taylor expanded in y around 0 92.0%
Taylor expanded in t around inf 67.2%
associate-*r/67.2%
*-commutative67.2%
associate-/l*67.2%
Simplified67.2%
div-inv67.2%
*-commutative67.2%
associate-*l*65.9%
div-inv65.9%
Applied egg-rr65.9%
if 2.1999999999999999e-36 < y < 1.8e11Initial program 100.0%
sub-neg100.0%
associate-+l+100.0%
distribute-frac-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
times-frac99.9%
fma-define99.9%
metadata-eval99.9%
associate-*l*99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around inf 78.9%
if 1.8e11 < y Initial program 98.0%
Taylor expanded in t around 0 95.7%
clear-num95.8%
un-div-inv95.7%
Applied egg-rr95.7%
Taylor expanded in x around 0 69.8%
clear-num69.9%
inv-pow69.9%
Applied egg-rr69.9%
unpow-169.9%
Simplified69.9%
Final simplification66.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.5e+27)
(/ -0.3333333333333333 (/ z y))
(if (<= y 1.9e-36)
(* 0.3333333333333333 (/ t (* y z)))
(if (<= y 65000000000.0) x (* -0.3333333333333333 (/ 1.0 (/ z y)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.5e+27) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 1.9e-36) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 65000000000.0) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (1.0 / (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.5d+27)) then
tmp = (-0.3333333333333333d0) / (z / y)
else if (y <= 1.9d-36) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else if (y <= 65000000000.0d0) then
tmp = x
else
tmp = (-0.3333333333333333d0) * (1.0d0 / (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.5e+27) {
tmp = -0.3333333333333333 / (z / y);
} else if (y <= 1.9e-36) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 65000000000.0) {
tmp = x;
} else {
tmp = -0.3333333333333333 * (1.0 / (z / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.5e+27: tmp = -0.3333333333333333 / (z / y) elif y <= 1.9e-36: tmp = 0.3333333333333333 * (t / (y * z)) elif y <= 65000000000.0: tmp = x else: tmp = -0.3333333333333333 * (1.0 / (z / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.5e+27) tmp = Float64(-0.3333333333333333 / Float64(z / y)); elseif (y <= 1.9e-36) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); elseif (y <= 65000000000.0) tmp = x; else tmp = Float64(-0.3333333333333333 * Float64(1.0 / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.5e+27) tmp = -0.3333333333333333 / (z / y); elseif (y <= 1.9e-36) tmp = 0.3333333333333333 * (t / (y * z)); elseif (y <= 65000000000.0) tmp = x; else tmp = -0.3333333333333333 * (1.0 / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.5e+27], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-36], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 65000000000.0], x, N[(-0.3333333333333333 * N[(1.0 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+27}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-36}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{elif}\;y \leq 65000000000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{1}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -1.49999999999999988e27Initial program 99.8%
Taylor expanded in t around 0 92.4%
clear-num92.3%
un-div-inv92.5%
Applied egg-rr92.5%
Taylor expanded in x around 0 57.4%
clear-num57.4%
un-div-inv57.5%
Applied egg-rr57.5%
if -1.49999999999999988e27 < y < 1.89999999999999985e-36Initial program 93.1%
sub-neg93.1%
associate-+l+93.1%
distribute-frac-neg93.1%
neg-mul-193.1%
*-commutative93.1%
times-frac93.1%
fma-define93.1%
metadata-eval93.1%
associate-*l*93.2%
*-commutative93.2%
Simplified93.2%
Taylor expanded in y around 0 92.0%
Taylor expanded in t around inf 67.2%
associate-*r/67.2%
*-commutative67.2%
associate-/l*67.2%
Simplified67.2%
Taylor expanded in t around 0 64.4%
if 1.89999999999999985e-36 < y < 6.5e10Initial program 100.0%
sub-neg100.0%
associate-+l+100.0%
distribute-frac-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
times-frac99.9%
fma-define99.9%
metadata-eval99.9%
associate-*l*99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around inf 78.9%
if 6.5e10 < y Initial program 98.0%
Taylor expanded in t around 0 95.7%
clear-num95.8%
un-div-inv95.7%
Applied egg-rr95.7%
Taylor expanded in x around 0 69.8%
clear-num69.9%
inv-pow69.9%
Applied egg-rr69.9%
unpow-169.9%
Simplified69.9%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.2e+26)
(- x (/ 0.3333333333333333 (/ z y)))
(if (<= y 1.15e-59)
(+ x (* (/ t z) (/ 0.3333333333333333 y)))
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.2e+26) {
tmp = x - (0.3333333333333333 / (z / y));
} else if (y <= 1.15e-59) {
tmp = x + ((t / z) * (0.3333333333333333 / y));
} 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 (y <= (-8.2d+26)) then
tmp = x - (0.3333333333333333d0 / (z / y))
else if (y <= 1.15d-59) then
tmp = x + ((t / z) * (0.3333333333333333d0 / y))
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 (y <= -8.2e+26) {
tmp = x - (0.3333333333333333 / (z / y));
} else if (y <= 1.15e-59) {
tmp = x + ((t / z) * (0.3333333333333333 / y));
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.2e+26: tmp = x - (0.3333333333333333 / (z / y)) elif y <= 1.15e-59: tmp = x + ((t / z) * (0.3333333333333333 / y)) else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.2e+26) tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); elseif (y <= 1.15e-59) tmp = Float64(x + Float64(Float64(t / z) * Float64(0.3333333333333333 / y))); 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 (y <= -8.2e+26) tmp = x - (0.3333333333333333 / (z / y)); elseif (y <= 1.15e-59) tmp = x + ((t / z) * (0.3333333333333333 / y)); else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.2e+26], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e-59], N[(x + N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-59}:\\
\;\;\;\;x + \frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -8.19999999999999967e26Initial program 99.8%
Taylor expanded in t around 0 92.4%
clear-num92.3%
un-div-inv92.5%
Applied egg-rr92.5%
if -8.19999999999999967e26 < y < 1.1499999999999999e-59Initial program 92.7%
sub-neg92.7%
associate-+l+92.7%
remove-double-neg92.7%
distribute-frac-neg92.7%
sub-neg92.7%
distribute-frac-neg92.7%
neg-mul-192.7%
*-commutative92.7%
associate-/l*92.7%
*-commutative92.7%
neg-mul-192.7%
times-frac93.6%
distribute-lft-out--93.6%
*-commutative93.6%
associate-/r*93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around 0 91.2%
metadata-eval91.2%
times-frac91.2%
*-commutative91.2%
times-frac90.6%
associate-*l/91.3%
*-lft-identity91.3%
Simplified91.3%
div-inv91.2%
metadata-eval91.2%
*-commutative91.2%
times-frac95.1%
Applied egg-rr95.1%
if 1.1499999999999999e-59 < y Initial program 98.5%
Taylor expanded in t around 0 92.1%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.8e+26)
(- x (/ 0.3333333333333333 (/ z y)))
(if (<= y 1.15e-59)
(+ x (* 0.3333333333333333 (/ t (* y z))))
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.8e+26) {
tmp = x - (0.3333333333333333 / (z / y));
} else if (y <= 1.15e-59) {
tmp = x + (0.3333333333333333 * (t / (y * 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 (y <= (-3.8d+26)) then
tmp = x - (0.3333333333333333d0 / (z / y))
else if (y <= 1.15d-59) then
tmp = x + (0.3333333333333333d0 * (t / (y * 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 (y <= -3.8e+26) {
tmp = x - (0.3333333333333333 / (z / y));
} else if (y <= 1.15e-59) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.8e+26: tmp = x - (0.3333333333333333 / (z / y)) elif y <= 1.15e-59: tmp = x + (0.3333333333333333 * (t / (y * z))) else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.8e+26) tmp = Float64(x - Float64(0.3333333333333333 / Float64(z / y))); elseif (y <= 1.15e-59) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * 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 (y <= -3.8e+26) tmp = x - (0.3333333333333333 / (z / y)); elseif (y <= 1.15e-59) tmp = x + (0.3333333333333333 * (t / (y * z))); else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.8e+26], N[(x - N[(0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e-59], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+26}:\\
\;\;\;\;x - \frac{0.3333333333333333}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-59}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -3.8000000000000002e26Initial program 99.8%
Taylor expanded in t around 0 92.4%
clear-num92.3%
un-div-inv92.5%
Applied egg-rr92.5%
if -3.8000000000000002e26 < y < 1.1499999999999999e-59Initial program 92.7%
sub-neg92.7%
associate-+l+92.7%
remove-double-neg92.7%
distribute-frac-neg92.7%
sub-neg92.7%
distribute-frac-neg92.7%
neg-mul-192.7%
*-commutative92.7%
associate-/l*92.7%
*-commutative92.7%
neg-mul-192.7%
times-frac93.6%
distribute-lft-out--93.6%
*-commutative93.6%
associate-/r*93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around 0 91.2%
if 1.1499999999999999e-59 < y Initial program 98.5%
Taylor expanded in t around 0 92.1%
(FPCore (x y z t) :precision binary64 (if (or (<= y -4e-137) (not (<= y 5.4e-117))) (+ x (* y (/ -0.3333333333333333 z))) (* (/ t y) (/ 0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -4e-137) || !(y <= 5.4e-117)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t / 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 <= (-4d-137)) .or. (.not. (y <= 5.4d-117))) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else
tmp = (t / 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 <= -4e-137) || !(y <= 5.4e-117)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t / y) * (0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -4e-137) or not (y <= 5.4e-117): tmp = x + (y * (-0.3333333333333333 / z)) else: tmp = (t / y) * (0.3333333333333333 / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -4e-137) || !(y <= 5.4e-117)) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); else tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -4e-137) || ~((y <= 5.4e-117))) tmp = x + (y * (-0.3333333333333333 / z)); else tmp = (t / y) * (0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4e-137], N[Not[LessEqual[y, 5.4e-117]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{-137} \lor \neg \left(y \leq 5.4 \cdot 10^{-117}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -3.99999999999999991e-137 or 5.40000000000000005e-117 < y Initial program 98.6%
sub-neg98.6%
associate-+l+98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
sub-neg98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.6%
*-commutative98.6%
neg-mul-198.6%
times-frac98.5%
distribute-lft-out--99.2%
*-commutative99.2%
associate-/r*99.1%
metadata-eval99.1%
Simplified99.1%
Taylor expanded in y around inf 83.9%
if -3.99999999999999991e-137 < y < 5.40000000000000005e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
div-inv79.3%
*-commutative79.3%
associate-*l*77.5%
div-inv77.5%
Applied egg-rr77.5%
Final simplification81.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.35e-136)
(+ x (/ y (* z -3.0)))
(if (<= y 6.5e-117)
(/ (/ (* t 0.3333333333333333) z) y)
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.35e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 6.5e-117) {
tmp = ((t * 0.3333333333333333) / z) / y;
} 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 (y <= (-1.35d-136)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 6.5d-117) then
tmp = ((t * 0.3333333333333333d0) / z) / y
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 (y <= -1.35e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 6.5e-117) {
tmp = ((t * 0.3333333333333333) / z) / y;
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.35e-136: tmp = x + (y / (z * -3.0)) elif y <= 6.5e-117: tmp = ((t * 0.3333333333333333) / z) / y else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.35e-136) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 6.5e-117) tmp = Float64(Float64(Float64(t * 0.3333333333333333) / z) / y); 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 (y <= -1.35e-136) tmp = x + (y / (z * -3.0)); elseif (y <= 6.5e-117) tmp = ((t * 0.3333333333333333) / z) / y; else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.35e-136], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e-117], N[(N[(N[(t * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{-136}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{\frac{t \cdot 0.3333333333333333}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -1.3499999999999999e-136Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -1.3499999999999999e-136 < y < 6.5000000000000001e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in z around -inf 92.1%
mul-1-neg92.1%
metadata-eval92.1%
cancel-sign-sub-inv92.1%
unsub-neg92.1%
distribute-lft-out--92.1%
Simplified92.1%
Taylor expanded in t around inf 92.1%
associate-*r/92.1%
Simplified92.1%
Taylor expanded in x around 0 75.7%
*-commutative75.7%
associate-*l/75.7%
associate-/l/79.3%
Simplified79.3%
if 6.5000000000000001e-117 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -1e-136)
(+ x (/ y (* z -3.0)))
(if (<= y 9.5e-117)
(/ (/ t (* z 3.0)) y)
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 9.5e-117) {
tmp = (t / (z * 3.0)) / y;
} 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 (y <= (-1d-136)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 9.5d-117) then
tmp = (t / (z * 3.0d0)) / y
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 (y <= -1e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 9.5e-117) {
tmp = (t / (z * 3.0)) / y;
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1e-136: tmp = x + (y / (z * -3.0)) elif y <= 9.5e-117: tmp = (t / (z * 3.0)) / y else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1e-136) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 9.5e-117) tmp = Float64(Float64(t / Float64(z * 3.0)) / y); 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 (y <= -1e-136) tmp = x + (y / (z * -3.0)); elseif (y <= 9.5e-117) tmp = (t / (z * 3.0)) / y; else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1e-136], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-117], N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{-136}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{\frac{t}{z \cdot 3}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -1e-136Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -1e-136 < y < 9.5000000000000004e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
clear-num79.3%
un-div-inv79.3%
div-inv79.3%
metadata-eval79.3%
Applied egg-rr79.3%
if 9.5000000000000004e-117 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.35e-136)
(+ x (/ y (* z -3.0)))
(if (<= y 1.02e-116)
(/ (* t (/ 0.3333333333333333 z)) y)
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.35e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1.02e-116) {
tmp = (t * (0.3333333333333333 / z)) / y;
} 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 (y <= (-1.35d-136)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 1.02d-116) then
tmp = (t * (0.3333333333333333d0 / z)) / y
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 (y <= -1.35e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1.02e-116) {
tmp = (t * (0.3333333333333333 / z)) / y;
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.35e-136: tmp = x + (y / (z * -3.0)) elif y <= 1.02e-116: tmp = (t * (0.3333333333333333 / z)) / y else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.35e-136) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 1.02e-116) tmp = Float64(Float64(t * Float64(0.3333333333333333 / z)) / y); 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 (y <= -1.35e-136) tmp = x + (y / (z * -3.0)); elseif (y <= 1.02e-116) tmp = (t * (0.3333333333333333 / z)) / y; else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.35e-136], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.02e-116], N[(N[(t * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{-136}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-116}:\\
\;\;\;\;\frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -1.3499999999999999e-136Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -1.3499999999999999e-136 < y < 1.02e-116Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
if 1.02e-116 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.3e-136)
(+ x (/ y (* z -3.0)))
(if (<= y 5.4e-117)
(/ (* 0.3333333333333333 (/ t z)) y)
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.3e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 5.4e-117) {
tmp = (0.3333333333333333 * (t / z)) / y;
} 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 (y <= (-1.3d-136)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 5.4d-117) then
tmp = (0.3333333333333333d0 * (t / z)) / y
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 (y <= -1.3e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 5.4e-117) {
tmp = (0.3333333333333333 * (t / z)) / y;
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.3e-136: tmp = x + (y / (z * -3.0)) elif y <= 5.4e-117: tmp = (0.3333333333333333 * (t / z)) / y else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.3e-136) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 5.4e-117) tmp = Float64(Float64(0.3333333333333333 * Float64(t / z)) / y); 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 (y <= -1.3e-136) tmp = x + (y / (z * -3.0)); elseif (y <= 5.4e-117) tmp = (0.3333333333333333 * (t / z)) / y; else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.3e-136], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e-117], N[(N[(0.3333333333333333 * N[(t / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-136}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-117}:\\
\;\;\;\;\frac{0.3333333333333333 \cdot \frac{t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -1.29999999999999998e-136Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -1.29999999999999998e-136 < y < 5.40000000000000005e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
if 5.40000000000000005e-117 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.2e-137)
(+ x (/ y (* z -3.0)))
(if (<= y 1.1e-116)
(/ (* (/ t y) 0.3333333333333333) z)
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.2e-137) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1.1e-116) {
tmp = ((t / 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 (y <= (-8.2d-137)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 1.1d-116) then
tmp = ((t / 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 (y <= -8.2e-137) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1.1e-116) {
tmp = ((t / y) * 0.3333333333333333) / z;
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.2e-137: tmp = x + (y / (z * -3.0)) elif y <= 1.1e-116: tmp = ((t / y) * 0.3333333333333333) / z else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.2e-137) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 1.1e-116) tmp = Float64(Float64(Float64(t / y) * 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 (y <= -8.2e-137) tmp = x + (y / (z * -3.0)); elseif (y <= 1.1e-116) tmp = ((t / y) * 0.3333333333333333) / z; else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.2e-137], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-116], N[(N[(N[(t / y), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{-137}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-116}:\\
\;\;\;\;\frac{\frac{t}{y} \cdot 0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -8.1999999999999997e-137Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -8.1999999999999997e-137 < y < 1.10000000000000005e-116Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
associate-/l*74.9%
Applied egg-rr74.9%
associate-/l/75.0%
associate-*r/75.7%
metadata-eval75.7%
distribute-rgt-neg-in75.7%
*-commutative75.7%
*-commutative75.7%
distribute-neg-frac75.7%
associate-/l/77.6%
distribute-neg-frac77.6%
associate-/l*77.6%
distribute-lft-neg-in77.6%
metadata-eval77.6%
Applied egg-rr77.6%
if 1.10000000000000005e-116 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
Final simplification81.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -9e-137)
(+ x (/ y (* z -3.0)))
(if (<= y 9.5e-117)
(* (/ t y) (/ 0.3333333333333333 z))
(- x (* 0.3333333333333333 (/ y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e-137) {
tmp = x + (y / (z * -3.0));
} else if (y <= 9.5e-117) {
tmp = (t / 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 (y <= (-9d-137)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 9.5d-117) then
tmp = (t / 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 (y <= -9e-137) {
tmp = x + (y / (z * -3.0));
} else if (y <= 9.5e-117) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = x - (0.3333333333333333 * (y / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9e-137: tmp = x + (y / (z * -3.0)) elif y <= 9.5e-117: tmp = (t / y) * (0.3333333333333333 / z) else: tmp = x - (0.3333333333333333 * (y / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9e-137) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 9.5e-117) tmp = Float64(Float64(t / 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 (y <= -9e-137) tmp = x + (y / (z * -3.0)); elseif (y <= 9.5e-117) tmp = (t / y) * (0.3333333333333333 / z); else tmp = x - (0.3333333333333333 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9e-137], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-117], N[(N[(t / 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}\;y \leq -9 \cdot 10^{-137}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if y < -8.9999999999999994e-137Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -8.9999999999999994e-137 < y < 9.5000000000000004e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
div-inv79.3%
*-commutative79.3%
associate-*l*77.5%
div-inv77.5%
Applied egg-rr77.5%
if 9.5000000000000004e-117 < y Initial program 98.6%
Taylor expanded in t around 0 90.3%
Final simplification81.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.3e-136)
(+ x (/ y (* z -3.0)))
(if (<= y 1e-116)
(* (/ t y) (/ 0.3333333333333333 z))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.3e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1e-116) {
tmp = (t / y) * (0.3333333333333333 / 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.3d-136)) then
tmp = x + (y / (z * (-3.0d0)))
else if (y <= 1d-116) then
tmp = (t / y) * (0.3333333333333333d0 / 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.3e-136) {
tmp = x + (y / (z * -3.0));
} else if (y <= 1e-116) {
tmp = (t / y) * (0.3333333333333333 / z);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.3e-136: tmp = x + (y / (z * -3.0)) elif y <= 1e-116: tmp = (t / y) * (0.3333333333333333 / z) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.3e-136) tmp = Float64(x + Float64(y / Float64(z * -3.0))); elseif (y <= 1e-116) tmp = Float64(Float64(t / y) * Float64(0.3333333333333333 / 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.3e-136) tmp = x + (y / (z * -3.0)); elseif (y <= 1e-116) tmp = (t / y) * (0.3333333333333333 / z); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.3e-136], N[(x + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-116], N[(N[(t / y), $MachinePrecision] * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-136}:\\
\;\;\;\;x + \frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq 10^{-116}:\\
\;\;\;\;\frac{t}{y} \cdot \frac{0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.29999999999999998e-136Initial program 98.5%
sub-neg98.5%
associate-+l+98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
sub-neg98.5%
distribute-frac-neg98.5%
neg-mul-198.5%
*-commutative98.5%
associate-/l*98.5%
*-commutative98.5%
neg-mul-198.5%
times-frac98.4%
distribute-lft-out--98.4%
*-commutative98.4%
associate-/r*98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
metadata-eval76.4%
times-frac76.4%
*-rgt-identity76.4%
Simplified76.4%
if -1.29999999999999998e-136 < y < 9.9999999999999999e-117Initial program 90.9%
sub-neg90.9%
associate-+l+90.9%
distribute-frac-neg90.9%
neg-mul-190.9%
*-commutative90.9%
times-frac90.9%
fma-define90.9%
metadata-eval90.9%
associate-*l*90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in y around 0 94.8%
Taylor expanded in t around inf 79.3%
associate-*r/79.3%
*-commutative79.3%
associate-/l*79.3%
Simplified79.3%
div-inv79.3%
*-commutative79.3%
associate-*l*77.5%
div-inv77.5%
Applied egg-rr77.5%
if 9.9999999999999999e-117 < y Initial program 98.6%
sub-neg98.6%
associate-+l+98.6%
remove-double-neg98.6%
distribute-frac-neg98.6%
sub-neg98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.6%
*-commutative98.6%
neg-mul-198.6%
times-frac98.6%
distribute-lft-out--99.8%
*-commutative99.8%
associate-/r*99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf 90.2%
Final simplification81.5%
(FPCore (x y z t) :precision binary64 (if (<= x -1e+67) x (if (<= x 4.5e-57) (* -0.3333333333333333 (/ 1.0 (/ z y))) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1e+67) {
tmp = x;
} else if (x <= 4.5e-57) {
tmp = -0.3333333333333333 * (1.0 / (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 <= (-1d+67)) then
tmp = x
else if (x <= 4.5d-57) then
tmp = (-0.3333333333333333d0) * (1.0d0 / (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 <= -1e+67) {
tmp = x;
} else if (x <= 4.5e-57) {
tmp = -0.3333333333333333 * (1.0 / (z / y));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1e+67: tmp = x elif x <= 4.5e-57: tmp = -0.3333333333333333 * (1.0 / (z / y)) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1e+67) tmp = x; elseif (x <= 4.5e-57) tmp = Float64(-0.3333333333333333 * Float64(1.0 / Float64(z / y))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1e+67) tmp = x; elseif (x <= 4.5e-57) tmp = -0.3333333333333333 * (1.0 / (z / y)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1e+67], x, If[LessEqual[x, 4.5e-57], N[(-0.3333333333333333 * N[(1.0 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+67}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-57}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{1}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -9.99999999999999983e66 or 4.49999999999999973e-57 < x Initial program 95.1%
sub-neg95.1%
associate-+l+95.1%
distribute-frac-neg95.1%
neg-mul-195.1%
*-commutative95.1%
times-frac95.1%
fma-define95.1%
metadata-eval95.1%
associate-*l*95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in x around inf 53.9%
if -9.99999999999999983e66 < x < 4.49999999999999973e-57Initial program 96.2%
Taylor expanded in t around 0 50.0%
clear-num50.0%
un-div-inv50.0%
Applied egg-rr50.0%
Taylor expanded in x around 0 40.7%
clear-num40.7%
inv-pow40.7%
Applied egg-rr40.7%
unpow-140.7%
Simplified40.7%
(FPCore (x y z t) :precision binary64 (if (<= x -2.2e+62) x (if (<= x 1.22e-61) (* -0.3333333333333333 (/ y z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2.2e+62) {
tmp = x;
} else if (x <= 1.22e-61) {
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 <= (-2.2d+62)) then
tmp = x
else if (x <= 1.22d-61) 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 <= -2.2e+62) {
tmp = x;
} else if (x <= 1.22e-61) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2.2e+62: tmp = x elif x <= 1.22e-61: tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2.2e+62) tmp = x; elseif (x <= 1.22e-61) 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 <= -2.2e+62) tmp = x; elseif (x <= 1.22e-61) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2.2e+62], x, If[LessEqual[x, 1.22e-61], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+62}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-61}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.20000000000000015e62 or 1.22e-61 < x Initial program 95.1%
sub-neg95.1%
associate-+l+95.1%
distribute-frac-neg95.1%
neg-mul-195.1%
*-commutative95.1%
times-frac95.1%
fma-define95.1%
metadata-eval95.1%
associate-*l*95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in x around inf 53.9%
if -2.20000000000000015e62 < x < 1.22e-61Initial program 96.2%
Taylor expanded in t around 0 50.0%
clear-num50.0%
un-div-inv50.0%
Applied egg-rr50.0%
Taylor expanded in x around 0 40.7%
(FPCore (x y z t) :precision binary64 (+ x (* -0.3333333333333333 (/ (- y (/ t y)) z))))
double code(double x, double y, double z, double t) {
return x + (-0.3333333333333333 * ((y - (t / y)) / 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 + ((-0.3333333333333333d0) * ((y - (t / y)) / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (-0.3333333333333333 * ((y - (t / y)) / z));
}
def code(x, y, z, t): return x + (-0.3333333333333333 * ((y - (t / y)) / z))
function code(x, y, z, t) return Float64(x + Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z))) end
function tmp = code(x, y, z, t) tmp = x + (-0.3333333333333333 * ((y - (t / y)) / z)); end
code[x_, y_, z_, t_] := N[(x + N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + -0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}
\end{array}
Initial program 95.7%
sub-neg95.7%
associate-+l+95.7%
remove-double-neg95.7%
distribute-frac-neg95.7%
sub-neg95.7%
distribute-frac-neg95.7%
neg-mul-195.7%
*-commutative95.7%
associate-/l*95.6%
*-commutative95.6%
neg-mul-195.6%
times-frac96.1%
distribute-lft-out--96.5%
*-commutative96.5%
associate-/r*96.4%
metadata-eval96.4%
Simplified96.4%
Taylor expanded in z around 0 96.5%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 95.7%
sub-neg95.7%
associate-+l+95.7%
distribute-frac-neg95.7%
neg-mul-195.7%
*-commutative95.7%
times-frac95.7%
fma-define95.7%
metadata-eval95.7%
associate-*l*95.7%
*-commutative95.7%
Simplified95.7%
Taylor expanded in x around inf 31.6%
(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 2024170
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(! :herbie-platform default (+ (- x (/ y (* z 3))) (/ (/ t (* z 3)) y)))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))