
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / 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 = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / 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 = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
(FPCore (x y) :precision binary64 (* (/ (sin x) x) (sinh y)))
double code(double x, double y) {
return (sin(x) / x) * sinh(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 = (sin(x) / x) * sinh(y)
end function
public static double code(double x, double y) {
return (Math.sin(x) / x) * Math.sinh(y);
}
def code(x, y): return (math.sin(x) / x) * math.sinh(y)
function code(x, y) return Float64(Float64(sin(x) / x) * sinh(y)) end
function tmp = code(x, y) tmp = (sin(x) / x) * sinh(y); end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x}{x} \cdot \sinh y
\end{array}
Initial program 88.6%
lift-/.f64N/A
mult-flipN/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
mult-flip-revN/A
lower-/.f6499.9
Applied rewrites99.9%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 (- INFINITY))
(* (/ (sinh y) x) (* (fma (* x x) -0.16666666666666666 1.0) x))
(if (<= t_0 2e-63) (* (/ (sin x) x) y) (sinh y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (sinh(y) / x) * (fma((x * x), -0.16666666666666666, 1.0) * x);
} else if (t_0 <= 2e-63) {
tmp = (sin(x) / x) * y;
} else {
tmp = sinh(y);
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(sinh(y) / x) * Float64(fma(Float64(x * x), -0.16666666666666666, 1.0) * x)); elseif (t_0 <= 2e-63) tmp = Float64(Float64(sin(x) / x) * y); else tmp = sinh(y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * -0.16666666666666666 + 1.0), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 2e-63], N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * y), $MachinePrecision], N[Sinh[y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\frac{\sinh y}{x} \cdot \left(\mathsf{fma}\left(x \cdot x, -0.16666666666666666, 1\right) \cdot x\right)\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{-63}:\\
\;\;\;\;\frac{\sin x}{x} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000013e-63Initial program 88.6%
Taylor expanded in y around 0
Applied rewrites40.3%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
*-commutativeN/A
lower-*.f6451.6
Applied rewrites51.6%
if 2.00000000000000013e-63 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 (- INFINITY))
(* (/ (sinh y) x) (* (fma (* x x) -0.16666666666666666 1.0) x))
(if (<= t_0 2e-63) (* (/ y x) (sin x)) (sinh y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (sinh(y) / x) * (fma((x * x), -0.16666666666666666, 1.0) * x);
} else if (t_0 <= 2e-63) {
tmp = (y / x) * sin(x);
} else {
tmp = sinh(y);
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(sinh(y) / x) * Float64(fma(Float64(x * x), -0.16666666666666666, 1.0) * x)); elseif (t_0 <= 2e-63) tmp = Float64(Float64(y / x) * sin(x)); else tmp = sinh(y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * -0.16666666666666666 + 1.0), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 2e-63], N[(N[(y / x), $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision], N[Sinh[y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\frac{\sinh y}{x} \cdot \left(\mathsf{fma}\left(x \cdot x, -0.16666666666666666, 1\right) \cdot x\right)\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{-63}:\\
\;\;\;\;\frac{y}{x} \cdot \sin x\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000013e-63Initial program 88.6%
Taylor expanded in y around 0
Applied rewrites40.3%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.4
Applied rewrites63.4%
if 2.00000000000000013e-63 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -1e-197)
(* (/ (sinh y) x) (* (fma (* x x) -0.16666666666666666 1.0) x))
(if (<= t_0 2e-181) (* (/ y x) (* 1.0 x)) (sinh y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -1e-197) {
tmp = (sinh(y) / x) * (fma((x * x), -0.16666666666666666, 1.0) * x);
} else if (t_0 <= 2e-181) {
tmp = (y / x) * (1.0 * x);
} else {
tmp = sinh(y);
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -1e-197) tmp = Float64(Float64(sinh(y) / x) * Float64(fma(Float64(x * x), -0.16666666666666666, 1.0) * x)); elseif (t_0 <= 2e-181) tmp = Float64(Float64(y / x) * Float64(1.0 * x)); else tmp = sinh(y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -1e-197], N[(N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * -0.16666666666666666 + 1.0), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 2e-181], N[(N[(y / x), $MachinePrecision] * N[(1.0 * x), $MachinePrecision]), $MachinePrecision], N[Sinh[y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{-197}:\\
\;\;\;\;\frac{\sinh y}{x} \cdot \left(\mathsf{fma}\left(x \cdot x, -0.16666666666666666, 1\right) \cdot x\right)\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{-181}:\\
\;\;\;\;\frac{y}{x} \cdot \left(1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -9.9999999999999999e-198Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
if -9.9999999999999999e-198 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000009e-181Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
Taylor expanded in x around 0
Applied rewrites50.2%
if 2.00000000000000009e-181 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -1e-197)
(/ (* (* (fma -0.16666666666666666 (* x x) 1.0) x) y) x)
(if (<= t_0 2e-181) (* (/ y x) (* 1.0 x)) (sinh y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -1e-197) {
tmp = ((fma(-0.16666666666666666, (x * x), 1.0) * x) * y) / x;
} else if (t_0 <= 2e-181) {
tmp = (y / x) * (1.0 * x);
} else {
tmp = sinh(y);
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -1e-197) tmp = Float64(Float64(Float64(fma(-0.16666666666666666, Float64(x * x), 1.0) * x) * y) / x); elseif (t_0 <= 2e-181) tmp = Float64(Float64(y / x) * Float64(1.0 * x)); else tmp = sinh(y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -1e-197], N[(N[(N[(N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$0, 2e-181], N[(N[(y / x), $MachinePrecision] * N[(1.0 * x), $MachinePrecision]), $MachinePrecision], N[Sinh[y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{-197}:\\
\;\;\;\;\frac{\left(\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{-181}:\\
\;\;\;\;\frac{y}{x} \cdot \left(1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -9.9999999999999999e-198Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6426.1
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6426.1
Applied rewrites26.1%
if -9.9999999999999999e-198 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000009e-181Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
Taylor expanded in x around 0
Applied rewrites50.2%
if 2.00000000000000009e-181 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -1e-197)
(* (/ (* (fma -0.16666666666666666 (* x x) 1.0) x) x) y)
(if (<= t_0 2e-181) (* (/ y x) (* 1.0 x)) (sinh y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -1e-197) {
tmp = ((fma(-0.16666666666666666, (x * x), 1.0) * x) / x) * y;
} else if (t_0 <= 2e-181) {
tmp = (y / x) * (1.0 * x);
} else {
tmp = sinh(y);
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -1e-197) tmp = Float64(Float64(Float64(fma(-0.16666666666666666, Float64(x * x), 1.0) * x) / x) * y); elseif (t_0 <= 2e-181) tmp = Float64(Float64(y / x) * Float64(1.0 * x)); else tmp = sinh(y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -1e-197], N[(N[(N[(N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision] * x), $MachinePrecision] / x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$0, 2e-181], N[(N[(y / x), $MachinePrecision] * N[(1.0 * x), $MachinePrecision]), $MachinePrecision], N[Sinh[y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{-197}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot x}{x} \cdot y\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{-181}:\\
\;\;\;\;\frac{y}{x} \cdot \left(1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -9.9999999999999999e-198Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
inv-powN/A
exp-to-powN/A
lift-log.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.6%
if -9.9999999999999999e-198 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000009e-181Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
Taylor expanded in x around 0
Applied rewrites50.2%
if 2.00000000000000009e-181 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y) :precision binary64 (if (<= (/ (* (sin x) (sinh y)) x) 2e-181) (* (/ y x) (* 1.0 x)) (sinh y)))
double code(double x, double y) {
double tmp;
if (((sin(x) * sinh(y)) / x) <= 2e-181) {
tmp = (y / x) * (1.0 * x);
} else {
tmp = sinh(y);
}
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(x) * sinh(y)) / x) <= 2d-181) then
tmp = (y / x) * (1.0d0 * x)
else
tmp = sinh(y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (((Math.sin(x) * Math.sinh(y)) / x) <= 2e-181) {
tmp = (y / x) * (1.0 * x);
} else {
tmp = Math.sinh(y);
}
return tmp;
}
def code(x, y): tmp = 0 if ((math.sin(x) * math.sinh(y)) / x) <= 2e-181: tmp = (y / x) * (1.0 * x) else: tmp = math.sinh(y) return tmp
function code(x, y) tmp = 0.0 if (Float64(Float64(sin(x) * sinh(y)) / x) <= 2e-181) tmp = Float64(Float64(y / x) * Float64(1.0 * x)); else tmp = sinh(y); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (((sin(x) * sinh(y)) / x) <= 2e-181) tmp = (y / x) * (1.0 * x); else tmp = sinh(y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 2e-181], N[(N[(y / x), $MachinePrecision] * N[(1.0 * x), $MachinePrecision]), $MachinePrecision], N[Sinh[y], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin x \cdot \sinh y}{x} \leq 2 \cdot 10^{-181}:\\
\;\;\;\;\frac{y}{x} \cdot \left(1 \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2.00000000000000009e-181Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
Taylor expanded in x around 0
Applied rewrites50.2%
if 2.00000000000000009e-181 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
lift-*.f64N/A
*-commutativeN/A
metadata-evalN/A
mult-flipN/A
lift--.f64N/A
lift-exp.f64N/A
lift-/.f64N/A
lift-exp.f64N/A
rec-expN/A
sinh-defN/A
lift-sinh.f6464.3
Applied rewrites64.3%
(FPCore (x y) :precision binary64 (* (/ y x) (* 1.0 x)))
double code(double x, double y) {
return (y / x) * (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 / x) * (1.0d0 * x)
end function
public static double code(double x, double y) {
return (y / x) * (1.0 * x);
}
def code(x, y): return (y / x) * (1.0 * x)
function code(x, y) return Float64(Float64(y / x) * Float64(1.0 * x)) end
function tmp = code(x, y) tmp = (y / x) * (1.0 * x); end
code[x_, y_] := N[(N[(y / x), $MachinePrecision] * N[(1.0 * x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{x} \cdot \left(1 \cdot x\right)
\end{array}
Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6451.5
Applied rewrites51.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6463.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.6
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6463.6
lift-pow.f64N/A
unpow2N/A
lower-*.f6463.6
Applied rewrites63.6%
Taylor expanded in y around 0
Applied rewrites49.3%
Taylor expanded in x around 0
Applied rewrites50.2%
(FPCore (x y) :precision binary64 (if (<= x 6.5e+66) (* (+ y y) 0.5) (* (/ 1.0 x) (* x y))))
double code(double x, double y) {
double tmp;
if (x <= 6.5e+66) {
tmp = (y + y) * 0.5;
} else {
tmp = (1.0 / x) * (x * y);
}
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 (x <= 6.5d+66) then
tmp = (y + y) * 0.5d0
else
tmp = (1.0d0 / x) * (x * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 6.5e+66) {
tmp = (y + y) * 0.5;
} else {
tmp = (1.0 / x) * (x * y);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 6.5e+66: tmp = (y + y) * 0.5 else: tmp = (1.0 / x) * (x * y) return tmp
function code(x, y) tmp = 0.0 if (x <= 6.5e+66) tmp = Float64(Float64(y + y) * 0.5); else tmp = Float64(Float64(1.0 / x) * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 6.5e+66) tmp = (y + y) * 0.5; else tmp = (1.0 / x) * (x * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 6.5e+66], N[(N[(y + y), $MachinePrecision] * 0.5), $MachinePrecision], N[(N[(1.0 / x), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 6.5 \cdot 10^{+66}:\\
\;\;\;\;\left(y + y\right) \cdot 0.5\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{x} \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < 6.5000000000000001e66Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
Taylor expanded in y around 0
lower-*.f6428.5
Applied rewrites28.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6428.5
lift-*.f64N/A
count-2-revN/A
lower-+.f6428.5
Applied rewrites28.5%
if 6.5000000000000001e66 < x Initial program 88.6%
Taylor expanded in x around 0
Applied rewrites53.1%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6453.0
Applied rewrites53.0%
Taylor expanded in y around 0
Applied rewrites23.1%
(FPCore (x y) :precision binary64 (* (+ y y) 0.5))
double code(double x, double y) {
return (y + y) * 0.5;
}
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) * 0.5d0
end function
public static double code(double x, double y) {
return (y + y) * 0.5;
}
def code(x, y): return (y + y) * 0.5
function code(x, y) return Float64(Float64(y + y) * 0.5) end
function tmp = code(x, y) tmp = (y + y) * 0.5; end
code[x_, y_] := N[(N[(y + y), $MachinePrecision] * 0.5), $MachinePrecision]
\begin{array}{l}
\\
\left(y + y\right) \cdot 0.5
\end{array}
Initial program 88.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
lower-/.f64N/A
lower-exp.f6452.2
Applied rewrites52.2%
Taylor expanded in y around 0
lower-*.f6428.5
Applied rewrites28.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6428.5
lift-*.f64N/A
count-2-revN/A
lower-+.f6428.5
Applied rewrites28.5%
herbie shell --seed 2025155
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:precision binary64
(/ (* (sin x) (sinh y)) x))