?

Average Accuracy: 88.8% → 99.9%
Time: 9.9s
Precision: binary64
Cost: 13120

?

\[\frac{\sin x \cdot \sinh y}{x} \]
\[\frac{\sin x}{x} \cdot \sinh y \]
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
(FPCore (x y) :precision binary64 (* (/ (sin x) x) (sinh y)))
double code(double x, double y) {
	return (sin(x) * sinh(y)) / x;
}
double code(double x, double y) {
	return (sin(x) / x) * sinh(y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (sin(x) * sinh(y)) / x
end function
real(8) function code(x, y)
    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) * Math.sinh(y)) / x;
}
public static double code(double x, double y) {
	return (Math.sin(x) / x) * Math.sinh(y);
}
def code(x, y):
	return (math.sin(x) * math.sinh(y)) / x
def code(x, y):
	return (math.sin(x) / x) * math.sinh(y)
function code(x, y)
	return Float64(Float64(sin(x) * sinh(y)) / x)
end
function code(x, y)
	return Float64(Float64(sin(x) / x) * sinh(y))
end
function tmp = code(x, y)
	tmp = (sin(x) * sinh(y)) / x;
end
function tmp = code(x, y)
	tmp = (sin(x) / x) * sinh(y);
end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision]
\frac{\sin x \cdot \sinh y}{x}
\frac{\sin x}{x} \cdot \sinh y

Error?

Bogosity?

Bogosity

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original88.8%
Target99.8%
Herbie99.9%
\[\sin x \cdot \frac{\sinh y}{x} \]

Derivation?

  1. Initial program 88.5%

    \[\frac{\sin x \cdot \sinh y}{x} \]
  2. Simplified99.9%

    \[\leadsto \color{blue}{\frac{\sin x}{x} \cdot \sinh y} \]
    Proof

    [Start]88.5

    \[ \frac{\sin x \cdot \sinh y}{x} \]

    associate-*l/ [<=]99.9

    \[ \color{blue}{\frac{\sin x}{x} \cdot \sinh y} \]
  3. Final simplification99.9%

    \[\leadsto \frac{\sin x}{x} \cdot \sinh y \]

Alternatives

Alternative 1
Accuracy86.8%
Cost19784
\[\begin{array}{l} \mathbf{if}\;\sinh y \leq -2 \cdot 10^{-7}:\\ \;\;\;\;\sinh y\\ \mathbf{elif}\;\sinh y \leq 4000:\\ \;\;\;\;\frac{y}{\frac{x}{\sin x}}\\ \mathbf{else}:\\ \;\;\;\;\sinh y\\ \end{array} \]
Alternative 2
Accuracy73.6%
Cost19528
\[\begin{array}{l} \mathbf{if}\;\sinh y \leq -5 \cdot 10^{-58}:\\ \;\;\;\;\sinh y\\ \mathbf{elif}\;\sinh y \leq 2 \cdot 10^{-64}:\\ \;\;\;\;x \cdot \frac{y}{x}\\ \mathbf{else}:\\ \;\;\;\;\sinh y\\ \end{array} \]
Alternative 3
Accuracy58.6%
Cost841
\[\begin{array}{l} \mathbf{if}\;y \leq -1.4 \cdot 10^{+154} \lor \neg \left(y \leq 3.2 \cdot 10^{+162}\right):\\ \;\;\;\;\frac{y \cdot \left(y + 2\right)}{y + 2}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y}{x}\\ \end{array} \]
Alternative 4
Accuracy50.4%
Cost840
\[\begin{array}{l} \mathbf{if}\;x \leq 1.6 \cdot 10^{-72}:\\ \;\;\;\;x \cdot \frac{y}{x}\\ \mathbf{elif}\;x \leq 4 \cdot 10^{+180}:\\ \;\;\;\;y \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y + 1\right) + -1\\ \end{array} \]
Alternative 5
Accuracy50.3%
Cost320
\[x \cdot \frac{y}{x} \]
Alternative 6
Accuracy2.7%
Cost64
\[0.0009765625 \]
Alternative 7
Accuracy27.7%
Cost64
\[y \]

Error

Reproduce?

herbie shell --seed 2023160 
(FPCore (x y)
  :name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
  :precision binary64

  :herbie-target
  (* (sin x) (/ (sinh y) x))

  (/ (* (sin x) (sinh y)) x))