
(FPCore (x y) :precision binary64 (* x (/ (sin y) y)))
double code(double x, double y) {
return x * (sin(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 * (sin(y) / y)
end function
public static double code(double x, double y) {
return x * (Math.sin(y) / y);
}
def code(x, y): return x * (math.sin(y) / y)
function code(x, y) return Float64(x * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = x * (sin(y) / y); end
code[x_, y_] := N[(x * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{\sin y}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* x (/ (sin y) y)))
double code(double x, double y) {
return x * (sin(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 * (sin(y) / y)
end function
public static double code(double x, double y) {
return x * (Math.sin(y) / y);
}
def code(x, y): return x * (math.sin(y) / y)
function code(x, y) return Float64(x * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = x * (sin(y) / y); end
code[x_, y_] := N[(x * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{\sin y}{y}
\end{array}
(FPCore (x y) :precision binary64 (* x (/ (sin y) y)))
double code(double x, double y) {
return x * (sin(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 * (sin(y) / y)
end function
public static double code(double x, double y) {
return x * (Math.sin(y) / y);
}
def code(x, y): return x * (math.sin(y) / y)
function code(x, y) return Float64(x * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = x * (sin(y) / y); end
code[x_, y_] := N[(x * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{\sin y}{y}
\end{array}
Initial program 99.8%
(FPCore (x y)
:precision binary64
(if (<= (/ (sin y) y) 1e-35)
0.0
(*
x
(fma
(* y y)
(fma (* 0.008333333333333333 y) y -0.16666666666666666)
1.0))))
double code(double x, double y) {
double tmp;
if ((sin(y) / y) <= 1e-35) {
tmp = 0.0;
} else {
tmp = x * fma((y * y), fma((0.008333333333333333 * y), y, -0.16666666666666666), 1.0);
}
return tmp;
}
function code(x, y) tmp = 0.0 if (Float64(sin(y) / y) <= 1e-35) tmp = 0.0; else tmp = Float64(x * fma(Float64(y * y), fma(Float64(0.008333333333333333 * y), y, -0.16666666666666666), 1.0)); end return tmp end
code[x_, y_] := If[LessEqual[N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], 1e-35], 0.0, N[(x * N[(N[(y * y), $MachinePrecision] * N[(N[(0.008333333333333333 * y), $MachinePrecision] * y + -0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin y}{y} \leq 10^{-35}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(0.008333333333333333 \cdot y, y, -0.16666666666666666\right), 1\right)\\
\end{array}
\end{array}
if (/.f64 (sin.f64 y) y) < 1.00000000000000001e-35Initial program 99.5%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6499.6
Applied rewrites99.6%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f6431.3
Applied rewrites31.3%
Taylor expanded in y around 0
*-commutativeN/A
associate-/l*N/A
sin-negN/A
sin-PIN/A
metadata-evalN/A
mul0-lft29.4
Applied rewrites29.4%
if 1.00000000000000001e-35 < (/.f64 (sin.f64 y) y) Initial program 100.0%
Taylor expanded in y around 0
+-commutativeN/A
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-+l+N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
Applied rewrites95.6%
Final simplification66.2%
(FPCore (x y) :precision binary64 (if (<= (/ (sin y) y) 1e-64) 0.0 x))
double code(double x, double y) {
double tmp;
if ((sin(y) / y) <= 1e-64) {
tmp = 0.0;
} else {
tmp = 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 ((sin(y) / y) <= 1d-64) then
tmp = 0.0d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((Math.sin(y) / y) <= 1e-64) {
tmp = 0.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y): tmp = 0 if (math.sin(y) / y) <= 1e-64: tmp = 0.0 else: tmp = x return tmp
function code(x, y) tmp = 0.0 if (Float64(sin(y) / y) <= 1e-64) tmp = 0.0; else tmp = x; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((sin(y) / y) <= 1e-64) tmp = 0.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], 1e-64], 0.0, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin y}{y} \leq 10^{-64}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if (/.f64 (sin.f64 y) y) < 9.99999999999999965e-65Initial program 99.6%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6499.6
Applied rewrites99.6%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f6432.9
Applied rewrites32.9%
Taylor expanded in y around 0
*-commutativeN/A
associate-/l*N/A
sin-negN/A
sin-PIN/A
metadata-evalN/A
mul0-lft30.8
Applied rewrites30.8%
if 9.99999999999999965e-65 < (/.f64 (sin.f64 y) y) Initial program 99.9%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6479.0
Applied rewrites79.0%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f646.2
Applied rewrites6.2%
Taylor expanded in y around 0
Applied rewrites91.2%
Final simplification65.7%
(FPCore (x y)
:precision binary64
(if (<= y 10500000000.0)
(fma
(* (* y y) x)
(fma
(* (fma -0.0001984126984126984 (* y y) 0.008333333333333333) y)
y
-0.16666666666666666)
x)
0.0))
double code(double x, double y) {
double tmp;
if (y <= 10500000000.0) {
tmp = fma(((y * y) * x), fma((fma(-0.0001984126984126984, (y * y), 0.008333333333333333) * y), y, -0.16666666666666666), x);
} else {
tmp = 0.0;
}
return tmp;
}
function code(x, y) tmp = 0.0 if (y <= 10500000000.0) tmp = fma(Float64(Float64(y * y) * x), fma(Float64(fma(-0.0001984126984126984, Float64(y * y), 0.008333333333333333) * y), y, -0.16666666666666666), x); else tmp = 0.0; end return tmp end
code[x_, y_] := If[LessEqual[y, 10500000000.0], N[(N[(N[(y * y), $MachinePrecision] * x), $MachinePrecision] * N[(N[(N[(-0.0001984126984126984 * N[(y * y), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] * y), $MachinePrecision] * y + -0.16666666666666666), $MachinePrecision] + x), $MachinePrecision], 0.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 10500000000:\\
\;\;\;\;\mathsf{fma}\left(\left(y \cdot y\right) \cdot x, \mathsf{fma}\left(\mathsf{fma}\left(-0.0001984126984126984, y \cdot y, 0.008333333333333333\right) \cdot y, y, -0.16666666666666666\right), x\right)\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if y < 1.05e10Initial program 99.8%
Taylor expanded in y around 0
Applied rewrites68.7%
if 1.05e10 < y Initial program 99.5%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6499.6
Applied rewrites99.6%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f6421.4
Applied rewrites21.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-/l*N/A
sin-negN/A
sin-PIN/A
metadata-evalN/A
mul0-lft22.7
Applied rewrites22.7%
Final simplification58.6%
(FPCore (x y) :precision binary64 (if (<= y 10500000000.0) (fma (* x y) (* -0.16666666666666666 y) x) 0.0))
double code(double x, double y) {
double tmp;
if (y <= 10500000000.0) {
tmp = fma((x * y), (-0.16666666666666666 * y), x);
} else {
tmp = 0.0;
}
return tmp;
}
function code(x, y) tmp = 0.0 if (y <= 10500000000.0) tmp = fma(Float64(x * y), Float64(-0.16666666666666666 * y), x); else tmp = 0.0; end return tmp end
code[x_, y_] := If[LessEqual[y, 10500000000.0], N[(N[(x * y), $MachinePrecision] * N[(-0.16666666666666666 * y), $MachinePrecision] + x), $MachinePrecision], 0.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 10500000000:\\
\;\;\;\;\mathsf{fma}\left(x \cdot y, -0.16666666666666666 \cdot y, x\right)\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if y < 1.05e10Initial program 99.8%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
associate-*l/N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6485.2
Applied rewrites85.2%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
unpow2N/A
lower-*.f6468.7
Applied rewrites68.7%
Applied rewrites68.7%
if 1.05e10 < y Initial program 99.5%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6499.6
Applied rewrites99.6%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f6421.4
Applied rewrites21.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-/l*N/A
sin-negN/A
sin-PIN/A
metadata-evalN/A
mul0-lft22.7
Applied rewrites22.7%
Final simplification58.6%
(FPCore (x y) :precision binary64 0.0)
double code(double x, double y) {
return 0.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 = 0.0d0
end function
public static double code(double x, double y) {
return 0.0;
}
def code(x, y): return 0.0
function code(x, y) return 0.0 end
function tmp = code(x, y) tmp = 0.0; end
code[x_, y_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 99.8%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
frac-2negN/A
frac-2negN/A
remove-double-negN/A
lower-/.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-lft-neg-inN/A
remove-double-negN/A
lower-*.f6487.7
Applied rewrites87.7%
remove-double-negN/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
mul-1-negN/A
lift-sin.f64N/A
sin-+PI-revN/A
sin-neg-revN/A
lower-sin.f64N/A
lower-neg.f64N/A
lower-+.f64N/A
lower-PI.f6417.4
Applied rewrites17.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-/l*N/A
sin-negN/A
sin-PIN/A
metadata-evalN/A
mul0-lft15.2
Applied rewrites15.2%
Final simplification15.2%
herbie shell --seed 2024350
(FPCore (x y)
:name "Linear.Quaternion:$cexp from linear-1.19.1.3"
:precision binary64
(* x (/ (sin y) y)))