?

Average Accuracy: 78.0% → 99.9%
Time: 10.4s
Precision: binary64
Cost: 13120

?

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

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original78.0%
Target99.7%
Herbie99.9%
\[\sin x \cdot \frac{\sinh y}{x} \]

Derivation?

  1. Initial program 78.0%

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

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

    [Start]78.0

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

    *-commutative [=>]78.0

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

    associate-/l* [=>]99.9

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

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

Alternatives

Alternative 1
Accuracy99.9%
Cost13120
\[\sinh y \cdot \frac{\sin x}{x} \]
Alternative 2
Accuracy98.2%
Cost6720
\[y \cdot \frac{\sin x}{x} \]
Alternative 3
Accuracy98.2%
Cost6720
\[\frac{y}{\frac{x}{\sin x}} \]
Alternative 4
Accuracy74.7%
Cost841
\[\begin{array}{l} \mathbf{if}\;x \leq -2.7 \cdot 10^{+22} \lor \neg \left(x \leq 2.85 \cdot 10^{+17}\right):\\ \;\;\;\;x \cdot \left(\left(1 + \frac{y}{x}\right) + -1\right)\\ \mathbf{else}:\\ \;\;\;\;y + -0.16666666666666666 \cdot \left(y \cdot \left(x \cdot x\right)\right)\\ \end{array} \]
Alternative 5
Accuracy73.4%
Cost708
\[\begin{array}{l} \mathbf{if}\;x \leq -22:\\ \;\;\;\;x \cdot \left(\left(1 + \frac{y}{x}\right) + -1\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y}{x}\\ \end{array} \]
Alternative 6
Accuracy73.4%
Cost452
\[\begin{array}{l} \mathbf{if}\;x \leq -22:\\ \;\;\;\;\left(y + 1\right) + -1\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y}{x}\\ \end{array} \]
Alternative 7
Accuracy72.5%
Cost320
\[x \cdot \frac{y}{x} \]
Alternative 8
Accuracy51.7%
Cost64
\[y \]

Error

Reproduce?

herbie shell --seed 2023137 
(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))