Average Error: 0.0 → 0.0
Time: 8.4s
Precision: binary64
Cost: 13120
\[\sin x \cdot \frac{\sinh y}{y} \]
\[\sin x \cdot \frac{\sinh y}{y} \]
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y)))
double code(double x, double y) {
	return sin(x) * (sinh(y) / y);
}
double code(double x, double y) {
	return sin(x) * (sinh(y) / y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = sin(x) * (sinh(y) / y)
end function
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = sin(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
	return Math.sin(x) * (Math.sinh(y) / y);
}
public static double code(double x, double y) {
	return Math.sin(x) * (Math.sinh(y) / y);
}
def code(x, y):
	return math.sin(x) * (math.sinh(y) / y)
def code(x, y):
	return math.sin(x) * (math.sinh(y) / y)
function code(x, y)
	return Float64(sin(x) * Float64(sinh(y) / y))
end
function code(x, y)
	return Float64(sin(x) * Float64(sinh(y) / y))
end
function tmp = code(x, y)
	tmp = sin(x) * (sinh(y) / y);
end
function tmp = code(x, y)
	tmp = sin(x) * (sinh(y) / y);
end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\sin x \cdot \frac{\sinh y}{y}
\sin x \cdot \frac{\sinh y}{y}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\sin x \cdot \frac{\sinh y}{y} \]
  2. Final simplification0.0

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

Alternatives

Alternative 1
Error0.6
Cost19784
\[\begin{array}{l} \mathbf{if}\;\sin x \leq -2 \cdot 10^{-6}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;\sin x \leq 2 \cdot 10^{-73}:\\ \;\;\;\;x \cdot \frac{\sinh y}{y}\\ \mathbf{else}:\\ \;\;\;\;\sin x\\ \end{array} \]
Alternative 2
Error0.7
Cost7360
\[\sin x \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333 + 0.16666666666666666\right)\right) \]
Alternative 3
Error0.8
Cost6976
\[\sin x \cdot \left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \]
Alternative 4
Error1.1
Cost6464
\[\sin x \]
Alternative 5
Error31.4
Cost576
\[x \cdot \left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \]
Alternative 6
Error31.6
Cost64
\[x \]

Error

Reproduce

herbie shell --seed 2023016 
(FPCore (x y)
  :name "Linear.Quaternion:$ccos from linear-1.19.1.3"
  :precision binary64
  (* (sin x) (/ (sinh y) y)))