?

Average Accuracy: 99.8% → 99.8%
Time: 6.3s
Precision: binary64
Cost: 6720

?

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

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 99.8%

    \[x \cdot \frac{\sin y}{y} \]
  2. Final simplification99.8%

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

Alternatives

Alternative 1
Accuracy62.6%
Cost840
\[\begin{array}{l} \mathbf{if}\;y \leq -1.05 \cdot 10^{+36}:\\ \;\;\;\;1 + \left(x + -1\right)\\ \mathbf{elif}\;y \leq 5100000:\\ \;\;\;\;x \cdot \left(1 + \left(y \cdot y\right) \cdot -0.16666666666666666\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + 1\right) + -1\\ \end{array} \]
Alternative 2
Accuracy62.4%
Cost585
\[\begin{array}{l} \mathbf{if}\;y \leq -11500 \lor \neg \left(y \leq 1.95 \cdot 10^{+31}\right):\\ \;\;\;\;1 + \left(x + -1\right)\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 3
Accuracy62.4%
Cost584
\[\begin{array}{l} \mathbf{if}\;y \leq -11500:\\ \;\;\;\;1 + \left(x + -1\right)\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+29}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\left(x + 1\right) + -1\\ \end{array} \]
Alternative 4
Accuracy63.0%
Cost576
\[\frac{x}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]
Alternative 5
Accuracy50.8%
Cost64
\[x \]

Error

Reproduce?

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