
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 1e-179) (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)) (+ (- x (/ (/ y z) 3.0)) (/ t (* (* z 3.0) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 1e-179) {
tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
} else {
tmp = (x - ((y / z) / 3.0)) + (t / ((z * 3.0) * 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-179) then
tmp = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
else
tmp = (x - ((y / z) / 3.0d0)) + (t / ((z * 3.0d0) * 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-179) {
tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
} else {
tmp = (x - ((y / z) / 3.0)) + (t / ((z * 3.0) * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 1e-179: tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y) else: tmp = (x - ((y / z) / 3.0)) + (t / ((z * 3.0) * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 1e-179) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)); else tmp = Float64(Float64(x - Float64(Float64(y / z) / 3.0)) + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 1e-179) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); else tmp = (x - ((y / z) / 3.0)) + (t / ((z * 3.0) * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e-179], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(N[(y / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 10^{-179}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{\frac{y}{z}}{3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1e-179Initial program 94.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.2%
Applied egg-rr99.2%
if 1e-179 < (*.f64 z #s(literal 3 binary64)) Initial program 99.7%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6499.8%
Applied egg-rr99.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (/ y (* z 3.0)))))
(if (<= (* z 3.0) -2e+142)
t_1
(if (<= (* z 3.0) 5e+47)
(* (/ 0.3333333333333333 z) (- (/ t y) y))
t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if ((z * 3.0) <= -2e+142) {
tmp = t_1;
} else if ((z * 3.0) <= 5e+47) {
tmp = (0.3333333333333333 / z) * ((t / y) - y);
} 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 = x - (y / (z * 3.0d0))
if ((z * 3.0d0) <= (-2d+142)) then
tmp = t_1
else if ((z * 3.0d0) <= 5d+47) then
tmp = (0.3333333333333333d0 / z) * ((t / y) - y)
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 = x - (y / (z * 3.0));
double tmp;
if ((z * 3.0) <= -2e+142) {
tmp = t_1;
} else if ((z * 3.0) <= 5e+47) {
tmp = (0.3333333333333333 / z) * ((t / y) - y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y / (z * 3.0)) tmp = 0 if (z * 3.0) <= -2e+142: tmp = t_1 elif (z * 3.0) <= 5e+47: tmp = (0.3333333333333333 / z) * ((t / y) - y) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y / Float64(z * 3.0))) tmp = 0.0 if (Float64(z * 3.0) <= -2e+142) tmp = t_1; elseif (Float64(z * 3.0) <= 5e+47) tmp = Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y / (z * 3.0)); tmp = 0.0; if ((z * 3.0) <= -2e+142) tmp = t_1; elseif ((z * 3.0) <= 5e+47) tmp = (0.3333333333333333 / z) * ((t / y) - y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * 3.0), $MachinePrecision], -2e+142], t$95$1, If[LessEqual[N[(z * 3.0), $MachinePrecision], 5e+47], N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{z \cdot 3}\\
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \cdot 3 \leq 5 \cdot 10^{+47}:\\
\;\;\;\;\frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < -2.0000000000000001e142 or 5.00000000000000022e47 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6491.1%
Applied egg-rr91.1%
Taylor expanded in y around inf
Simplified79.9%
if -2.0000000000000001e142 < (*.f64 z #s(literal 3 binary64)) < 5.00000000000000022e47Initial program 95.1%
Taylor expanded in x around 0
associate-*r/N/A
*-commutativeN/A
times-fracN/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
associate-*r/N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f6488.0%
Simplified88.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (/ y (* z 3.0)))))
(if (<= (* z 3.0) 1e-179)
(+ t_1 (/ (/ t (* z 3.0)) y))
(+ t_1 (/ t (* (* z 3.0) y))))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if ((z * 3.0) <= 1e-179) {
tmp = t_1 + ((t / (z * 3.0)) / y);
} else {
tmp = t_1 + (t / ((z * 3.0) * 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) :: t_1
real(8) :: tmp
t_1 = x - (y / (z * 3.0d0))
if ((z * 3.0d0) <= 1d-179) then
tmp = t_1 + ((t / (z * 3.0d0)) / y)
else
tmp = t_1 + (t / ((z * 3.0d0) * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if ((z * 3.0) <= 1e-179) {
tmp = t_1 + ((t / (z * 3.0)) / y);
} else {
tmp = t_1 + (t / ((z * 3.0) * y));
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y / (z * 3.0)) tmp = 0 if (z * 3.0) <= 1e-179: tmp = t_1 + ((t / (z * 3.0)) / y) else: tmp = t_1 + (t / ((z * 3.0) * y)) return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y / Float64(z * 3.0))) tmp = 0.0 if (Float64(z * 3.0) <= 1e-179) tmp = Float64(t_1 + Float64(Float64(t / Float64(z * 3.0)) / y)); else tmp = Float64(t_1 + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y / (z * 3.0)); tmp = 0.0; if ((z * 3.0) <= 1e-179) tmp = t_1 + ((t / (z * 3.0)) / y); else tmp = t_1 + (t / ((z * 3.0) * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e-179], N[(t$95$1 + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{z \cdot 3}\\
\mathbf{if}\;z \cdot 3 \leq 10^{-179}:\\
\;\;\;\;t\_1 + \frac{\frac{t}{z \cdot 3}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1e-179Initial program 94.9%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.2%
Applied egg-rr99.2%
if 1e-179 < (*.f64 z #s(literal 3 binary64)) Initial program 99.7%
(FPCore (x y z t) :precision binary64 (if (<= t -1.15e+48) (+ (- x (/ y (* z 3.0))) (/ t (* 3.0 (* z y)))) (- x (/ (- y (/ t y)) (* z 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.15e+48) {
tmp = (x - (y / (z * 3.0))) + (t / (3.0 * (z * y)));
} else {
tmp = x - ((y - (t / 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 <= (-1.15d+48)) then
tmp = (x - (y / (z * 3.0d0))) + (t / (3.0d0 * (z * y)))
else
tmp = x - ((y - (t / 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 <= -1.15e+48) {
tmp = (x - (y / (z * 3.0))) + (t / (3.0 * (z * y)));
} else {
tmp = x - ((y - (t / y)) / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.15e+48: tmp = (x - (y / (z * 3.0))) + (t / (3.0 * (z * y))) else: tmp = x - ((y - (t / y)) / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.15e+48) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(3.0 * Float64(z * y)))); else tmp = Float64(x - Float64(Float64(y - Float64(t / y)) / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.15e+48) tmp = (x - (y / (z * 3.0))) + (t / (3.0 * (z * y))); else tmp = x - ((y - (t / y)) / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.15e+48], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(3.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+48}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{3 \cdot \left(z \cdot y\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y - \frac{t}{y}}{z \cdot 3}\\
\end{array}
\end{array}
if t < -1.15e48Initial program 99.7%
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.8%
Applied egg-rr99.8%
if -1.15e48 < t Initial program 96.1%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Final simplification99.0%
(FPCore (x y z t) :precision binary64 (if (<= t -2.4e+47) (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))) (- x (/ (- y (/ t y)) (* z 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -2.4e+47) {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
} else {
tmp = x - ((y - (t / 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 <= (-2.4d+47)) then
tmp = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
else
tmp = x - ((y - (t / 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 <= -2.4e+47) {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
} else {
tmp = x - ((y - (t / y)) / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -2.4e+47: tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)) else: tmp = x - ((y - (t / y)) / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -2.4e+47) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); else tmp = Float64(x - Float64(Float64(y - Float64(t / y)) / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -2.4e+47) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); else tmp = x - ((y - (t / y)) / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -2.4e+47], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+47}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y - \frac{t}{y}}{z \cdot 3}\\
\end{array}
\end{array}
if t < -2.40000000000000019e47Initial program 99.7%
if -2.40000000000000019e47 < t Initial program 96.1%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
(FPCore (x y z t) :precision binary64 (if (<= t -3e+59) (+ (- x (/ y (* z 3.0))) (* t (/ (/ 0.3333333333333333 z) y))) (- x (/ (- y (/ t y)) (* z 3.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3e+59) {
tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y));
} else {
tmp = x - ((y - (t / 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 <= (-3d+59)) then
tmp = (x - (y / (z * 3.0d0))) + (t * ((0.3333333333333333d0 / z) / y))
else
tmp = x - ((y - (t / 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 <= -3e+59) {
tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y));
} else {
tmp = x - ((y - (t / y)) / (z * 3.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -3e+59: tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y)) else: tmp = x - ((y - (t / y)) / (z * 3.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -3e+59) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t * Float64(Float64(0.3333333333333333 / z) / y))); else tmp = Float64(x - Float64(Float64(y - Float64(t / y)) / Float64(z * 3.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -3e+59) tmp = (x - (y / (z * 3.0))) + (t * ((0.3333333333333333 / z) / y)); else tmp = x - ((y - (t / y)) / (z * 3.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -3e+59], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+59}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + t \cdot \frac{\frac{0.3333333333333333}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y - \frac{t}{y}}{z \cdot 3}\\
\end{array}
\end{array}
if t < -3e59Initial program 99.7%
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
metadata-eval99.7%
Applied egg-rr99.7%
if -3e59 < t Initial program 96.2%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Final simplification99.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (/ y (* z 3.0)))))
(if (<= y -1.7e+16)
t_1
(if (<= y 0.0032) (+ x (/ (/ t (* z 3.0)) y)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if (y <= -1.7e+16) {
tmp = t_1;
} else if (y <= 0.0032) {
tmp = x + ((t / (z * 3.0)) / y);
} 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 = x - (y / (z * 3.0d0))
if (y <= (-1.7d+16)) then
tmp = t_1
else if (y <= 0.0032d0) then
tmp = x + ((t / (z * 3.0d0)) / y)
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 = x - (y / (z * 3.0));
double tmp;
if (y <= -1.7e+16) {
tmp = t_1;
} else if (y <= 0.0032) {
tmp = x + ((t / (z * 3.0)) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y / (z * 3.0)) tmp = 0 if y <= -1.7e+16: tmp = t_1 elif y <= 0.0032: tmp = x + ((t / (z * 3.0)) / y) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y / Float64(z * 3.0))) tmp = 0.0 if (y <= -1.7e+16) tmp = t_1; elseif (y <= 0.0032) tmp = Float64(x + Float64(Float64(t / Float64(z * 3.0)) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y / (z * 3.0)); tmp = 0.0; if (y <= -1.7e+16) tmp = t_1; elseif (y <= 0.0032) tmp = x + ((t / (z * 3.0)) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+16], t$95$1, If[LessEqual[y, 0.0032], N[(x + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{z \cdot 3}\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.0032:\\
\;\;\;\;x + \frac{\frac{t}{z \cdot 3}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7e16 or 0.00320000000000000015 < y Initial program 99.7%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in y around inf
Simplified94.0%
if -1.7e16 < y < 0.00320000000000000015Initial program 94.3%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.4%
Applied egg-rr98.4%
Taylor expanded in x around inf
Simplified92.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (/ y (* z 3.0)))))
(if (<= y -9.6e+14)
t_1
(if (<= y 0.0115) (+ x (/ t (* (* z 3.0) y))) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y / (z * 3.0));
double tmp;
if (y <= -9.6e+14) {
tmp = t_1;
} else if (y <= 0.0115) {
tmp = x + (t / ((z * 3.0) * y));
} 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 = x - (y / (z * 3.0d0))
if (y <= (-9.6d+14)) then
tmp = t_1
else if (y <= 0.0115d0) then
tmp = x + (t / ((z * 3.0d0) * y))
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 = x - (y / (z * 3.0));
double tmp;
if (y <= -9.6e+14) {
tmp = t_1;
} else if (y <= 0.0115) {
tmp = x + (t / ((z * 3.0) * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y / (z * 3.0)) tmp = 0 if y <= -9.6e+14: tmp = t_1 elif y <= 0.0115: tmp = x + (t / ((z * 3.0) * y)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y / Float64(z * 3.0))) tmp = 0.0 if (y <= -9.6e+14) tmp = t_1; elseif (y <= 0.0115) tmp = Float64(x + Float64(t / Float64(Float64(z * 3.0) * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y / (z * 3.0)); tmp = 0.0; if (y <= -9.6e+14) tmp = t_1; elseif (y <= 0.0115) tmp = x + (t / ((z * 3.0) * y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.6e+14], t$95$1, If[LessEqual[y, 0.0115], N[(x + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{z \cdot 3}\\
\mathbf{if}\;y \leq -9.6 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.0115:\\
\;\;\;\;x + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.6e14 or 0.0115 < y Initial program 99.7%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in y around inf
Simplified94.0%
if -9.6e14 < y < 0.0115Initial program 94.3%
Taylor expanded in x around inf
Simplified89.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.55e-81)
(- x (/ y (* z 3.0)))
(if (<= y 1.1e-84)
(/ (/ (/ t z) 3.0) y)
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.55e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 1.1e-84) {
tmp = ((t / z) / 3.0) / y;
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.55d-81)) then
tmp = x - (y / (z * 3.0d0))
else if (y <= 1.1d-84) then
tmp = ((t / z) / 3.0d0) / y
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.55e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 1.1e-84) {
tmp = ((t / z) / 3.0) / y;
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.55e-81: tmp = x - (y / (z * 3.0)) elif y <= 1.1e-84: tmp = ((t / z) / 3.0) / y else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.55e-81) tmp = Float64(x - Float64(y / Float64(z * 3.0))); elseif (y <= 1.1e-84) tmp = Float64(Float64(Float64(t / z) / 3.0) / 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 <= -1.55e-81) tmp = x - (y / (z * 3.0)); elseif (y <= 1.1e-84) tmp = ((t / z) / 3.0) / y; else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.55e-81], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-84], N[(N[(N[(t / z), $MachinePrecision] / 3.0), $MachinePrecision] / y), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-81}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-84}:\\
\;\;\;\;\frac{\frac{\frac{t}{z}}{3}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.54999999999999994e-81Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Taylor expanded in y around inf
Simplified79.3%
if -1.54999999999999994e-81 < y < 1.0999999999999999e-84Initial program 92.6%
Taylor expanded in y around 0
associate-/l/N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.8%
Simplified67.8%
associate-/l*N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6467.9%
Applied egg-rr67.9%
if 1.0999999999999999e-84 < y Initial program 98.5%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified88.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.7e-81)
(- x (/ y (* z 3.0)))
(if (<= y 3.5e-84)
(/ (/ t (/ z 0.3333333333333333)) y)
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.7e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 3.5e-84) {
tmp = (t / (z / 0.3333333333333333)) / y;
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.7d-81)) then
tmp = x - (y / (z * 3.0d0))
else if (y <= 3.5d-84) then
tmp = (t / (z / 0.3333333333333333d0)) / y
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.7e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 3.5e-84) {
tmp = (t / (z / 0.3333333333333333)) / y;
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.7e-81: tmp = x - (y / (z * 3.0)) elif y <= 3.5e-84: tmp = (t / (z / 0.3333333333333333)) / y else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.7e-81) tmp = Float64(x - Float64(y / Float64(z * 3.0))); elseif (y <= 3.5e-84) tmp = Float64(Float64(t / Float64(z / 0.3333333333333333)) / 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 <= -1.7e-81) tmp = x - (y / (z * 3.0)); elseif (y <= 3.5e-84) tmp = (t / (z / 0.3333333333333333)) / y; else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.7e-81], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e-84], N[(N[(t / N[(z / 0.3333333333333333), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{-81}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-84}:\\
\;\;\;\;\frac{\frac{t}{\frac{z}{0.3333333333333333}}}{y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.6999999999999999e-81Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Taylor expanded in y around inf
Simplified79.3%
if -1.6999999999999999e-81 < y < 3.5000000000000001e-84Initial program 92.6%
Taylor expanded in y around 0
associate-/l/N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.8%
Simplified67.8%
associate-/l/N/A
*-commutativeN/A
times-fracN/A
metadata-evalN/A
associate-/r*N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6464.4%
Applied egg-rr64.4%
associate-/l/N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
metadata-evalN/A
div-invN/A
/-lowering-/.f6467.8%
Applied egg-rr67.8%
if 3.5000000000000001e-84 < y Initial program 98.5%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified88.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.55e-81)
(- x (/ y (* z 3.0)))
(if (<= y 4.7e-84)
(/ (/ t y) (* z 3.0))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.55e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 4.7e-84) {
tmp = (t / y) / (z * 3.0);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.55d-81)) then
tmp = x - (y / (z * 3.0d0))
else if (y <= 4.7d-84) then
tmp = (t / y) / (z * 3.0d0)
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.55e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 4.7e-84) {
tmp = (t / y) / (z * 3.0);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.55e-81: tmp = x - (y / (z * 3.0)) elif y <= 4.7e-84: tmp = (t / y) / (z * 3.0) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.55e-81) tmp = Float64(x - Float64(y / Float64(z * 3.0))); elseif (y <= 4.7e-84) tmp = Float64(Float64(t / y) / Float64(z * 3.0)); 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.55e-81) tmp = x - (y / (z * 3.0)); elseif (y <= 4.7e-84) tmp = (t / y) / (z * 3.0); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.55e-81], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e-84], N[(N[(t / y), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{-81}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{-84}:\\
\;\;\;\;\frac{\frac{t}{y}}{z \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.54999999999999994e-81Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Taylor expanded in y around inf
Simplified79.3%
if -1.54999999999999994e-81 < y < 4.7e-84Initial program 92.6%
Taylor expanded in y around 0
associate-/l/N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.8%
Simplified67.8%
associate-/l/N/A
*-commutativeN/A
times-fracN/A
metadata-evalN/A
associate-/r*N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6464.4%
Applied egg-rr64.4%
if 4.7e-84 < y Initial program 98.5%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified88.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.1e-81)
(- x (/ y (* z 3.0)))
(if (<= y 2.8e-84)
(/ t (* z (* 3.0 y)))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.1e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 2.8e-84) {
tmp = t / (z * (3.0 * y));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.1d-81)) then
tmp = x - (y / (z * 3.0d0))
else if (y <= 2.8d-84) then
tmp = t / (z * (3.0d0 * y))
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.1e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 2.8e-84) {
tmp = t / (z * (3.0 * y));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.1e-81: tmp = x - (y / (z * 3.0)) elif y <= 2.8e-84: tmp = t / (z * (3.0 * y)) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.1e-81) tmp = Float64(x - Float64(y / Float64(z * 3.0))); elseif (y <= 2.8e-84) tmp = Float64(t / Float64(z * Float64(3.0 * 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.1e-81) tmp = x - (y / (z * 3.0)); elseif (y <= 2.8e-84) tmp = t / (z * (3.0 * y)); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.1e-81], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-84], N[(t / N[(z * N[(3.0 * 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.1 \cdot 10^{-81}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-84}:\\
\;\;\;\;\frac{t}{z \cdot \left(3 \cdot y\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.0999999999999999e-81Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Taylor expanded in y around inf
Simplified79.3%
if -2.0999999999999999e-81 < y < 2.79999999999999982e-84Initial program 92.6%
Taylor expanded in y around 0
associate-/l/N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.8%
Simplified67.8%
associate-/r*N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
associate-/r*N/A
*-commutativeN/A
div-invN/A
*-commutativeN/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6463.7%
Applied egg-rr63.7%
div-invN/A
*-commutativeN/A
associate-/r*N/A
times-fracN/A
*-commutativeN/A
div-invN/A
associate-/l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.9%
Applied egg-rr63.9%
if 2.79999999999999982e-84 < y Initial program 98.5%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified88.6%
Final simplification76.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.75e-81)
(- x (/ y (* z 3.0)))
(if (<= y 1.45e-84)
(/ t (* (* z 3.0) y))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.75e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 1.45e-84) {
tmp = t / ((z * 3.0) * y);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.75d-81)) then
tmp = x - (y / (z * 3.0d0))
else if (y <= 1.45d-84) then
tmp = t / ((z * 3.0d0) * y)
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.75e-81) {
tmp = x - (y / (z * 3.0));
} else if (y <= 1.45e-84) {
tmp = t / ((z * 3.0) * y);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.75e-81: tmp = x - (y / (z * 3.0)) elif y <= 1.45e-84: tmp = t / ((z * 3.0) * y) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.75e-81) tmp = Float64(x - Float64(y / Float64(z * 3.0))); elseif (y <= 1.45e-84) tmp = Float64(t / Float64(Float64(z * 3.0) * 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 <= -1.75e-81) tmp = x - (y / (z * 3.0)); elseif (y <= 1.45e-84) tmp = t / ((z * 3.0) * y); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.75e-81], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e-84], N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{-81}:\\
\;\;\;\;x - \frac{y}{z \cdot 3}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-84}:\\
\;\;\;\;\frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -1.74999999999999993e-81Initial program 99.8%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.8%
Applied egg-rr98.8%
Taylor expanded in y around inf
Simplified79.3%
if -1.74999999999999993e-81 < y < 1.4500000000000001e-84Initial program 92.6%
Taylor expanded in y around 0
associate-/l/N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6467.8%
Simplified67.8%
associate-/r*N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
associate-/r*N/A
*-commutativeN/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.9%
Applied egg-rr63.9%
if 1.4500000000000001e-84 < y Initial program 98.5%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified88.6%
Final simplification76.6%
(FPCore (x y z t) :precision binary64 (if (<= y -2.8e+143) (/ (/ y -3.0) z) (if (<= y 0.85) x (/ (* y -0.3333333333333333) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.8e+143) {
tmp = (y / -3.0) / z;
} else if (y <= 0.85) {
tmp = x;
} else {
tmp = (y * -0.3333333333333333) / z;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.8d+143)) then
tmp = (y / (-3.0d0)) / z
else if (y <= 0.85d0) then
tmp = x
else
tmp = (y * (-0.3333333333333333d0)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.8e+143) {
tmp = (y / -3.0) / z;
} else if (y <= 0.85) {
tmp = x;
} else {
tmp = (y * -0.3333333333333333) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.8e+143: tmp = (y / -3.0) / z elif y <= 0.85: tmp = x else: tmp = (y * -0.3333333333333333) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.8e+143) tmp = Float64(Float64(y / -3.0) / z); elseif (y <= 0.85) tmp = x; else tmp = Float64(Float64(y * -0.3333333333333333) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.8e+143) tmp = (y / -3.0) / z; elseif (y <= 0.85) tmp = x; else tmp = (y * -0.3333333333333333) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.8e+143], N[(N[(y / -3.0), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 0.85], x, N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+143}:\\
\;\;\;\;\frac{\frac{y}{-3}}{z}\\
\mathbf{elif}\;y \leq 0.85:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.79999999999999998e143Initial program 99.8%
Taylor expanded in y around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6485.8%
Simplified85.8%
clear-numN/A
div-invN/A
metadata-evalN/A
metadata-evalN/A
distribute-rgt-neg-inN/A
associate-*r/N/A
distribute-rgt-neg-inN/A
times-fracN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
/-lowering-/.f6485.9%
Applied egg-rr85.9%
associate-*l/N/A
/-lowering-/.f64N/A
metadata-evalN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
div-invN/A
frac-2negN/A
remove-double-negN/A
/-lowering-/.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -2.79999999999999998e143 < y < 0.849999999999999978Initial program 95.3%
Taylor expanded in x around inf
Simplified36.7%
if 0.849999999999999978 < y Initial program 99.7%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.0%
Applied egg-rr98.0%
Taylor expanded in y around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6473.0%
Simplified73.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ (* y -0.3333333333333333) z))) (if (<= y -2.7e+143) t_1 (if (<= y 2.05) x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (y * -0.3333333333333333) / z;
double tmp;
if (y <= -2.7e+143) {
tmp = t_1;
} else if (y <= 2.05) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (y * (-0.3333333333333333d0)) / z
if (y <= (-2.7d+143)) then
tmp = t_1
else if (y <= 2.05d0) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y * -0.3333333333333333) / z;
double tmp;
if (y <= -2.7e+143) {
tmp = t_1;
} else if (y <= 2.05) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y * -0.3333333333333333) / z tmp = 0 if y <= -2.7e+143: tmp = t_1 elif y <= 2.05: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y * -0.3333333333333333) / z) tmp = 0.0 if (y <= -2.7e+143) tmp = t_1; elseif (y <= 2.05) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y * -0.3333333333333333) / z; tmp = 0.0; if (y <= -2.7e+143) tmp = t_1; elseif (y <= 2.05) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[y, -2.7e+143], t$95$1, If[LessEqual[y, 2.05], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot -0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.05:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.7000000000000002e143 or 2.0499999999999998 < y Initial program 99.8%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6497.6%
Applied egg-rr97.6%
Taylor expanded in y around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6478.2%
Simplified78.2%
if -2.7000000000000002e143 < y < 2.0499999999999998Initial program 95.3%
Taylor expanded in x around inf
Simplified36.7%
(FPCore (x y z t) :precision binary64 (if (<= y -8e+120) (* (/ y z) -0.3333333333333333) (if (<= y 1.25) x (/ -0.3333333333333333 (/ z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e+120) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 1.25) {
tmp = x;
} else {
tmp = -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 (y <= (-8d+120)) then
tmp = (y / z) * (-0.3333333333333333d0)
else if (y <= 1.25d0) then
tmp = x
else
tmp = (-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 (y <= -8e+120) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 1.25) {
tmp = x;
} else {
tmp = -0.3333333333333333 / (z / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8e+120: tmp = (y / z) * -0.3333333333333333 elif y <= 1.25: tmp = x else: tmp = -0.3333333333333333 / (z / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8e+120) tmp = Float64(Float64(y / z) * -0.3333333333333333); elseif (y <= 1.25) tmp = x; else tmp = Float64(-0.3333333333333333 / Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8e+120) tmp = (y / z) * -0.3333333333333333; elseif (y <= 1.25) tmp = x; else tmp = -0.3333333333333333 / (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e+120], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], If[LessEqual[y, 1.25], x, N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+120}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 1.25:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\end{array}
\end{array}
if y < -7.9999999999999998e120Initial program 99.8%
Taylor expanded in y around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6484.1%
Simplified84.1%
clear-numN/A
div-invN/A
metadata-evalN/A
metadata-evalN/A
distribute-rgt-neg-inN/A
associate-*r/N/A
distribute-rgt-neg-inN/A
times-fracN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
/-lowering-/.f6484.2%
Applied egg-rr84.2%
if -7.9999999999999998e120 < y < 1.25Initial program 95.2%
Taylor expanded in x around inf
Simplified36.5%
if 1.25 < y Initial program 99.7%
Taylor expanded in y around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6472.7%
Simplified72.7%
clear-numN/A
div-invN/A
metadata-evalN/A
metadata-evalN/A
distribute-rgt-neg-inN/A
associate-*r/N/A
distribute-rgt-neg-inN/A
times-fracN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
/-lowering-/.f6472.8%
Applied egg-rr72.8%
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6472.8%
Applied egg-rr72.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ y z) -0.3333333333333333))) (if (<= y -2e+120) t_1 (if (<= y 2.35) x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) * -0.3333333333333333;
double tmp;
if (y <= -2e+120) {
tmp = t_1;
} else if (y <= 2.35) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (y / z) * (-0.3333333333333333d0)
if (y <= (-2d+120)) then
tmp = t_1
else if (y <= 2.35d0) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y / z) * -0.3333333333333333;
double tmp;
if (y <= -2e+120) {
tmp = t_1;
} else if (y <= 2.35) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) * -0.3333333333333333 tmp = 0 if y <= -2e+120: tmp = t_1 elif y <= 2.35: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / z) * -0.3333333333333333) tmp = 0.0 if (y <= -2e+120) tmp = t_1; elseif (y <= 2.35) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / z) * -0.3333333333333333; tmp = 0.0; if (y <= -2e+120) tmp = t_1; elseif (y <= 2.35) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]}, If[LessEqual[y, -2e+120], t$95$1, If[LessEqual[y, 2.35], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{if}\;y \leq -2 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.35:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2e120 or 2.35000000000000009 < y Initial program 99.8%
Taylor expanded in y around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6477.4%
Simplified77.4%
clear-numN/A
div-invN/A
metadata-evalN/A
metadata-evalN/A
distribute-rgt-neg-inN/A
associate-*r/N/A
distribute-rgt-neg-inN/A
times-fracN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
/-lowering-/.f6477.5%
Applied egg-rr77.5%
if -2e120 < y < 2.35000000000000009Initial program 95.2%
Taylor expanded in x around inf
Simplified36.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* y (/ -0.3333333333333333 z)))) (if (<= y -2.35e+120) t_1 (if (<= y 1.56) x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = y * (-0.3333333333333333 / z);
double tmp;
if (y <= -2.35e+120) {
tmp = t_1;
} else if (y <= 1.56) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((-0.3333333333333333d0) / z)
if (y <= (-2.35d+120)) then
tmp = t_1
else if (y <= 1.56d0) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (-0.3333333333333333 / z);
double tmp;
if (y <= -2.35e+120) {
tmp = t_1;
} else if (y <= 1.56) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (-0.3333333333333333 / z) tmp = 0 if y <= -2.35e+120: tmp = t_1 elif y <= 1.56: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(-0.3333333333333333 / z)) tmp = 0.0 if (y <= -2.35e+120) tmp = t_1; elseif (y <= 1.56) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (-0.3333333333333333 / z); tmp = 0.0; if (y <= -2.35e+120) tmp = t_1; elseif (y <= 1.56) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.35e+120], t$95$1, If[LessEqual[y, 1.56], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{if}\;y \leq -2.35 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.56:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.34999999999999997e120 or 1.5600000000000001 < y Initial program 99.8%
Taylor expanded in y around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6477.4%
Simplified77.4%
if -2.34999999999999997e120 < y < 1.5600000000000001Initial program 95.2%
Taylor expanded in x around inf
Simplified36.5%
(FPCore (x y z t) :precision binary64 (- x (/ (- y (/ t y)) (* z 3.0))))
double code(double x, double y, double z, double t) {
return x - ((y - (t / y)) / (z * 3.0));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x - ((y - (t / y)) / (z * 3.0d0))
end function
public static double code(double x, double y, double z, double t) {
return x - ((y - (t / y)) / (z * 3.0));
}
def code(x, y, z, t): return x - ((y - (t / y)) / (z * 3.0))
function code(x, y, z, t) return Float64(x - Float64(Float64(y - Float64(t / y)) / Float64(z * 3.0))) end
function tmp = code(x, y, z, t) tmp = x - ((y - (t / y)) / (z * 3.0)); end
code[x_, y_, z_, t_] := N[(x - N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - \frac{t}{y}}{z \cdot 3}
\end{array}
Initial program 96.9%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6496.1%
Applied egg-rr96.1%
(FPCore (x y z t) :precision binary64 (- x (/ y (* z 3.0))))
double code(double x, double y, double z, double t) {
return x - (y / (z * 3.0));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x - (y / (z * 3.0d0))
end function
public static double code(double x, double y, double z, double t) {
return x - (y / (z * 3.0));
}
def code(x, y, z, t): return x - (y / (z * 3.0))
function code(x, y, z, t) return Float64(x - Float64(y / Float64(z * 3.0))) end
function tmp = code(x, y, z, t) tmp = x - (y / (z * 3.0)); end
code[x_, y_, z_, t_] := N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y}{z \cdot 3}
\end{array}
Initial program 96.9%
associate-+l-N/A
--lowering--.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6496.1%
Applied egg-rr96.1%
Taylor expanded in y around inf
Simplified64.9%
(FPCore (x y z t) :precision binary64 (+ x (* y (/ -0.3333333333333333 z))))
double code(double x, double y, double z, double t) {
return x + (y * (-0.3333333333333333 / z));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (y * ((-0.3333333333333333d0) / z))
end function
public static double code(double x, double y, double z, double t) {
return x + (y * (-0.3333333333333333 / z));
}
def code(x, y, z, t): return x + (y * (-0.3333333333333333 / z))
function code(x, y, z, t) return Float64(x + Float64(y * Float64(-0.3333333333333333 / z))) end
function tmp = code(x, y, z, t) tmp = x + (y * (-0.3333333333333333 / z)); end
code[x_, y_, z_, t_] := N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{-0.3333333333333333}{z}
\end{array}
Initial program 96.9%
Taylor expanded in y around inf
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
mul-1-negN/A
*-inversesN/A
cancel-sign-subN/A
*-rgt-identityN/A
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
Simplified64.9%
(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 96.9%
Taylor expanded in x around inf
Simplified31.3%
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}
herbie shell --seed 2024192
(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))))