
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(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 = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\cosh x \cdot \frac{\sin y}{y}
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(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 = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\cosh x \cdot \frac{\sin y}{y}
(FPCore (x y) :precision binary64 (if (<= (fabs x) 1682343059522311/590295810358705651712) (/ (sin y) y) (* (cosh (fabs x)) (- (* (* y y) -1/6) -1))))
double code(double x, double y) {
double tmp;
if (fabs(x) <= 2.85e-6) {
tmp = sin(y) / y;
} else {
tmp = cosh(fabs(x)) * (((y * y) * -0.16666666666666666) - -1.0);
}
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(x) <= 2.85d-6) then
tmp = sin(y) / y
else
tmp = cosh(abs(x)) * (((y * y) * (-0.16666666666666666d0)) - (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (Math.abs(x) <= 2.85e-6) {
tmp = Math.sin(y) / y;
} else {
tmp = Math.cosh(Math.abs(x)) * (((y * y) * -0.16666666666666666) - -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if math.fabs(x) <= 2.85e-6: tmp = math.sin(y) / y else: tmp = math.cosh(math.fabs(x)) * (((y * y) * -0.16666666666666666) - -1.0) return tmp
function code(x, y) tmp = 0.0 if (abs(x) <= 2.85e-6) tmp = Float64(sin(y) / y); else tmp = Float64(cosh(abs(x)) * Float64(Float64(Float64(y * y) * -0.16666666666666666) - -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (abs(x) <= 2.85e-6) tmp = sin(y) / y; else tmp = cosh(abs(x)) * (((y * y) * -0.16666666666666666) - -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Abs[x], $MachinePrecision], 1682343059522311/590295810358705651712], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], N[(N[Cosh[N[Abs[x], $MachinePrecision]], $MachinePrecision] * N[(N[(N[(y * y), $MachinePrecision] * -1/6), $MachinePrecision] - -1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;\left|x\right| \leq \frac{1682343059522311}{590295810358705651712}:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh \left(\left|x\right|\right) \cdot \left(\left(y \cdot y\right) \cdot \frac{-1}{6} - -1\right)\\
\end{array}
if x < 2.8499999999999998e-6Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
if 2.8499999999999998e-6 < x Initial program 99.9%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6462.8%
Applied rewrites62.8%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
metadata-evalN/A
lower--.f6462.8%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.8%
lift-pow.f64N/A
unpow2N/A
lower-*.f6462.8%
Applied rewrites62.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (sin y) y)))
(if (<= (* (cosh x) t_0) (- INFINITY))
(- (* -1/6 (sqrt (* (* y y) (* y y)))) -1)
t_0)))double code(double x, double y) {
double t_0 = sin(y) / y;
double tmp;
if ((cosh(x) * t_0) <= -((double) INFINITY)) {
tmp = (-0.16666666666666666 * sqrt(((y * y) * (y * y)))) - -1.0;
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x, double y) {
double t_0 = Math.sin(y) / y;
double tmp;
if ((Math.cosh(x) * t_0) <= -Double.POSITIVE_INFINITY) {
tmp = (-0.16666666666666666 * Math.sqrt(((y * y) * (y * y)))) - -1.0;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = math.sin(y) / y tmp = 0 if (math.cosh(x) * t_0) <= -math.inf: tmp = (-0.16666666666666666 * math.sqrt(((y * y) * (y * y)))) - -1.0 else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(sin(y) / y) tmp = 0.0 if (Float64(cosh(x) * t_0) <= Float64(-Inf)) tmp = Float64(Float64(-0.16666666666666666 * sqrt(Float64(Float64(y * y) * Float64(y * y)))) - -1.0); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = sin(y) / y; tmp = 0.0; if ((cosh(x) * t_0) <= -Inf) tmp = (-0.16666666666666666 * sqrt(((y * y) * (y * y)))) - -1.0; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[N[(N[Cosh[x], $MachinePrecision] * t$95$0), $MachinePrecision], (-Infinity)], N[(N[(-1/6 * N[Sqrt[N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - -1), $MachinePrecision], t$95$0]]
\begin{array}{l}
t_0 := \frac{\sin y}{y}\\
\mathbf{if}\;\cosh x \cdot t\_0 \leq -\infty:\\
\;\;\;\;\frac{-1}{6} \cdot \sqrt{\left(y \cdot y\right) \cdot \left(y \cdot y\right)} - -1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
if (*.f64 (cosh.f64 x) (/.f64 (sin.f64 y) y)) < -inf.0Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6433.1%
Applied rewrites33.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
metadata-evalN/A
sub-flipN/A
lift--.f6433.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6433.1%
Applied rewrites33.1%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6435.7%
Applied rewrites35.7%
if -inf.0 < (*.f64 (cosh.f64 x) (/.f64 (sin.f64 y) y)) Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
(FPCore (x y) :precision binary64 (- (* -1/6 (sqrt (* (* y y) (* y y)))) -1))
double code(double x, double y) {
return (-0.16666666666666666 * sqrt(((y * y) * (y * y)))) - -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 = ((-0.16666666666666666d0) * sqrt(((y * y) * (y * y)))) - (-1.0d0)
end function
public static double code(double x, double y) {
return (-0.16666666666666666 * Math.sqrt(((y * y) * (y * y)))) - -1.0;
}
def code(x, y): return (-0.16666666666666666 * math.sqrt(((y * y) * (y * y)))) - -1.0
function code(x, y) return Float64(Float64(-0.16666666666666666 * sqrt(Float64(Float64(y * y) * Float64(y * y)))) - -1.0) end
function tmp = code(x, y) tmp = (-0.16666666666666666 * sqrt(((y * y) * (y * y)))) - -1.0; end
code[x_, y_] := N[(N[(-1/6 * N[Sqrt[N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - -1), $MachinePrecision]
\frac{-1}{6} \cdot \sqrt{\left(y \cdot y\right) \cdot \left(y \cdot y\right)} - -1
Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6433.1%
Applied rewrites33.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
metadata-evalN/A
sub-flipN/A
lift--.f6433.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6433.1%
Applied rewrites33.1%
rem-square-sqrtN/A
sqrt-unprodN/A
lower-sqrt.f64N/A
lower-*.f6435.7%
Applied rewrites35.7%
(FPCore (x y) :precision binary64 (- (* -1/6 (* y y)) -1))
double code(double x, double y) {
return (-0.16666666666666666 * (y * y)) - -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 = ((-0.16666666666666666d0) * (y * y)) - (-1.0d0)
end function
public static double code(double x, double y) {
return (-0.16666666666666666 * (y * y)) - -1.0;
}
def code(x, y): return (-0.16666666666666666 * (y * y)) - -1.0
function code(x, y) return Float64(Float64(-0.16666666666666666 * Float64(y * y)) - -1.0) end
function tmp = code(x, y) tmp = (-0.16666666666666666 * (y * y)) - -1.0; end
code[x_, y_] := N[(N[(-1/6 * N[(y * y), $MachinePrecision]), $MachinePrecision] - -1), $MachinePrecision]
\frac{-1}{6} \cdot \left(y \cdot y\right) - -1
Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6433.1%
Applied rewrites33.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
metadata-evalN/A
sub-flipN/A
lift--.f6433.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6433.1%
Applied rewrites33.1%
(FPCore (x y) :precision binary64 1)
double code(double x, double y) {
return 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 = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1
1
Initial program 99.9%
Taylor expanded in x around 0
lower-/.f64N/A
lower-sin.f6450.8%
Applied rewrites50.8%
Taylor expanded in y around 0
lower-+.f64N/A
lower-*.f64N/A
lower-pow.f6433.1%
Applied rewrites33.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-pow.f64N/A
pow2N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
metadata-evalN/A
sub-flipN/A
lift--.f6433.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6433.1%
Applied rewrites33.1%
Taylor expanded in y around 0
Applied rewrites27.2%
herbie shell --seed 2025271 -o generate:evaluate
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
(* (cosh x) (/ (sin y) y)))