
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
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 = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t): return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t) return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) end
function tmp = code(x, y, z, t) tmp = 1.0 - (x / ((y - z) * (y - t))); end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
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 = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t): return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t) return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) end
function tmp = code(x, y, z, t) tmp = 1.0 - (x / ((y - z) * (y - t))); end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
\end{array}
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
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 = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t): return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t) return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) end
function tmp = code(x, y, z, t) tmp = 1.0 - (x / ((y - z) * (y - t))); end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
\end{array}
Initial program 99.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (* (- y z) (- t y))))
(t_2 (- 1.0 (/ x (* (- y z) (- y t))))))
(if (<= t_2 -1.0) t_1 (if (<= t_2 2.0) 1.0 t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (t - y));
double t_2 = 1.0 - (x / ((y - z) * (y - t)));
double tmp;
if (t_2 <= -1.0) {
tmp = t_1;
} else if (t_2 <= 2.0) {
tmp = 1.0;
} 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) :: t_2
real(8) :: tmp
t_1 = x / ((y - z) * (t - y))
t_2 = 1.0d0 - (x / ((y - z) * (y - t)))
if (t_2 <= (-1.0d0)) then
tmp = t_1
else if (t_2 <= 2.0d0) then
tmp = 1.0d0
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) * (t - y));
double t_2 = 1.0 - (x / ((y - z) * (y - t)));
double tmp;
if (t_2 <= -1.0) {
tmp = t_1;
} else if (t_2 <= 2.0) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (t - y)) t_2 = 1.0 - (x / ((y - z) * (y - t))) tmp = 0 if t_2 <= -1.0: tmp = t_1 elif t_2 <= 2.0: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(t - y))) t_2 = Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) tmp = 0.0 if (t_2 <= -1.0) tmp = t_1; elseif (t_2 <= 2.0) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (t - y)); t_2 = 1.0 - (x / ((y - z) * (y - t))); tmp = 0.0; if (t_2 <= -1.0) tmp = t_1; elseif (t_2 <= 2.0) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1.0], t$95$1, If[LessEqual[t$95$2, 2.0], 1.0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(t - y\right)}\\
t_2 := 1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
\mathbf{if}\;t\_2 \leq -1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 #s(literal 1 binary64) (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t)))) < -1 or 2 < (-.f64 #s(literal 1 binary64) (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t)))) Initial program 98.8%
Taylor expanded in x around inf
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
mul-1-negN/A
remove-double-negN/A
--lowering--.f6493.6
Simplified93.6%
if -1 < (-.f64 #s(literal 1 binary64) (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t)))) < 2Initial program 100.0%
Taylor expanded in x around 0
Simplified98.0%
Final simplification96.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ x (* (- y z) (- y t)))) (t_2 (/ x (* z (- y t))))) (if (<= t_1 -20000000.0) t_2 (if (<= t_1 0.4) 1.0 t_2))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = x / (z * (y - t));
double tmp;
if (t_1 <= -20000000.0) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
t_2 = x / (z * (y - t))
if (t_1 <= (-20000000.0d0)) then
tmp = t_2
else if (t_1 <= 0.4d0) then
tmp = 1.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = x / (z * (y - t));
double tmp;
if (t_1 <= -20000000.0) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) t_2 = x / (z * (y - t)) tmp = 0 if t_1 <= -20000000.0: tmp = t_2 elif t_1 <= 0.4: tmp = 1.0 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) t_2 = Float64(x / Float64(z * Float64(y - t))) tmp = 0.0 if (t_1 <= -20000000.0) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); t_2 = x / (z * (y - t)); tmp = 0.0; if (t_1 <= -20000000.0) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(z * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -20000000.0], t$95$2, If[LessEqual[t$95$1, 0.4], 1.0, t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
t_2 := \frac{x}{z \cdot \left(y - t\right)}\\
\mathbf{if}\;t\_1 \leq -20000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0.4:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -2e7 or 0.40000000000000002 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 98.8%
sub-negN/A
+-commutativeN/A
clear-numN/A
associate-/r/N/A
distribute-lft-neg-inN/A
distribute-frac-neg2N/A
accelerator-lowering-fma.f64N/A
distribute-frac-neg2N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6498.2
Applied egg-rr98.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6463.7
Simplified63.7%
Taylor expanded in z around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f6460.8
Simplified60.8%
if -2e7 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 0.40000000000000002Initial program 100.0%
Taylor expanded in x around 0
Simplified98.0%
Final simplification87.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ x (* (- y z) (- y t)))) (t_2 (- 1.0 (/ x (* z t))))) (if (<= t_1 -20000000.0) t_2 (if (<= t_1 1.5e-8) 1.0 t_2))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = 1.0 - (x / (z * t));
double tmp;
if (t_1 <= -20000000.0) {
tmp = t_2;
} else if (t_1 <= 1.5e-8) {
tmp = 1.0;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
t_2 = 1.0d0 - (x / (z * t))
if (t_1 <= (-20000000.0d0)) then
tmp = t_2
else if (t_1 <= 1.5d-8) then
tmp = 1.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = 1.0 - (x / (z * t));
double tmp;
if (t_1 <= -20000000.0) {
tmp = t_2;
} else if (t_1 <= 1.5e-8) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) t_2 = 1.0 - (x / (z * t)) tmp = 0 if t_1 <= -20000000.0: tmp = t_2 elif t_1 <= 1.5e-8: tmp = 1.0 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) t_2 = Float64(1.0 - Float64(x / Float64(z * t))) tmp = 0.0 if (t_1 <= -20000000.0) tmp = t_2; elseif (t_1 <= 1.5e-8) tmp = 1.0; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); t_2 = 1.0 - (x / (z * t)); tmp = 0.0; if (t_1 <= -20000000.0) tmp = t_2; elseif (t_1 <= 1.5e-8) tmp = 1.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -20000000.0], t$95$2, If[LessEqual[t$95$1, 1.5e-8], 1.0, t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
t_2 := 1 - \frac{x}{z \cdot t}\\
\mathbf{if}\;t\_1 \leq -20000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 1.5 \cdot 10^{-8}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -2e7 or 1.49999999999999987e-8 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 98.8%
Taylor expanded in y around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6441.8
Simplified41.8%
if -2e7 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 1.49999999999999987e-8Initial program 100.0%
Taylor expanded in x around 0
Simplified98.7%
Final simplification82.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (* (- y z) (- y t)))))
(if (<= t_1 -5e-5)
(+ 1.0 (/ x (* y t)))
(if (<= t_1 0.4) 1.0 (+ 1.0 (/ x (* y z)))))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double tmp;
if (t_1 <= -5e-5) {
tmp = 1.0 + (x / (y * t));
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = 1.0 + (x / (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
if (t_1 <= (-5d-5)) then
tmp = 1.0d0 + (x / (y * t))
else if (t_1 <= 0.4d0) then
tmp = 1.0d0
else
tmp = 1.0d0 + (x / (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double tmp;
if (t_1 <= -5e-5) {
tmp = 1.0 + (x / (y * t));
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = 1.0 + (x / (y * z));
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) tmp = 0 if t_1 <= -5e-5: tmp = 1.0 + (x / (y * t)) elif t_1 <= 0.4: tmp = 1.0 else: tmp = 1.0 + (x / (y * z)) return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) tmp = 0.0 if (t_1 <= -5e-5) tmp = Float64(1.0 + Float64(x / Float64(y * t))); elseif (t_1 <= 0.4) tmp = 1.0; else tmp = Float64(1.0 + Float64(x / Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); tmp = 0.0; if (t_1 <= -5e-5) tmp = 1.0 + (x / (y * t)); elseif (t_1 <= 0.4) tmp = 1.0; else tmp = 1.0 + (x / (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-5], N[(1.0 + N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.4], 1.0, N[(1.0 + N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-5}:\\
\;\;\;\;1 + \frac{x}{y \cdot t}\\
\mathbf{elif}\;t\_1 \leq 0.4:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{x}{y \cdot z}\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -5.00000000000000024e-5Initial program 97.6%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6472.6
Simplified72.6%
Taylor expanded in z around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6424.6
Simplified24.6%
if -5.00000000000000024e-5 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 0.40000000000000002Initial program 100.0%
Taylor expanded in x around 0
Simplified98.7%
if 0.40000000000000002 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 99.7%
Taylor expanded in z around inf
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
mul-1-negN/A
remove-double-negN/A
--lowering--.f6466.4
Simplified66.4%
Taylor expanded in t around 0
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6440.4
Simplified40.4%
Final simplification79.9%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ x (* (- y z) (- y t)))) (t_2 (+ 1.0 (/ x (* y t))))) (if (<= t_1 -5e-5) t_2 (if (<= t_1 0.4) 1.0 t_2))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = 1.0 + (x / (y * t));
double tmp;
if (t_1 <= -5e-5) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
t_2 = 1.0d0 + (x / (y * t))
if (t_1 <= (-5d-5)) then
tmp = t_2
else if (t_1 <= 0.4d0) then
tmp = 1.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = 1.0 + (x / (y * t));
double tmp;
if (t_1 <= -5e-5) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) t_2 = 1.0 + (x / (y * t)) tmp = 0 if t_1 <= -5e-5: tmp = t_2 elif t_1 <= 0.4: tmp = 1.0 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) t_2 = Float64(1.0 + Float64(x / Float64(y * t))) tmp = 0.0 if (t_1 <= -5e-5) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); t_2 = 1.0 + (x / (y * t)); tmp = 0.0; if (t_1 <= -5e-5) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-5], t$95$2, If[LessEqual[t$95$1, 0.4], 1.0, t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
t_2 := 1 + \frac{x}{y \cdot t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0.4:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -5.00000000000000024e-5 or 0.40000000000000002 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 98.8%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6473.0
Simplified73.0%
Taylor expanded in z around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6423.1
Simplified23.1%
if -5.00000000000000024e-5 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 0.40000000000000002Initial program 100.0%
Taylor expanded in x around 0
Simplified98.7%
Final simplification76.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ x (* (- y z) (- y t))))) (if (<= t_1 -4e+26) (/ x (* y t)) (if (<= t_1 0.4) 1.0 (/ x (* y z))))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double tmp;
if (t_1 <= -4e+26) {
tmp = x / (y * t);
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = x / (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
if (t_1 <= (-4d+26)) then
tmp = x / (y * t)
else if (t_1 <= 0.4d0) then
tmp = 1.0d0
else
tmp = x / (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double tmp;
if (t_1 <= -4e+26) {
tmp = x / (y * t);
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = x / (y * z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) tmp = 0 if t_1 <= -4e+26: tmp = x / (y * t) elif t_1 <= 0.4: tmp = 1.0 else: tmp = x / (y * z) return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) tmp = 0.0 if (t_1 <= -4e+26) tmp = Float64(x / Float64(y * t)); elseif (t_1 <= 0.4) tmp = 1.0; else tmp = Float64(x / Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); tmp = 0.0; if (t_1 <= -4e+26) tmp = x / (y * t); elseif (t_1 <= 0.4) tmp = 1.0; else tmp = x / (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+26], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.4], 1.0, N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\mathbf{elif}\;t\_1 \leq 0.4:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot z}\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -4.00000000000000019e26Initial program 97.2%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6472.2
Simplified72.2%
Taylor expanded in z around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6428.1
Simplified28.1%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6428.1
Simplified28.1%
if -4.00000000000000019e26 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 0.40000000000000002Initial program 100.0%
Taylor expanded in x around 0
Simplified97.1%
if 0.40000000000000002 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 99.7%
sub-negN/A
+-commutativeN/A
clear-numN/A
associate-/r/N/A
distribute-lft-neg-inN/A
distribute-frac-neg2N/A
accelerator-lowering-fma.f64N/A
distribute-frac-neg2N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6499.6
Applied egg-rr99.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6466.4
Simplified66.4%
Taylor expanded in z around 0
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f6462.6
Simplified62.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6437.3
Simplified37.3%
Final simplification79.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ x (* (- y z) (- y t)))) (t_2 (/ x (* y t)))) (if (<= t_1 -4e+26) t_2 (if (<= t_1 0.4) 1.0 t_2))))
double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = x / (y * t);
double tmp;
if (t_1 <= -4e+26) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x / ((y - z) * (y - t))
t_2 = x / (y * t)
if (t_1 <= (-4d+26)) then
tmp = t_2
else if (t_1 <= 0.4d0) then
tmp = 1.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x / ((y - z) * (y - t));
double t_2 = x / (y * t);
double tmp;
if (t_1 <= -4e+26) {
tmp = t_2;
} else if (t_1 <= 0.4) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x / ((y - z) * (y - t)) t_2 = x / (y * t) tmp = 0 if t_1 <= -4e+26: tmp = t_2 elif t_1 <= 0.4: tmp = 1.0 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x / Float64(Float64(y - z) * Float64(y - t))) t_2 = Float64(x / Float64(y * t)) tmp = 0.0 if (t_1 <= -4e+26) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x / ((y - z) * (y - t)); t_2 = x / (y * t); tmp = 0.0; if (t_1 <= -4e+26) tmp = t_2; elseif (t_1 <= 0.4) tmp = 1.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+26], t$95$2, If[LessEqual[t$95$1, 0.4], 1.0, t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}\\
t_2 := \frac{x}{y \cdot t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0.4:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < -4.00000000000000019e26 or 0.40000000000000002 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) Initial program 98.7%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6472.8
Simplified72.8%
Taylor expanded in z around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6424.3
Simplified24.3%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6424.3
Simplified24.3%
if -4.00000000000000019e26 < (/.f64 x (*.f64 (-.f64 y z) (-.f64 y t))) < 0.40000000000000002Initial program 100.0%
Taylor expanded in x around 0
Simplified97.1%
(FPCore (x y z t) :precision binary64 (if (<= t -1.55e-189) (+ 1.0 (/ x (* z (- y t)))) (if (<= t 6.5e-54) (- 1.0 (/ x (* y y))) (+ 1.0 (/ x (* (- y z) t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.55e-189) {
tmp = 1.0 + (x / (z * (y - t)));
} else if (t <= 6.5e-54) {
tmp = 1.0 - (x / (y * y));
} else {
tmp = 1.0 + (x / ((y - z) * t));
}
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.55d-189)) then
tmp = 1.0d0 + (x / (z * (y - t)))
else if (t <= 6.5d-54) then
tmp = 1.0d0 - (x / (y * y))
else
tmp = 1.0d0 + (x / ((y - z) * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.55e-189) {
tmp = 1.0 + (x / (z * (y - t)));
} else if (t <= 6.5e-54) {
tmp = 1.0 - (x / (y * y));
} else {
tmp = 1.0 + (x / ((y - z) * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.55e-189: tmp = 1.0 + (x / (z * (y - t))) elif t <= 6.5e-54: tmp = 1.0 - (x / (y * y)) else: tmp = 1.0 + (x / ((y - z) * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.55e-189) tmp = Float64(1.0 + Float64(x / Float64(z * Float64(y - t)))); elseif (t <= 6.5e-54) tmp = Float64(1.0 - Float64(x / Float64(y * y))); else tmp = Float64(1.0 + Float64(x / Float64(Float64(y - z) * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.55e-189) tmp = 1.0 + (x / (z * (y - t))); elseif (t <= 6.5e-54) tmp = 1.0 - (x / (y * y)); else tmp = 1.0 + (x / ((y - z) * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.55e-189], N[(1.0 + N[(x / N[(z * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-54], N[(1.0 - N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{-189}:\\
\;\;\;\;1 + \frac{x}{z \cdot \left(y - t\right)}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-54}:\\
\;\;\;\;1 - \frac{x}{y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -1.55e-189Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
mul-1-negN/A
remove-double-negN/A
--lowering--.f6476.9
Simplified76.9%
if -1.55e-189 < t < 6.49999999999999991e-54Initial program 99.2%
Taylor expanded in y around inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6469.1
Simplified69.1%
if 6.49999999999999991e-54 < t Initial program 99.9%
Taylor expanded in t around inf
remove-double-negN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
mul-1-negN/A
remove-double-negN/A
--lowering--.f6494.7
Simplified94.7%
Final simplification79.3%
(FPCore (x y z t) :precision binary64 (if (<= t -1.4e-55) (- 1.0 (/ x (* z t))) (if (<= t 6.6e-55) (- 1.0 (/ x (* y y))) (+ 1.0 (/ x (* (- y z) t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.4e-55) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 6.6e-55) {
tmp = 1.0 - (x / (y * y));
} else {
tmp = 1.0 + (x / ((y - z) * t));
}
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.4d-55)) then
tmp = 1.0d0 - (x / (z * t))
else if (t <= 6.6d-55) then
tmp = 1.0d0 - (x / (y * y))
else
tmp = 1.0d0 + (x / ((y - z) * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.4e-55) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 6.6e-55) {
tmp = 1.0 - (x / (y * y));
} else {
tmp = 1.0 + (x / ((y - z) * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.4e-55: tmp = 1.0 - (x / (z * t)) elif t <= 6.6e-55: tmp = 1.0 - (x / (y * y)) else: tmp = 1.0 + (x / ((y - z) * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.4e-55) tmp = Float64(1.0 - Float64(x / Float64(z * t))); elseif (t <= 6.6e-55) tmp = Float64(1.0 - Float64(x / Float64(y * y))); else tmp = Float64(1.0 + Float64(x / Float64(Float64(y - z) * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.4e-55) tmp = 1.0 - (x / (z * t)); elseif (t <= 6.6e-55) tmp = 1.0 - (x / (y * y)); else tmp = 1.0 + (x / ((y - z) * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.4e-55], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-55], N[(1.0 - N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-55}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-55}:\\
\;\;\;\;1 - \frac{x}{y \cdot y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -1.39999999999999992e-55Initial program 99.9%
Taylor expanded in y around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6471.5
Simplified71.5%
if -1.39999999999999992e-55 < t < 6.5999999999999999e-55Initial program 99.3%
Taylor expanded in y around inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6471.7
Simplified71.7%
if 6.5999999999999999e-55 < t Initial program 99.9%
Taylor expanded in t around inf
remove-double-negN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
mul-1-negN/A
distribute-neg-frac2N/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
mul-1-negN/A
remove-double-negN/A
--lowering--.f6494.7
Simplified94.7%
Final simplification78.2%
(FPCore (x y z t) :precision binary64 (if (<= y -2.7e-105) (- 1.0 (/ x (* y y))) (if (<= y 3.2e-79) (- 1.0 (/ x (* z t))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.7e-105) {
tmp = 1.0 - (x / (y * y));
} else if (y <= 3.2e-79) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.7d-105)) then
tmp = 1.0d0 - (x / (y * y))
else if (y <= 3.2d-79) then
tmp = 1.0d0 - (x / (z * t))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.7e-105) {
tmp = 1.0 - (x / (y * y));
} else if (y <= 3.2e-79) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.7e-105: tmp = 1.0 - (x / (y * y)) elif y <= 3.2e-79: tmp = 1.0 - (x / (z * t)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.7e-105) tmp = Float64(1.0 - Float64(x / Float64(y * y))); elseif (y <= 3.2e-79) tmp = Float64(1.0 - Float64(x / Float64(z * t))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.7e-105) tmp = 1.0 - (x / (y * y)); elseif (y <= 3.2e-79) tmp = 1.0 - (x / (z * t)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.7e-105], N[(1.0 - N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-79], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-105}:\\
\;\;\;\;1 - \frac{x}{y \cdot y}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-79}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.69999999999999993e-105Initial program 99.9%
Taylor expanded in y around inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6484.9
Simplified84.9%
if -2.69999999999999993e-105 < y < 3.19999999999999988e-79Initial program 99.1%
Taylor expanded in y around 0
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6482.7
Simplified82.7%
if 3.19999999999999988e-79 < y Initial program 99.9%
Taylor expanded in x around 0
Simplified86.2%
Final simplification84.5%
(FPCore (x y z t) :precision binary64 1.0)
double code(double x, double y, double z, double t) {
return 1.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 = 1.0d0
end function
public static double code(double x, double y, double z, double t) {
return 1.0;
}
def code(x, y, z, t): return 1.0
function code(x, y, z, t) return 1.0 end
function tmp = code(x, y, z, t) tmp = 1.0; end
code[x_, y_, z_, t_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.7%
Taylor expanded in x around 0
Simplified71.3%
herbie shell --seed 2024195
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, A"
:precision binary64
(- 1.0 (/ x (* (- y z) (- y t)))))