
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -5e+31)
(+ (- x (/ y (* z 3.0))) (pow (/ (* (* 3.0 z) y) t) -1.0))
(if (<= (* z 3.0) 1e-34)
(- x (/ (/ (- y (/ t y)) z) 3.0))
(+ (- 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) <= -5e+31) {
tmp = (x - (y / (z * 3.0))) + pow((((3.0 * z) * y) / t), -1.0);
} else if ((z * 3.0) <= 1e-34) {
tmp = x - (((y - (t / y)) / z) / 3.0);
} 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) <= (-5d+31)) then
tmp = (x - (y / (z * 3.0d0))) + ((((3.0d0 * z) * y) / t) ** (-1.0d0))
else if ((z * 3.0d0) <= 1d-34) then
tmp = x - (((y - (t / y)) / z) / 3.0d0)
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) <= -5e+31) {
tmp = (x - (y / (z * 3.0))) + Math.pow((((3.0 * z) * y) / t), -1.0);
} else if ((z * 3.0) <= 1e-34) {
tmp = x - (((y - (t / y)) / z) / 3.0);
} 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) <= -5e+31: tmp = (x - (y / (z * 3.0))) + math.pow((((3.0 * z) * y) / t), -1.0) elif (z * 3.0) <= 1e-34: tmp = x - (((y - (t / y)) / z) / 3.0) 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) <= -5e+31) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + (Float64(Float64(Float64(3.0 * z) * y) / t) ^ -1.0)); elseif (Float64(z * 3.0) <= 1e-34) tmp = Float64(x - Float64(Float64(Float64(y - Float64(t / y)) / z) / 3.0)); 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) <= -5e+31) tmp = (x - (y / (z * 3.0))) + ((((3.0 * z) * y) / t) ^ -1.0); elseif ((z * 3.0) <= 1e-34) tmp = x - (((y - (t / y)) / z) / 3.0); 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], -5e+31], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[Power[N[(N[(N[(3.0 * z), $MachinePrecision] * y), $MachinePrecision] / t), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e-34], N[(x - N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / 3.0), $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 -5 \cdot 10^{+31}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + {\left(\frac{\left(3 \cdot z\right) \cdot y}{t}\right)}^{-1}\\
\mathbf{elif}\;z \cdot 3 \leq 10^{-34}:\\
\;\;\;\;x - \frac{\frac{y - \frac{t}{y}}{z}}{3}\\
\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)) < -5.00000000000000027e31Initial program 99.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
if -5.00000000000000027e31 < (*.f64 z #s(literal 3 binary64)) < 9.99999999999999928e-35Initial program 88.6%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
if 9.99999999999999928e-35 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -5e+31)
(fma (/ (/ 0.3333333333333333 z) y) t (fma (/ -0.3333333333333333 z) y x))
(if (<= (* z 3.0) 1e-34)
(- x (/ (/ (- y (/ t y)) z) 3.0))
(+ (- 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) <= -5e+31) {
tmp = fma(((0.3333333333333333 / z) / y), t, fma((-0.3333333333333333 / z), y, x));
} else if ((z * 3.0) <= 1e-34) {
tmp = x - (((y - (t / y)) / z) / 3.0);
} 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) <= -5e+31) tmp = fma(Float64(Float64(0.3333333333333333 / z) / y), t, fma(Float64(-0.3333333333333333 / z), y, x)); elseif (Float64(z * 3.0) <= 1e-34) tmp = Float64(x - Float64(Float64(Float64(y - Float64(t / y)) / z) / 3.0)); else tmp = Float64(Float64(x - Float64(Float64(y / z) / 3.0)) + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -5e+31], N[(N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision] * t + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 1e-34], N[(x - N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / 3.0), $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 -5 \cdot 10^{+31}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\frac{0.3333333333333333}{z}}{y}, t, \mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\right)\\
\mathbf{elif}\;z \cdot 3 \leq 10^{-34}:\\
\;\;\;\;x - \frac{\frac{y - \frac{t}{y}}{z}}{3}\\
\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)) < -5.00000000000000027e31Initial program 99.7%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6489.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6489.6
Applied rewrites89.6%
lift--.f64N/A
lift-/.f64N/A
lift--.f64N/A
div-subN/A
lift-*.f64N/A
associate-/l/N/A
lift-/.f64N/A
lift-/.f64N/A
associate--r-N/A
lift-/.f64N/A
associate-/r*N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
lift--.f64N/A
+-commutativeN/A
Applied rewrites99.7%
if -5.00000000000000027e31 < (*.f64 z #s(literal 3 binary64)) < 9.99999999999999928e-35Initial program 88.6%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
if 9.99999999999999928e-35 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -5e+31)
(fma (/ (/ 0.3333333333333333 z) y) t (fma (/ -0.3333333333333333 z) y x))
(if (<= (* z 3.0) 1.0)
(- x (/ (/ (- y (/ t y)) z) 3.0))
(+ (- 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) <= -5e+31) {
tmp = fma(((0.3333333333333333 / z) / y), t, fma((-0.3333333333333333 / z), y, x));
} else if ((z * 3.0) <= 1.0) {
tmp = x - (((y - (t / y)) / z) / 3.0);
} 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) <= -5e+31) tmp = fma(Float64(Float64(0.3333333333333333 / z) / y), t, fma(Float64(-0.3333333333333333 / z), y, x)); elseif (Float64(z * 3.0) <= 1.0) tmp = Float64(x - Float64(Float64(Float64(y - Float64(t / y)) / z) / 3.0)); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -5e+31], N[(N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision] * t + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 1.0], N[(x - N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], 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}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -5 \cdot 10^{+31}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\frac{0.3333333333333333}{z}}{y}, t, \mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\right)\\
\mathbf{elif}\;z \cdot 3 \leq 1:\\
\;\;\;\;x - \frac{\frac{y - \frac{t}{y}}{z}}{3}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < -5.00000000000000027e31Initial program 99.7%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6489.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6489.6
Applied rewrites89.6%
lift--.f64N/A
lift-/.f64N/A
lift--.f64N/A
div-subN/A
lift-*.f64N/A
associate-/l/N/A
lift-/.f64N/A
lift-/.f64N/A
associate--r-N/A
lift-/.f64N/A
associate-/r*N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
lift--.f64N/A
+-commutativeN/A
Applied rewrites99.7%
if -5.00000000000000027e31 < (*.f64 z #s(literal 3 binary64)) < 1Initial program 89.0%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
if 1 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
(FPCore (x y z t) :precision binary64 (if (or (<= t -6e+165) (not (<= t 1.5e+19))) (fma (/ -0.3333333333333333 z) y (+ x (/ 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 <= -6e+165) || !(t <= 1.5e+19)) {
tmp = fma((-0.3333333333333333 / z), y, (x + (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 <= -6e+165) || !(t <= 1.5e+19)) tmp = fma(Float64(-0.3333333333333333 / z), y, Float64(x + Float64(t / Float64(Float64(3.0 * z) * y)))); else tmp = Float64(x - Float64(Float64(Float64(y - Float64(t / y)) / z) / 3.0)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -6e+165], N[Not[LessEqual[t, 1.5e+19]], $MachinePrecision]], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + N[(x + N[(t / N[(N[(3.0 * z), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{+165} \lor \neg \left(t \leq 1.5 \cdot 10^{+19}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x + \frac{t}{\left(3 \cdot z\right) \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{y - \frac{t}{y}}{z}}{3}\\
\end{array}
\end{array}
if t < -5.99999999999999981e165 or 1.5e19 < t Initial program 97.6%
lift-+.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate-+l+N/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
distribute-lft-neg-inN/A
distribute-frac-neg2N/A
lower-fma.f64N/A
distribute-frac-neg2N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
lower-/.f64N/A
metadata-evalN/A
metadata-evalN/A
lower-+.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
if -5.99999999999999981e165 < t < 1.5e19Initial program 92.1%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.8
Applied rewrites99.8%
Final simplification99.8%
(FPCore (x y z t)
:precision binary64
(if (<= t -2e+66)
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y)))
(if (<= t 1.5e+19)
(- x (/ (/ (- y (/ t y)) z) 3.0))
(fma (/ -0.3333333333333333 z) y (+ x (/ t (* (* 3.0 z) y)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -2e+66) {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
} else if (t <= 1.5e+19) {
tmp = x - (((y - (t / y)) / z) / 3.0);
} else {
tmp = fma((-0.3333333333333333 / z), y, (x + (t / ((3.0 * z) * y))));
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (t <= -2e+66) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); elseif (t <= 1.5e+19) tmp = Float64(x - Float64(Float64(Float64(y - Float64(t / y)) / z) / 3.0)); else tmp = fma(Float64(-0.3333333333333333 / z), y, Float64(x + Float64(t / Float64(Float64(3.0 * z) * y)))); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[t, -2e+66], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+19], N[(x - N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + N[(x + N[(t / N[(N[(3.0 * z), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+66}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+19}:\\
\;\;\;\;x - \frac{\frac{y - \frac{t}{y}}{z}}{3}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x + \frac{t}{\left(3 \cdot z\right) \cdot y}\right)\\
\end{array}
\end{array}
if t < -1.99999999999999989e66Initial program 99.8%
if -1.99999999999999989e66 < t < 1.5e19Initial program 91.4%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
if 1.5e19 < t Initial program 96.5%
lift-+.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate-+l+N/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
distribute-lft-neg-inN/A
distribute-frac-neg2N/A
lower-fma.f64N/A
distribute-frac-neg2N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
lower-/.f64N/A
metadata-evalN/A
metadata-evalN/A
lower-+.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8.5e-19) (not (<= y 1e-148))) (- x (/ (- y (/ t y)) (* 3.0 z))) (- x (/ (/ (* -0.3333333333333333 t) z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.5e-19) || !(y <= 1e-148)) {
tmp = x - ((y - (t / y)) / (3.0 * z));
} else {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-8.5d-19)) .or. (.not. (y <= 1d-148))) then
tmp = x - ((y - (t / y)) / (3.0d0 * z))
else
tmp = x - ((((-0.3333333333333333d0) * t) / z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.5e-19) || !(y <= 1e-148)) {
tmp = x - ((y - (t / y)) / (3.0 * z));
} else {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -8.5e-19) or not (y <= 1e-148): tmp = x - ((y - (t / y)) / (3.0 * z)) else: tmp = x - (((-0.3333333333333333 * t) / z) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -8.5e-19) || !(y <= 1e-148)) tmp = Float64(x - Float64(Float64(y - Float64(t / y)) / Float64(3.0 * z))); else tmp = Float64(x - Float64(Float64(Float64(-0.3333333333333333 * t) / z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -8.5e-19) || ~((y <= 1e-148))) tmp = x - ((y - (t / y)) / (3.0 * z)); else tmp = x - (((-0.3333333333333333 * t) / z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8.5e-19], N[Not[LessEqual[y, 1e-148]], $MachinePrecision]], N[(x - N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(3.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(-0.3333333333333333 * t), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-19} \lor \neg \left(y \leq 10^{-148}\right):\\
\;\;\;\;x - \frac{y - \frac{t}{y}}{3 \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{-0.3333333333333333 \cdot t}{z}}{y}\\
\end{array}
\end{array}
if y < -8.50000000000000003e-19 or 9.99999999999999936e-149 < y Initial program 96.8%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.2
Applied rewrites99.2%
if -8.50000000000000003e-19 < y < 9.99999999999999936e-149Initial program 89.4%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6487.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6487.7
Applied rewrites87.7%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6487.7
Applied rewrites87.7%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6488.9
Applied rewrites88.9%
Applied rewrites98.3%
Final simplification98.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- y (/ t y))))
(if (<= y -8.5e-19)
(- x (/ (/ t_1 z) 3.0))
(if (<= y 1e-148)
(- x (/ (/ (* -0.3333333333333333 t) z) y))
(- x (/ t_1 (* 3.0 z)))))))
double code(double x, double y, double z, double t) {
double t_1 = y - (t / y);
double tmp;
if (y <= -8.5e-19) {
tmp = x - ((t_1 / z) / 3.0);
} else if (y <= 1e-148) {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
} else {
tmp = x - (t_1 / (3.0 * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = y - (t / y)
if (y <= (-8.5d-19)) then
tmp = x - ((t_1 / z) / 3.0d0)
else if (y <= 1d-148) then
tmp = x - ((((-0.3333333333333333d0) * t) / z) / y)
else
tmp = x - (t_1 / (3.0d0 * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y - (t / y);
double tmp;
if (y <= -8.5e-19) {
tmp = x - ((t_1 / z) / 3.0);
} else if (y <= 1e-148) {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
} else {
tmp = x - (t_1 / (3.0 * z));
}
return tmp;
}
def code(x, y, z, t): t_1 = y - (t / y) tmp = 0 if y <= -8.5e-19: tmp = x - ((t_1 / z) / 3.0) elif y <= 1e-148: tmp = x - (((-0.3333333333333333 * t) / z) / y) else: tmp = x - (t_1 / (3.0 * z)) return tmp
function code(x, y, z, t) t_1 = Float64(y - Float64(t / y)) tmp = 0.0 if (y <= -8.5e-19) tmp = Float64(x - Float64(Float64(t_1 / z) / 3.0)); elseif (y <= 1e-148) tmp = Float64(x - Float64(Float64(Float64(-0.3333333333333333 * t) / z) / y)); else tmp = Float64(x - Float64(t_1 / Float64(3.0 * z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y - (t / y); tmp = 0.0; if (y <= -8.5e-19) tmp = x - ((t_1 / z) / 3.0); elseif (y <= 1e-148) tmp = x - (((-0.3333333333333333 * t) / z) / y); else tmp = x - (t_1 / (3.0 * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e-19], N[(x - N[(N[(t$95$1 / z), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-148], N[(x - N[(N[(N[(-0.3333333333333333 * t), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(t$95$1 / N[(3.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{t}{y}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{-19}:\\
\;\;\;\;x - \frac{\frac{t\_1}{z}}{3}\\
\mathbf{elif}\;y \leq 10^{-148}:\\
\;\;\;\;x - \frac{\frac{-0.3333333333333333 \cdot t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t\_1}{3 \cdot z}\\
\end{array}
\end{array}
if y < -8.50000000000000003e-19Initial program 99.8%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6499.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
if -8.50000000000000003e-19 < y < 9.99999999999999936e-149Initial program 89.4%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6487.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6487.7
Applied rewrites87.7%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6487.7
Applied rewrites87.7%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6488.9
Applied rewrites88.9%
Applied rewrites98.3%
if 9.99999999999999936e-149 < y Initial program 95.0%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6498.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6498.9
Applied rewrites98.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -8.5e-19) (not (<= y 1e-148))) (fma (/ (- y (/ t y)) z) -0.3333333333333333 x) (- x (/ (/ (* -0.3333333333333333 t) z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -8.5e-19) || !(y <= 1e-148)) {
tmp = fma(((y - (t / y)) / z), -0.3333333333333333, x);
} else {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((y <= -8.5e-19) || !(y <= 1e-148)) tmp = fma(Float64(Float64(y - Float64(t / y)) / z), -0.3333333333333333, x); else tmp = Float64(x - Float64(Float64(Float64(-0.3333333333333333 * t) / z) / y)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -8.5e-19], N[Not[LessEqual[y, 1e-148]], $MachinePrecision]], N[(N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * -0.3333333333333333 + x), $MachinePrecision], N[(x - N[(N[(N[(-0.3333333333333333 * t), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-19} \lor \neg \left(y \leq 10^{-148}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{y - \frac{t}{y}}{z}, -0.3333333333333333, x\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{-0.3333333333333333 \cdot t}{z}}{y}\\
\end{array}
\end{array}
if y < -8.50000000000000003e-19 or 9.99999999999999936e-149 < y Initial program 96.8%
Taylor expanded in x around 0
associate--l+N/A
+-commutativeN/A
distribute-lft-out--N/A
associate-/r*N/A
div-subN/A
associate-/l*N/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-out--N/A
associate-*r/N/A
Applied rewrites99.2%
if -8.50000000000000003e-19 < y < 9.99999999999999936e-149Initial program 89.4%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6487.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6487.7
Applied rewrites87.7%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6487.7
Applied rewrites87.7%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6488.9
Applied rewrites88.9%
Applied rewrites98.3%
Final simplification98.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- y (/ t y))))
(if (<= y -8.5e-19)
(fma (/ t_1 z) -0.3333333333333333 x)
(if (<= y 1e-148)
(- x (/ (/ (* -0.3333333333333333 t) z) y))
(fma t_1 (/ -0.3333333333333333 z) x)))))
double code(double x, double y, double z, double t) {
double t_1 = y - (t / y);
double tmp;
if (y <= -8.5e-19) {
tmp = fma((t_1 / z), -0.3333333333333333, x);
} else if (y <= 1e-148) {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
} else {
tmp = fma(t_1, (-0.3333333333333333 / z), x);
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(y - Float64(t / y)) tmp = 0.0 if (y <= -8.5e-19) tmp = fma(Float64(t_1 / z), -0.3333333333333333, x); elseif (y <= 1e-148) tmp = Float64(x - Float64(Float64(Float64(-0.3333333333333333 * t) / z) / y)); else tmp = fma(t_1, Float64(-0.3333333333333333 / z), x); end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e-19], N[(N[(t$95$1 / z), $MachinePrecision] * -0.3333333333333333 + x), $MachinePrecision], If[LessEqual[y, 1e-148], N[(x - N[(N[(N[(-0.3333333333333333 * t), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(-0.3333333333333333 / z), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - \frac{t}{y}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t\_1}{z}, -0.3333333333333333, x\right)\\
\mathbf{elif}\;y \leq 10^{-148}:\\
\;\;\;\;x - \frac{\frac{-0.3333333333333333 \cdot t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, \frac{-0.3333333333333333}{z}, x\right)\\
\end{array}
\end{array}
if y < -8.50000000000000003e-19Initial program 99.8%
Taylor expanded in x around 0
associate--l+N/A
+-commutativeN/A
distribute-lft-out--N/A
associate-/r*N/A
div-subN/A
associate-/l*N/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-out--N/A
associate-*r/N/A
Applied rewrites99.7%
if -8.50000000000000003e-19 < y < 9.99999999999999936e-149Initial program 89.4%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6487.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6487.7
Applied rewrites87.7%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6487.7
Applied rewrites87.7%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6488.9
Applied rewrites88.9%
Applied rewrites98.3%
if 9.99999999999999936e-149 < y Initial program 95.0%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6498.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6498.9
Applied rewrites98.9%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-/.f64N/A
distribute-neg-fracN/A
neg-mul-1N/A
lift-*.f64N/A
times-fracN/A
metadata-evalN/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6498.8
Applied rewrites98.8%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-14)
(fma -0.3333333333333333 (/ y z) x)
(if (<= y 1.1e-31)
(- x (/ (/ (* -0.3333333333333333 t) z) y))
(fma (/ -0.3333333333333333 z) y x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-14) {
tmp = fma(-0.3333333333333333, (y / z), x);
} else if (y <= 1.1e-31) {
tmp = x - (((-0.3333333333333333 * t) / z) / y);
} else {
tmp = fma((-0.3333333333333333 / z), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-14) tmp = fma(-0.3333333333333333, Float64(y / z), x); elseif (y <= 1.1e-31) tmp = Float64(x - Float64(Float64(Float64(-0.3333333333333333 * t) / z) / y)); else tmp = fma(Float64(-0.3333333333333333 / z), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-14], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.1e-31], N[(x - N[(N[(N[(-0.3333333333333333 * t), $MachinePrecision] / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-31}:\\
\;\;\;\;x - \frac{\frac{-0.3333333333333333 \cdot t}{z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\\
\end{array}
\end{array}
if y < -7.99999999999999999e-14Initial program 99.8%
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
lower-fma.f64N/A
lower-/.f6495.3
Applied rewrites95.3%
if -7.99999999999999999e-14 < y < 1.10000000000000005e-31Initial program 90.1%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6490.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6490.3
Applied rewrites90.3%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6490.3
Applied rewrites90.3%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6486.8
Applied rewrites86.8%
Applied rewrites94.4%
if 1.10000000000000005e-31 < y Initial program 96.7%
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
lower-fma.f64N/A
lower-/.f6492.3
Applied rewrites92.3%
Applied rewrites92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-14)
(fma -0.3333333333333333 (/ y z) x)
(if (<= y 1.1e-31)
(- x (/ (* -0.3333333333333333 t) (* z y)))
(fma (/ -0.3333333333333333 z) y x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-14) {
tmp = fma(-0.3333333333333333, (y / z), x);
} else if (y <= 1.1e-31) {
tmp = x - ((-0.3333333333333333 * t) / (z * y));
} else {
tmp = fma((-0.3333333333333333 / z), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-14) tmp = fma(-0.3333333333333333, Float64(y / z), x); elseif (y <= 1.1e-31) tmp = Float64(x - Float64(Float64(-0.3333333333333333 * t) / Float64(z * y))); else tmp = fma(Float64(-0.3333333333333333 / z), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-14], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.1e-31], N[(x - N[(N[(-0.3333333333333333 * t), $MachinePrecision] / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-31}:\\
\;\;\;\;x - \frac{-0.3333333333333333 \cdot t}{z \cdot y}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\\
\end{array}
\end{array}
if y < -7.99999999999999999e-14Initial program 99.8%
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
lower-fma.f64N/A
lower-/.f6495.3
Applied rewrites95.3%
if -7.99999999999999999e-14 < y < 1.10000000000000005e-31Initial program 90.1%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6490.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6490.3
Applied rewrites90.3%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6490.3
Applied rewrites90.3%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6486.8
Applied rewrites86.8%
Applied rewrites87.3%
if 1.10000000000000005e-31 < y Initial program 96.7%
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
lower-fma.f64N/A
lower-/.f6492.3
Applied rewrites92.3%
Applied rewrites92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-14)
(fma -0.3333333333333333 (/ y z) x)
(if (<= y 1.1e-31)
(- x (/ t (* (* z y) -3.0)))
(fma (/ -0.3333333333333333 z) y x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-14) {
tmp = fma(-0.3333333333333333, (y / z), x);
} else if (y <= 1.1e-31) {
tmp = x - (t / ((z * y) * -3.0));
} else {
tmp = fma((-0.3333333333333333 / z), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-14) tmp = fma(-0.3333333333333333, Float64(y / z), x); elseif (y <= 1.1e-31) tmp = Float64(x - Float64(t / Float64(Float64(z * y) * -3.0))); else tmp = fma(Float64(-0.3333333333333333 / z), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-14], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.1e-31], N[(x - N[(t / N[(N[(z * y), $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-31}:\\
\;\;\;\;x - \frac{t}{\left(z \cdot y\right) \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\\
\end{array}
\end{array}
if y < -7.99999999999999999e-14Initial program 99.8%
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
lower-fma.f64N/A
lower-/.f6495.3
Applied rewrites95.3%
if -7.99999999999999999e-14 < y < 1.10000000000000005e-31Initial program 90.1%
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
sub-divN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6490.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6490.3
Applied rewrites90.3%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/r*N/A
lift-/.f64N/A
lower-/.f6490.3
Applied rewrites90.3%
Taylor expanded in y around 0
associate-*r/N/A
associate-*l/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6486.8
Applied rewrites86.8%
Applied rewrites87.2%
if 1.10000000000000005e-31 < y Initial program 96.7%
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
lower-fma.f64N/A
lower-/.f6492.3
Applied rewrites92.3%
Applied rewrites92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-14)
(fma -0.3333333333333333 (/ y z) x)
(if (<= y 1.1e-31)
(fma (/ (- t) (* z y)) -0.3333333333333333 x)
(fma (/ -0.3333333333333333 z) y x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-14) {
tmp = fma(-0.3333333333333333, (y / z), x);
} else if (y <= 1.1e-31) {
tmp = fma((-t / (z * y)), -0.3333333333333333, x);
} else {
tmp = fma((-0.3333333333333333 / z), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-14) tmp = fma(-0.3333333333333333, Float64(y / z), x); elseif (y <= 1.1e-31) tmp = fma(Float64(Float64(-t) / Float64(z * y)), -0.3333333333333333, x); else tmp = fma(Float64(-0.3333333333333333 / z), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-14], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.1e-31], N[(N[((-t) / N[(z * y), $MachinePrecision]), $MachinePrecision] * -0.3333333333333333 + x), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-31}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-t}{z \cdot y}, -0.3333333333333333, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\\
\end{array}
\end{array}
if y < -7.99999999999999999e-14Initial program 99.8%
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
lower-fma.f64N/A
lower-/.f6495.3
Applied rewrites95.3%
if -7.99999999999999999e-14 < y < 1.10000000000000005e-31Initial program 90.1%
Taylor expanded in x around 0
associate--l+N/A
+-commutativeN/A
distribute-lft-out--N/A
associate-/r*N/A
div-subN/A
associate-/l*N/A
metadata-evalN/A
associate-*r*N/A
distribute-lft-out--N/A
associate-*r/N/A
Applied rewrites90.3%
Taylor expanded in y around 0
Applied rewrites87.2%
if 1.10000000000000005e-31 < y Initial program 96.7%
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
lower-fma.f64N/A
lower-/.f6492.3
Applied rewrites92.3%
Applied rewrites92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.5e-27)
(fma -0.3333333333333333 (/ y z) x)
(if (<= y 7.2e-48)
(* (/ t (* z y)) 0.3333333333333333)
(fma (/ -0.3333333333333333 z) y x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.5e-27) {
tmp = fma(-0.3333333333333333, (y / z), x);
} else if (y <= 7.2e-48) {
tmp = (t / (z * y)) * 0.3333333333333333;
} else {
tmp = fma((-0.3333333333333333 / z), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -3.5e-27) tmp = fma(-0.3333333333333333, Float64(y / z), x); elseif (y <= 7.2e-48) tmp = Float64(Float64(t / Float64(z * y)) * 0.3333333333333333); else tmp = fma(Float64(-0.3333333333333333 / z), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.5e-27], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 7.2e-48], N[(N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision], N[(N[(-0.3333333333333333 / z), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-48}:\\
\;\;\;\;\frac{t}{z \cdot y} \cdot 0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-0.3333333333333333}{z}, y, x\right)\\
\end{array}
\end{array}
if y < -3.5000000000000001e-27Initial program 99.8%
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
lower-fma.f64N/A
lower-/.f6495.6
Applied rewrites95.6%
if -3.5000000000000001e-27 < y < 7.2000000000000003e-48Initial program 90.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6463.3
Applied rewrites63.3%
if 7.2000000000000003e-48 < y Initial program 95.7%
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
lower-fma.f64N/A
lower-/.f6490.3
Applied rewrites90.3%
Applied rewrites90.4%
(FPCore (x y z t) :precision binary64 (fma -0.3333333333333333 (/ y z) x))
double code(double x, double y, double z, double t) {
return fma(-0.3333333333333333, (y / z), x);
}
function code(x, y, z, t) return fma(-0.3333333333333333, Float64(y / z), x) end
code[x_, y_, z_, t_] := N[(-0.3333333333333333 * N[(y / z), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(-0.3333333333333333, \frac{y}{z}, x\right)
\end{array}
Initial program 94.1%
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
lower-fma.f64N/A
lower-/.f6463.2
Applied rewrites63.2%
(FPCore (x y z t) :precision binary64 (/ y (* -3.0 z)))
double code(double x, double y, double z, double t) {
return y / (-3.0 * 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 = y / ((-3.0d0) * z)
end function
public static double code(double x, double y, double z, double t) {
return y / (-3.0 * z);
}
def code(x, y, z, t): return y / (-3.0 * z)
function code(x, y, z, t) return Float64(y / Float64(-3.0 * z)) end
function tmp = code(x, y, z, t) tmp = y / (-3.0 * z); end
code[x_, y_, z_, t_] := N[(y / N[(-3.0 * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{-3 \cdot z}
\end{array}
Initial program 94.1%
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
lower-fma.f64N/A
lower-/.f6463.2
Applied rewrites63.2%
Taylor expanded in x around 0
Applied rewrites34.2%
Applied rewrites34.3%
(FPCore (x y z t) :precision binary64 (* (/ y z) -0.3333333333333333))
double code(double x, double y, double z, double t) {
return (y / z) * -0.3333333333333333;
}
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 = (y / z) * (-0.3333333333333333d0)
end function
public static double code(double x, double y, double z, double t) {
return (y / z) * -0.3333333333333333;
}
def code(x, y, z, t): return (y / z) * -0.3333333333333333
function code(x, y, z, t) return Float64(Float64(y / z) * -0.3333333333333333) end
function tmp = code(x, y, z, t) tmp = (y / z) * -0.3333333333333333; end
code[x_, y_, z_, t_] := N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{z} \cdot -0.3333333333333333
\end{array}
Initial program 94.1%
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
lower-fma.f64N/A
lower-/.f6463.2
Applied rewrites63.2%
Taylor expanded in x around 0
Applied rewrites34.2%
(FPCore (x y z t) :precision binary64 (* y (/ -0.3333333333333333 z)))
double code(double x, double y, double z, double t) {
return 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 = y * ((-0.3333333333333333d0) / z)
end function
public static double code(double x, double y, double z, double t) {
return y * (-0.3333333333333333 / z);
}
def code(x, y, z, t): return y * (-0.3333333333333333 / z)
function code(x, y, z, t) return Float64(y * Float64(-0.3333333333333333 / z)) end
function tmp = code(x, y, z, t) tmp = y * (-0.3333333333333333 / z); end
code[x_, y_, z_, t_] := N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot \frac{-0.3333333333333333}{z}
\end{array}
Initial program 94.1%
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
lower-fma.f64N/A
lower-/.f6463.2
Applied rewrites63.2%
Taylor expanded in x around 0
Applied rewrites34.2%
Applied rewrites34.2%
(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 2024324
(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))))