
(FPCore (x y) :precision binary64 (* x (exp (* y y))))
double code(double x, double y) {
return x * exp((y * y));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * exp((y * y))
end function
public static double code(double x, double y) {
return x * Math.exp((y * y));
}
def code(x, y): return x * math.exp((y * y))
function code(x, y) return Float64(x * exp(Float64(y * y))) end
function tmp = code(x, y) tmp = x * exp((y * y)); end
code[x_, y_] := N[(x * N[Exp[N[(y * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
x \cdot e^{y \cdot y}
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* x (exp (* y y))))
double code(double x, double y) {
return x * exp((y * y));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * exp((y * y))
end function
public static double code(double x, double y) {
return x * Math.exp((y * y));
}
def code(x, y): return x * math.exp((y * y))
function code(x, y) return Float64(x * exp(Float64(y * y))) end
function tmp = code(x, y) tmp = x * exp((y * y)); end
code[x_, y_] := N[(x * N[Exp[N[(y * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
x \cdot e^{y \cdot y}
(FPCore (x y) :precision binary64 (/ x (pow (exp (- y)) y)))
double code(double x, double y) {
return x / pow(exp(-y), y);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x / (exp(-y) ** y)
end function
public static double code(double x, double y) {
return x / Math.pow(Math.exp(-y), y);
}
def code(x, y): return x / math.pow(math.exp(-y), y)
function code(x, y) return Float64(x / (exp(Float64(-y)) ^ y)) end
function tmp = code(x, y) tmp = x / (exp(-y) ^ y); end
code[x_, y_] := N[(x / N[Power[N[Exp[(-y)], $MachinePrecision], y], $MachinePrecision]), $MachinePrecision]
\frac{x}{{\left(e^{-y}\right)}^{y}}
Initial program 100.0%
lift-*.f64N/A
lift-exp.f64N/A
lift-*.f64N/A
sqr-neg-revN/A
distribute-rgt-neg-outN/A
exp-negN/A
distribute-lft-neg-outN/A
lift-*.f64N/A
mult-flip-revN/A
lower-/.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
*-commutativeN/A
lower-exp.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-neg.f64100.0%
Applied rewrites100.0%
lift-exp.f64N/A
lift-*.f64N/A
exp-prodN/A
lower-pow.f64N/A
lower-exp.f64100.0%
Applied rewrites100.0%
(FPCore (x y) :precision binary64 (/ x (exp (* (- y) y))))
double code(double x, double y) {
return x / exp((-y * y));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x / exp((-y * y))
end function
public static double code(double x, double y) {
return x / Math.exp((-y * y));
}
def code(x, y): return x / math.exp((-y * y))
function code(x, y) return Float64(x / exp(Float64(Float64(-y) * y))) end
function tmp = code(x, y) tmp = x / exp((-y * y)); end
code[x_, y_] := N[(x / N[Exp[N[((-y) * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\frac{x}{e^{\left(-y\right) \cdot y}}
Initial program 100.0%
lift-*.f64N/A
lift-exp.f64N/A
lift-*.f64N/A
sqr-neg-revN/A
distribute-rgt-neg-outN/A
exp-negN/A
distribute-lft-neg-outN/A
lift-*.f64N/A
mult-flip-revN/A
lower-/.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
*-commutativeN/A
lower-exp.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-neg.f64100.0%
Applied rewrites100.0%
(FPCore (x y) :precision binary64 (let* ((t_0 (* (* (* y y) y) y))) (* x (+ 1.0 (sqrt (sqrt (* t_0 t_0)))))))
double code(double x, double y) {
double t_0 = ((y * y) * y) * y;
return x * (1.0 + sqrt(sqrt((t_0 * t_0))));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
t_0 = ((y * y) * y) * y
code = x * (1.0d0 + sqrt(sqrt((t_0 * t_0))))
end function
public static double code(double x, double y) {
double t_0 = ((y * y) * y) * y;
return x * (1.0 + Math.sqrt(Math.sqrt((t_0 * t_0))));
}
def code(x, y): t_0 = ((y * y) * y) * y return x * (1.0 + math.sqrt(math.sqrt((t_0 * t_0))))
function code(x, y) t_0 = Float64(Float64(Float64(y * y) * y) * y) return Float64(x * Float64(1.0 + sqrt(sqrt(Float64(t_0 * t_0))))) end
function tmp = code(x, y) t_0 = ((y * y) * y) * y; tmp = x * (1.0 + sqrt(sqrt((t_0 * t_0)))); end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * y), $MachinePrecision]}, N[(x * N[(1.0 + N[Sqrt[N[Sqrt[N[(t$95$0 * t$95$0), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_0 := \left(\left(y \cdot y\right) \cdot y\right) \cdot y\\
x \cdot \left(1 + \sqrt{\sqrt{t\_0 \cdot t\_0}}\right)
\end{array}
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
Applied rewrites89.6%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
Applied rewrites94.6%
(FPCore (x y)
:precision binary64
(*
(-
(sqrt
(*
(sqrt
(*
(* (* (* (* (fabs y) (fabs y)) (fabs y)) (fabs y)) (fabs y))
(fabs y)))
(fabs y)))
-1.0)
x))double code(double x, double y) {
return (sqrt((sqrt((((((fabs(y) * fabs(y)) * fabs(y)) * fabs(y)) * fabs(y)) * fabs(y))) * fabs(y))) - -1.0) * x;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sqrt((sqrt((((((abs(y) * abs(y)) * abs(y)) * abs(y)) * abs(y)) * abs(y))) * abs(y))) - (-1.0d0)) * x
end function
public static double code(double x, double y) {
return (Math.sqrt((Math.sqrt((((((Math.abs(y) * Math.abs(y)) * Math.abs(y)) * Math.abs(y)) * Math.abs(y)) * Math.abs(y))) * Math.abs(y))) - -1.0) * x;
}
def code(x, y): return (math.sqrt((math.sqrt((((((math.fabs(y) * math.fabs(y)) * math.fabs(y)) * math.fabs(y)) * math.fabs(y)) * math.fabs(y))) * math.fabs(y))) - -1.0) * x
function code(x, y) return Float64(Float64(sqrt(Float64(sqrt(Float64(Float64(Float64(Float64(Float64(abs(y) * abs(y)) * abs(y)) * abs(y)) * abs(y)) * abs(y))) * abs(y))) - -1.0) * x) end
function tmp = code(x, y) tmp = (sqrt((sqrt((((((abs(y) * abs(y)) * abs(y)) * abs(y)) * abs(y)) * abs(y))) * abs(y))) - -1.0) * x; end
code[x_, y_] := N[(N[(N[Sqrt[N[(N[Sqrt[N[(N[(N[(N[(N[(N[Abs[y], $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - -1.0), $MachinePrecision] * x), $MachinePrecision]
\left(\sqrt{\sqrt{\left(\left(\left(\left(\left|y\right| \cdot \left|y\right|\right) \cdot \left|y\right|\right) \cdot \left|y\right|\right) \cdot \left|y\right|\right) \cdot \left|y\right|} \cdot \left|y\right|} - -1\right) \cdot x
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6482.2%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
metadata-evalN/A
lower--.f6482.2%
lift-pow.f64N/A
pow2N/A
lower-*.f6482.2%
Applied rewrites82.2%
rem-square-sqrtN/A
sqrt-unprodN/A
lift-*.f64N/A
lift-sqrt.f6489.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6489.6%
Applied rewrites89.6%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.6%
Applied rewrites67.6%
(FPCore (x y)
:precision binary64
(let* ((t_0 (- (* y y) -1.0)))
(*
(copysign 1.0 x)
(if (<= (fabs x) 2e-223)
(* (fabs x) (* (fabs x) (/ t_0 (fabs x))))
(* (/ (* t_0 y) y) (fabs x))))))double code(double x, double y) {
double t_0 = (y * y) - -1.0;
double tmp;
if (fabs(x) <= 2e-223) {
tmp = fabs(x) * (fabs(x) * (t_0 / fabs(x)));
} else {
tmp = ((t_0 * y) / y) * fabs(x);
}
return copysign(1.0, x) * tmp;
}
public static double code(double x, double y) {
double t_0 = (y * y) - -1.0;
double tmp;
if (Math.abs(x) <= 2e-223) {
tmp = Math.abs(x) * (Math.abs(x) * (t_0 / Math.abs(x)));
} else {
tmp = ((t_0 * y) / y) * Math.abs(x);
}
return Math.copySign(1.0, x) * tmp;
}
def code(x, y): t_0 = (y * y) - -1.0 tmp = 0 if math.fabs(x) <= 2e-223: tmp = math.fabs(x) * (math.fabs(x) * (t_0 / math.fabs(x))) else: tmp = ((t_0 * y) / y) * math.fabs(x) return math.copysign(1.0, x) * tmp
function code(x, y) t_0 = Float64(Float64(y * y) - -1.0) tmp = 0.0 if (abs(x) <= 2e-223) tmp = Float64(abs(x) * Float64(abs(x) * Float64(t_0 / abs(x)))); else tmp = Float64(Float64(Float64(t_0 * y) / y) * abs(x)); end return Float64(copysign(1.0, x) * tmp) end
function tmp_2 = code(x, y) t_0 = (y * y) - -1.0; tmp = 0.0; if (abs(x) <= 2e-223) tmp = abs(x) * (abs(x) * (t_0 / abs(x))); else tmp = ((t_0 * y) / y) * abs(x); end tmp_2 = (sign(x) * abs(1.0)) * tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(y * y), $MachinePrecision] - -1.0), $MachinePrecision]}, N[(N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision] * If[LessEqual[N[Abs[x], $MachinePrecision], 2e-223], N[(N[Abs[x], $MachinePrecision] * N[(N[Abs[x], $MachinePrecision] * N[(t$95$0 / N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t$95$0 * y), $MachinePrecision] / y), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
t_0 := y \cdot y - -1\\
\mathsf{copysign}\left(1, x\right) \cdot \begin{array}{l}
\mathbf{if}\;\left|x\right| \leq 2 \cdot 10^{-223}:\\
\;\;\;\;\left|x\right| \cdot \left(\left|x\right| \cdot \frac{t\_0}{\left|x\right|}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_0 \cdot y}{y} \cdot \left|x\right|\\
\end{array}
\end{array}
if x < 1.9999999999999999e-223Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
Applied rewrites89.6%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
Applied rewrites94.6%
Applied rewrites88.0%
if 1.9999999999999999e-223 < x Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6482.2%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
metadata-evalN/A
lower--.f6482.2%
lift-pow.f64N/A
pow2N/A
lower-*.f6482.2%
Applied rewrites82.2%
lift--.f64N/A
sub-to-mult-revN/A
lift-/.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-/.f64N/A
sub-to-fractionN/A
lift-*.f64N/A
associate-/r*N/A
*-lft-identityN/A
lift-*.f64N/A
sub-to-fraction-revN/A
sub-to-mult-revN/A
associate-/r*N/A
lift-*.f64N/A
lift-/.f64N/A
lift--.f64N/A
associate-*l/N/A
Applied rewrites86.7%
(FPCore (x y) :precision binary64 (* x (+ 1.0 (sqrt (* (* y y) (* y y))))))
double code(double x, double y) {
return x * (1.0 + sqrt(((y * y) * (y * y))));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (1.0d0 + sqrt(((y * y) * (y * y))))
end function
public static double code(double x, double y) {
return x * (1.0 + Math.sqrt(((y * y) * (y * y))));
}
def code(x, y): return x * (1.0 + math.sqrt(((y * y) * (y * y))))
function code(x, y) return Float64(x * Float64(1.0 + sqrt(Float64(Float64(y * y) * Float64(y * y))))) end
function tmp = code(x, y) tmp = x * (1.0 + sqrt(((y * y) * (y * y)))); end
code[x_, y_] := N[(x * N[(1.0 + N[Sqrt[N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x \cdot \left(1 + \sqrt{\left(y \cdot y\right) \cdot \left(y \cdot y\right)}\right)
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
Applied rewrites89.6%
(FPCore (x y) :precision binary64 (* x (* x (/ (- (* y y) -1.0) x))))
double code(double x, double y) {
return x * (x * (((y * y) - -1.0) / x));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (x * (((y * y) - (-1.0d0)) / x))
end function
public static double code(double x, double y) {
return x * (x * (((y * y) - -1.0) / x));
}
def code(x, y): return x * (x * (((y * y) - -1.0) / x))
function code(x, y) return Float64(x * Float64(x * Float64(Float64(Float64(y * y) - -1.0) / x))) end
function tmp = code(x, y) tmp = x * (x * (((y * y) - -1.0) / x)); end
code[x_, y_] := N[(x * N[(x * N[(N[(N[(y * y), $MachinePrecision] - -1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x \cdot \left(x \cdot \frac{y \cdot y - -1}{x}\right)
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
lift-pow.f64N/A
pow2N/A
lower-*.f6489.6%
Applied rewrites89.6%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6494.6%
Applied rewrites94.6%
Applied rewrites88.0%
(FPCore (x y) :precision binary64 (if (<= (fabs y) 1.04e+17) (+ x (* (* (fabs y) x) (fabs y))) (/ (* (* (- (* (fabs y) (fabs y)) -1.0) x) x) x)))
double code(double x, double y) {
double tmp;
if (fabs(y) <= 1.04e+17) {
tmp = x + ((fabs(y) * x) * fabs(y));
} else {
tmp = ((((fabs(y) * fabs(y)) - -1.0) * x) * x) / x;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (abs(y) <= 1.04d+17) then
tmp = x + ((abs(y) * x) * abs(y))
else
tmp = ((((abs(y) * abs(y)) - (-1.0d0)) * x) * x) / x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (Math.abs(y) <= 1.04e+17) {
tmp = x + ((Math.abs(y) * x) * Math.abs(y));
} else {
tmp = ((((Math.abs(y) * Math.abs(y)) - -1.0) * x) * x) / x;
}
return tmp;
}
def code(x, y): tmp = 0 if math.fabs(y) <= 1.04e+17: tmp = x + ((math.fabs(y) * x) * math.fabs(y)) else: tmp = ((((math.fabs(y) * math.fabs(y)) - -1.0) * x) * x) / x return tmp
function code(x, y) tmp = 0.0 if (abs(y) <= 1.04e+17) tmp = Float64(x + Float64(Float64(abs(y) * x) * abs(y))); else tmp = Float64(Float64(Float64(Float64(Float64(abs(y) * abs(y)) - -1.0) * x) * x) / x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (abs(y) <= 1.04e+17) tmp = x + ((abs(y) * x) * abs(y)); else tmp = ((((abs(y) * abs(y)) - -1.0) * x) * x) / x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Abs[y], $MachinePrecision], 1.04e+17], N[(x + N[(N[(N[Abs[y], $MachinePrecision] * x), $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(N[Abs[y], $MachinePrecision] * N[Abs[y], $MachinePrecision]), $MachinePrecision] - -1.0), $MachinePrecision] * x), $MachinePrecision] * x), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;\left|y\right| \leq 1.04 \cdot 10^{+17}:\\
\;\;\;\;x + \left(\left|y\right| \cdot x\right) \cdot \left|y\right|\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\left(\left|y\right| \cdot \left|y\right| - -1\right) \cdot x\right) \cdot x}{x}\\
\end{array}
if y < 1.04e17Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6476.1%
Applied rewrites76.1%
if 1.04e17 < y Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6476.1%
Applied rewrites76.1%
lift-+.f64N/A
sum-to-multN/A
lower-unsound-*.f64N/A
lower-unsound-+.f64N/A
lower-unsound-/.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*r/N/A
lower-/.f64N/A
Applied rewrites61.8%
(FPCore (x y) :precision binary64 (* (- (* y y) -1.0) x))
double code(double x, double y) {
return ((y * y) - -1.0) * x;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((y * y) - (-1.0d0)) * x
end function
public static double code(double x, double y) {
return ((y * y) - -1.0) * x;
}
def code(x, y): return ((y * y) - -1.0) * x
function code(x, y) return Float64(Float64(Float64(y * y) - -1.0) * x) end
function tmp = code(x, y) tmp = ((y * y) - -1.0) * x; end
code[x_, y_] := N[(N[(N[(y * y), $MachinePrecision] - -1.0), $MachinePrecision] * x), $MachinePrecision]
\left(y \cdot y - -1\right) \cdot x
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6482.2%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
metadata-evalN/A
lower--.f6482.2%
lift-pow.f64N/A
pow2N/A
lower-*.f6482.2%
Applied rewrites82.2%
(FPCore (x y) :precision binary64 (+ x (* (* y x) y)))
double code(double x, double y) {
return x + ((y * x) * y);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x + ((y * x) * y)
end function
public static double code(double x, double y) {
return x + ((y * x) * y);
}
def code(x, y): return x + ((y * x) * y)
function code(x, y) return Float64(x + Float64(Float64(y * x) * y)) end
function tmp = code(x, y) tmp = x + ((y * x) * y); end
code[x_, y_] := N[(x + N[(N[(y * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]
x + \left(y \cdot x\right) \cdot y
Initial program 100.0%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6482.2%
Applied rewrites82.2%
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6476.1%
Applied rewrites76.1%
(FPCore (x y) :precision binary64 (* x 1.0))
double code(double x, double y) {
return x * 1.0;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * 1.0d0
end function
public static double code(double x, double y) {
return x * 1.0;
}
def code(x, y): return x * 1.0
function code(x, y) return Float64(x * 1.0) end
function tmp = code(x, y) tmp = x * 1.0; end
code[x_, y_] := N[(x * 1.0), $MachinePrecision]
x \cdot 1
Initial program 100.0%
Taylor expanded in y around 0
Applied rewrites51.7%
herbie shell --seed 2025258
(FPCore (x y)
:name "Data.Number.Erf:$dmerfcx from erf-2.0.0.0"
:precision binary64
(* x (exp (* y y))))