
(FPCore (x y) :precision binary64 (+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))
double code(double x, double y) {
return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * (y - 1.0d0)) - (y * 0.5d0)) + 0.918938533204673d0
end function
public static double code(double x, double y) {
return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673;
}
def code(x, y): return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673
function code(x, y) return Float64(Float64(Float64(x * Float64(y - 1.0)) - Float64(y * 0.5)) + 0.918938533204673) end
function tmp = code(x, y) tmp = ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673; end
code[x_, y_] := N[(N[(N[(x * N[(y - 1.0), $MachinePrecision]), $MachinePrecision] - N[(y * 0.5), $MachinePrecision]), $MachinePrecision] + 0.918938533204673), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y - 1\right) - y \cdot 0.5\right) + 0.918938533204673
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))
double code(double x, double y) {
return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * (y - 1.0d0)) - (y * 0.5d0)) + 0.918938533204673d0
end function
public static double code(double x, double y) {
return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673;
}
def code(x, y): return ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673
function code(x, y) return Float64(Float64(Float64(x * Float64(y - 1.0)) - Float64(y * 0.5)) + 0.918938533204673) end
function tmp = code(x, y) tmp = ((x * (y - 1.0)) - (y * 0.5)) + 0.918938533204673; end
code[x_, y_] := N[(N[(N[(x * N[(y - 1.0), $MachinePrecision]), $MachinePrecision] - N[(y * 0.5), $MachinePrecision]), $MachinePrecision] + 0.918938533204673), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y - 1\right) - y \cdot 0.5\right) + 0.918938533204673
\end{array}
(FPCore (x y) :precision binary64 (+ (- (* x (+ y -1.0)) (* y 0.5)) 0.918938533204673))
double code(double x, double y) {
return ((x * (y + -1.0)) - (y * 0.5)) + 0.918938533204673;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * (y + (-1.0d0))) - (y * 0.5d0)) + 0.918938533204673d0
end function
public static double code(double x, double y) {
return ((x * (y + -1.0)) - (y * 0.5)) + 0.918938533204673;
}
def code(x, y): return ((x * (y + -1.0)) - (y * 0.5)) + 0.918938533204673
function code(x, y) return Float64(Float64(Float64(x * Float64(y + -1.0)) - Float64(y * 0.5)) + 0.918938533204673) end
function tmp = code(x, y) tmp = ((x * (y + -1.0)) - (y * 0.5)) + 0.918938533204673; end
code[x_, y_] := N[(N[(N[(x * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] - N[(y * 0.5), $MachinePrecision]), $MachinePrecision] + 0.918938533204673), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y + -1\right) - y \cdot 0.5\right) + 0.918938533204673
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 0.918938533204673 (* y (+ x -0.5)))))
(if (<= y -0.96)
t_0
(if (<= y 3000.0) (+ (- 0.918938533204673 x) (* x y)) t_0))))
double code(double x, double y) {
double t_0 = 0.918938533204673 + (y * (x + -0.5));
double tmp;
if (y <= -0.96) {
tmp = t_0;
} else if (y <= 3000.0) {
tmp = (0.918938533204673 - x) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 0.918938533204673d0 + (y * (x + (-0.5d0)))
if (y <= (-0.96d0)) then
tmp = t_0
else if (y <= 3000.0d0) then
tmp = (0.918938533204673d0 - x) + (x * y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 0.918938533204673 + (y * (x + -0.5));
double tmp;
if (y <= -0.96) {
tmp = t_0;
} else if (y <= 3000.0) {
tmp = (0.918938533204673 - x) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = 0.918938533204673 + (y * (x + -0.5)) tmp = 0 if y <= -0.96: tmp = t_0 elif y <= 3000.0: tmp = (0.918938533204673 - x) + (x * y) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(0.918938533204673 + Float64(y * Float64(x + -0.5))) tmp = 0.0 if (y <= -0.96) tmp = t_0; elseif (y <= 3000.0) tmp = Float64(Float64(0.918938533204673 - x) + Float64(x * y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = 0.918938533204673 + (y * (x + -0.5)); tmp = 0.0; if (y <= -0.96) tmp = t_0; elseif (y <= 3000.0) tmp = (0.918938533204673 - x) + (x * y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(0.918938533204673 + N[(y * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.96], t$95$0, If[LessEqual[y, 3000.0], N[(N[(0.918938533204673 - x), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.918938533204673 + y \cdot \left(x + -0.5\right)\\
\mathbf{if}\;y \leq -0.96:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 3000:\\
\;\;\;\;\left(0.918938533204673 - x\right) + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -0.95999999999999996 or 3e3 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified99.3%
if -0.95999999999999996 < y < 3e3Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified99.4%
Final simplification99.4%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (+ x -0.5))))
(if (<= y -4.2e+26)
t_0
(if (<= y 4400.0) (+ (- 0.918938533204673 x) (* x y)) t_0))))
double code(double x, double y) {
double t_0 = y * (x + -0.5);
double tmp;
if (y <= -4.2e+26) {
tmp = t_0;
} else if (y <= 4400.0) {
tmp = (0.918938533204673 - x) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (x + (-0.5d0))
if (y <= (-4.2d+26)) then
tmp = t_0
else if (y <= 4400.0d0) then
tmp = (0.918938533204673d0 - x) + (x * y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (x + -0.5);
double tmp;
if (y <= -4.2e+26) {
tmp = t_0;
} else if (y <= 4400.0) {
tmp = (0.918938533204673 - x) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = y * (x + -0.5) tmp = 0 if y <= -4.2e+26: tmp = t_0 elif y <= 4400.0: tmp = (0.918938533204673 - x) + (x * y) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(y * Float64(x + -0.5)) tmp = 0.0 if (y <= -4.2e+26) tmp = t_0; elseif (y <= 4400.0) tmp = Float64(Float64(0.918938533204673 - x) + Float64(x * y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = y * (x + -0.5); tmp = 0.0; if (y <= -4.2e+26) tmp = t_0; elseif (y <= 4400.0) tmp = (0.918938533204673 - x) + (x * y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.2e+26], t$95$0, If[LessEqual[y, 4400.0], N[(N[(0.918938533204673 - x), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(x + -0.5\right)\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{+26}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 4400:\\
\;\;\;\;\left(0.918938533204673 - x\right) + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -4.2000000000000002e26 or 4400 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.9%
Simplified99.9%
if -4.2000000000000002e26 < y < 4400Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified98.9%
Final simplification99.3%
(FPCore (x y) :precision binary64 (if (<= x -52000000.0) (* x (+ y -1.0)) (if (<= x 45000.0) (+ (- 0.918938533204673 x) (* y -0.5)) (- (* x y) x))))
double code(double x, double y) {
double tmp;
if (x <= -52000000.0) {
tmp = x * (y + -1.0);
} else if (x <= 45000.0) {
tmp = (0.918938533204673 - x) + (y * -0.5);
} else {
tmp = (x * y) - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-52000000.0d0)) then
tmp = x * (y + (-1.0d0))
else if (x <= 45000.0d0) then
tmp = (0.918938533204673d0 - x) + (y * (-0.5d0))
else
tmp = (x * y) - x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -52000000.0) {
tmp = x * (y + -1.0);
} else if (x <= 45000.0) {
tmp = (0.918938533204673 - x) + (y * -0.5);
} else {
tmp = (x * y) - x;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -52000000.0: tmp = x * (y + -1.0) elif x <= 45000.0: tmp = (0.918938533204673 - x) + (y * -0.5) else: tmp = (x * y) - x return tmp
function code(x, y) tmp = 0.0 if (x <= -52000000.0) tmp = Float64(x * Float64(y + -1.0)); elseif (x <= 45000.0) tmp = Float64(Float64(0.918938533204673 - x) + Float64(y * -0.5)); else tmp = Float64(Float64(x * y) - x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -52000000.0) tmp = x * (y + -1.0); elseif (x <= 45000.0) tmp = (0.918938533204673 - x) + (y * -0.5); else tmp = (x * y) - x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -52000000.0], N[(x * N[(y + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 45000.0], N[(N[(0.918938533204673 - x), $MachinePrecision] + N[(y * -0.5), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] - x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -52000000:\\
\;\;\;\;x \cdot \left(y + -1\right)\\
\mathbf{elif}\;x \leq 45000:\\
\;\;\;\;\left(0.918938533204673 - x\right) + y \cdot -0.5\\
\mathbf{else}:\\
\;\;\;\;x \cdot y - x\\
\end{array}
\end{array}
if x < -5.2e7Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.9%
Simplified99.9%
if -5.2e7 < x < 45000Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6498.9%
Simplified98.9%
if 45000 < x Initial program 99.9%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6498.1%
Simplified98.1%
distribute-rgt-inN/A
neg-mul-1N/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f6498.2%
Applied egg-rr98.2%
Final simplification99.0%
(FPCore (x y) :precision binary64 (if (<= x -0.64) (* x (+ y -1.0)) (if (<= x 0.75) (+ 0.918938533204673 (* y -0.5)) (- (* x y) x))))
double code(double x, double y) {
double tmp;
if (x <= -0.64) {
tmp = x * (y + -1.0);
} else if (x <= 0.75) {
tmp = 0.918938533204673 + (y * -0.5);
} else {
tmp = (x * y) - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= (-0.64d0)) then
tmp = x * (y + (-1.0d0))
else if (x <= 0.75d0) then
tmp = 0.918938533204673d0 + (y * (-0.5d0))
else
tmp = (x * y) - x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= -0.64) {
tmp = x * (y + -1.0);
} else if (x <= 0.75) {
tmp = 0.918938533204673 + (y * -0.5);
} else {
tmp = (x * y) - x;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= -0.64: tmp = x * (y + -1.0) elif x <= 0.75: tmp = 0.918938533204673 + (y * -0.5) else: tmp = (x * y) - x return tmp
function code(x, y) tmp = 0.0 if (x <= -0.64) tmp = Float64(x * Float64(y + -1.0)); elseif (x <= 0.75) tmp = Float64(0.918938533204673 + Float64(y * -0.5)); else tmp = Float64(Float64(x * y) - x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= -0.64) tmp = x * (y + -1.0); elseif (x <= 0.75) tmp = 0.918938533204673 + (y * -0.5); else tmp = (x * y) - x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, -0.64], N[(x * N[(y + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.75], N[(0.918938533204673 + N[(y * -0.5), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] - x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.64:\\
\;\;\;\;x \cdot \left(y + -1\right)\\
\mathbf{elif}\;x \leq 0.75:\\
\;\;\;\;0.918938533204673 + y \cdot -0.5\\
\mathbf{else}:\\
\;\;\;\;x \cdot y - x\\
\end{array}
\end{array}
if x < -0.640000000000000013Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.3%
Simplified99.3%
if -0.640000000000000013 < x < 0.75Initial program 100.0%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6497.7%
Simplified97.7%
if 0.75 < x Initial program 99.9%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6496.9%
Simplified96.9%
distribute-rgt-inN/A
neg-mul-1N/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f6496.9%
Applied egg-rr96.9%
Final simplification98.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (+ y -1.0))))
(if (<= x -0.68)
t_0
(if (<= x 0.92) (+ 0.918938533204673 (* y -0.5)) t_0))))
double code(double x, double y) {
double t_0 = x * (y + -1.0);
double tmp;
if (x <= -0.68) {
tmp = t_0;
} else if (x <= 0.92) {
tmp = 0.918938533204673 + (y * -0.5);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = x * (y + (-1.0d0))
if (x <= (-0.68d0)) then
tmp = t_0
else if (x <= 0.92d0) then
tmp = 0.918938533204673d0 + (y * (-0.5d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x * (y + -1.0);
double tmp;
if (x <= -0.68) {
tmp = t_0;
} else if (x <= 0.92) {
tmp = 0.918938533204673 + (y * -0.5);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x * (y + -1.0) tmp = 0 if x <= -0.68: tmp = t_0 elif x <= 0.92: tmp = 0.918938533204673 + (y * -0.5) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x * Float64(y + -1.0)) tmp = 0.0 if (x <= -0.68) tmp = t_0; elseif (x <= 0.92) tmp = Float64(0.918938533204673 + Float64(y * -0.5)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x * (y + -1.0); tmp = 0.0; if (x <= -0.68) tmp = t_0; elseif (x <= 0.92) tmp = 0.918938533204673 + (y * -0.5); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.68], t$95$0, If[LessEqual[x, 0.92], N[(0.918938533204673 + N[(y * -0.5), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + -1\right)\\
\mathbf{if}\;x \leq -0.68:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.92:\\
\;\;\;\;0.918938533204673 + y \cdot -0.5\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.680000000000000049 or 0.92000000000000004 < x Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6498.2%
Simplified98.2%
if -0.680000000000000049 < x < 0.92000000000000004Initial program 100.0%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6497.7%
Simplified97.7%
Final simplification98.0%
(FPCore (x y) :precision binary64 (let* ((t_0 (* y (+ x -0.5)))) (if (<= y -1.45) t_0 (if (<= y 1.0) (- 0.918938533204673 x) t_0))))
double code(double x, double y) {
double t_0 = y * (x + -0.5);
double tmp;
if (y <= -1.45) {
tmp = t_0;
} else if (y <= 1.0) {
tmp = 0.918938533204673 - x;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (x + (-0.5d0))
if (y <= (-1.45d0)) then
tmp = t_0
else if (y <= 1.0d0) then
tmp = 0.918938533204673d0 - x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (x + -0.5);
double tmp;
if (y <= -1.45) {
tmp = t_0;
} else if (y <= 1.0) {
tmp = 0.918938533204673 - x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = y * (x + -0.5) tmp = 0 if y <= -1.45: tmp = t_0 elif y <= 1.0: tmp = 0.918938533204673 - x else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(y * Float64(x + -0.5)) tmp = 0.0 if (y <= -1.45) tmp = t_0; elseif (y <= 1.0) tmp = Float64(0.918938533204673 - x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = y * (x + -0.5); tmp = 0.0; if (y <= -1.45) tmp = t_0; elseif (y <= 1.0) tmp = 0.918938533204673 - x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.45], t$95$0, If[LessEqual[y, 1.0], N[(0.918938533204673 - x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(x + -0.5\right)\\
\mathbf{if}\;y \leq -1.45:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;0.918938533204673 - x\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -1.44999999999999996 or 1 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6498.6%
Simplified98.6%
if -1.44999999999999996 < y < 1Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
--lowering--.f6497.0%
Simplified97.0%
(FPCore (x y) :precision binary64 (if (<= y -4e-11) (* x (+ y -1.0)) (if (<= y 1.5) (- 0.918938533204673 x) (* y -0.5))))
double code(double x, double y) {
double tmp;
if (y <= -4e-11) {
tmp = x * (y + -1.0);
} else if (y <= 1.5) {
tmp = 0.918938533204673 - x;
} else {
tmp = y * -0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-4d-11)) then
tmp = x * (y + (-1.0d0))
else if (y <= 1.5d0) then
tmp = 0.918938533204673d0 - x
else
tmp = y * (-0.5d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -4e-11) {
tmp = x * (y + -1.0);
} else if (y <= 1.5) {
tmp = 0.918938533204673 - x;
} else {
tmp = y * -0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -4e-11: tmp = x * (y + -1.0) elif y <= 1.5: tmp = 0.918938533204673 - x else: tmp = y * -0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= -4e-11) tmp = Float64(x * Float64(y + -1.0)); elseif (y <= 1.5) tmp = Float64(0.918938533204673 - x); else tmp = Float64(y * -0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -4e-11) tmp = x * (y + -1.0); elseif (y <= 1.5) tmp = 0.918938533204673 - x; else tmp = y * -0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -4e-11], N[(x * N[(y + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5], N[(0.918938533204673 - x), $MachinePrecision], N[(y * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot \left(y + -1\right)\\
\mathbf{elif}\;y \leq 1.5:\\
\;\;\;\;0.918938533204673 - x\\
\mathbf{else}:\\
\;\;\;\;y \cdot -0.5\\
\end{array}
\end{array}
if y < -3.99999999999999976e-11Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6459.0%
Simplified59.0%
if -3.99999999999999976e-11 < y < 1.5Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
--lowering--.f6499.3%
Simplified99.3%
if 1.5 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6496.8%
Simplified96.8%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6451.9%
Simplified51.9%
(FPCore (x y) :precision binary64 (if (<= y -21.0) (* x y) (if (<= y 1.5) (- 0.918938533204673 x) (* y -0.5))))
double code(double x, double y) {
double tmp;
if (y <= -21.0) {
tmp = x * y;
} else if (y <= 1.5) {
tmp = 0.918938533204673 - x;
} else {
tmp = y * -0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-21.0d0)) then
tmp = x * y
else if (y <= 1.5d0) then
tmp = 0.918938533204673d0 - x
else
tmp = y * (-0.5d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -21.0) {
tmp = x * y;
} else if (y <= 1.5) {
tmp = 0.918938533204673 - x;
} else {
tmp = y * -0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -21.0: tmp = x * y elif y <= 1.5: tmp = 0.918938533204673 - x else: tmp = y * -0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= -21.0) tmp = Float64(x * y); elseif (y <= 1.5) tmp = Float64(0.918938533204673 - x); else tmp = Float64(y * -0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -21.0) tmp = x * y; elseif (y <= 1.5) tmp = 0.918938533204673 - x; else tmp = y * -0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -21.0], N[(x * y), $MachinePrecision], If[LessEqual[y, 1.5], N[(0.918938533204673 - x), $MachinePrecision], N[(y * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -21:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq 1.5:\\
\;\;\;\;0.918938533204673 - x\\
\mathbf{else}:\\
\;\;\;\;y \cdot -0.5\\
\end{array}
\end{array}
if y < -21Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified57.9%
if -21 < y < 1.5Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
--lowering--.f6497.0%
Simplified97.0%
if 1.5 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6496.8%
Simplified96.8%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6451.9%
Simplified51.9%
Final simplification78.2%
(FPCore (x y) :precision binary64 (if (<= y -9.2e-5) (* x y) (if (<= y 1.5) 0.918938533204673 (* y -0.5))))
double code(double x, double y) {
double tmp;
if (y <= -9.2e-5) {
tmp = x * y;
} else if (y <= 1.5) {
tmp = 0.918938533204673;
} else {
tmp = y * -0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-9.2d-5)) then
tmp = x * y
else if (y <= 1.5d0) then
tmp = 0.918938533204673d0
else
tmp = y * (-0.5d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -9.2e-5) {
tmp = x * y;
} else if (y <= 1.5) {
tmp = 0.918938533204673;
} else {
tmp = y * -0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -9.2e-5: tmp = x * y elif y <= 1.5: tmp = 0.918938533204673 else: tmp = y * -0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= -9.2e-5) tmp = Float64(x * y); elseif (y <= 1.5) tmp = 0.918938533204673; else tmp = Float64(y * -0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -9.2e-5) tmp = x * y; elseif (y <= 1.5) tmp = 0.918938533204673; else tmp = y * -0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -9.2e-5], N[(x * y), $MachinePrecision], If[LessEqual[y, 1.5], 0.918938533204673, N[(y * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{-5}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq 1.5:\\
\;\;\;\;0.918938533204673\\
\mathbf{else}:\\
\;\;\;\;y \cdot -0.5\\
\end{array}
\end{array}
if y < -9.20000000000000001e-5Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6496.2%
Simplified96.2%
Taylor expanded in x around inf
Simplified56.0%
if -9.20000000000000001e-5 < y < 1.5Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified99.4%
Taylor expanded in x around 0
Simplified47.4%
if 1.5 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6496.8%
Simplified96.8%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6451.9%
Simplified51.9%
Final simplification50.6%
(FPCore (x y) :precision binary64 (if (<= y -1.85) (* y -0.5) (if (<= y 1.5) 0.918938533204673 (* y -0.5))))
double code(double x, double y) {
double tmp;
if (y <= -1.85) {
tmp = y * -0.5;
} else if (y <= 1.5) {
tmp = 0.918938533204673;
} else {
tmp = y * -0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.85d0)) then
tmp = y * (-0.5d0)
else if (y <= 1.5d0) then
tmp = 0.918938533204673d0
else
tmp = y * (-0.5d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.85) {
tmp = y * -0.5;
} else if (y <= 1.5) {
tmp = 0.918938533204673;
} else {
tmp = y * -0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.85: tmp = y * -0.5 elif y <= 1.5: tmp = 0.918938533204673 else: tmp = y * -0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= -1.85) tmp = Float64(y * -0.5); elseif (y <= 1.5) tmp = 0.918938533204673; else tmp = Float64(y * -0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.85) tmp = y * -0.5; elseif (y <= 1.5) tmp = 0.918938533204673; else tmp = y * -0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.85], N[(y * -0.5), $MachinePrecision], If[LessEqual[y, 1.5], 0.918938533204673, N[(y * -0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85:\\
\;\;\;\;y \cdot -0.5\\
\mathbf{elif}\;y \leq 1.5:\\
\;\;\;\;0.918938533204673\\
\mathbf{else}:\\
\;\;\;\;y \cdot -0.5\\
\end{array}
\end{array}
if y < -1.8500000000000001 or 1.5 < y Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6498.6%
Simplified98.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6448.3%
Simplified48.3%
if -1.8500000000000001 < y < 1.5Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified98.8%
Taylor expanded in x around 0
Simplified46.6%
(FPCore (x y) :precision binary64 (+ (* y (+ x -0.5)) (- 0.918938533204673 x)))
double code(double x, double y) {
return (y * (x + -0.5)) + (0.918938533204673 - x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (y * (x + (-0.5d0))) + (0.918938533204673d0 - x)
end function
public static double code(double x, double y) {
return (y * (x + -0.5)) + (0.918938533204673 - x);
}
def code(x, y): return (y * (x + -0.5)) + (0.918938533204673 - x)
function code(x, y) return Float64(Float64(y * Float64(x + -0.5)) + Float64(0.918938533204673 - x)) end
function tmp = code(x, y) tmp = (y * (x + -0.5)) + (0.918938533204673 - x); end
code[x_, y_] := N[(N[(y * N[(x + -0.5), $MachinePrecision]), $MachinePrecision] + N[(0.918938533204673 - x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot \left(x + -0.5\right) + \left(0.918938533204673 - x\right)
\end{array}
Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
(FPCore (x y) :precision binary64 0.918938533204673)
double code(double x, double y) {
return 0.918938533204673;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 0.918938533204673d0
end function
public static double code(double x, double y) {
return 0.918938533204673;
}
def code(x, y): return 0.918938533204673
function code(x, y) return 0.918938533204673 end
function tmp = code(x, y) tmp = 0.918938533204673; end
code[x_, y_] := 0.918938533204673
\begin{array}{l}
\\
0.918938533204673
\end{array}
Initial program 100.0%
sub-negN/A
+-commutativeN/A
sub-negN/A
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
distribute-rgt-neg-inN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
+-commutativeN/A
*-commutativeN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
--lowering--.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified78.6%
Taylor expanded in x around 0
Simplified26.8%
herbie shell --seed 2024161
(FPCore (x y)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))