Average Error: 15.7 → 15.7
Time: 1.4s
Precision: binary64
\[\frac{{\left(\sin x\right)}^{2}}{{x}^{2}}\]
\[\frac{{\left(\sin x\right)}^{2}}{{x}^{2}}\]
\frac{{\left(\sin x\right)}^{2}}{{x}^{2}}
\frac{{\left(\sin x\right)}^{2}}{{x}^{2}}
double code(double x) {
	return ((double) (((double) pow(((double) sin(x)), 2.0)) / ((double) pow(x, 2.0))));
}
double code(double x) {
	return ((double) (((double) pow(((double) sin(x)), 2.0)) / ((double) pow(x, 2.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 15.7

    \[\frac{{\left(\sin x\right)}^{2}}{{x}^{2}}\]
  2. Final simplification15.7

    \[\leadsto \frac{{\left(\sin x\right)}^{2}}{{x}^{2}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ (pow (sin x) 2) (pow x 2))"
  :precision binary64
  (/ (pow (sin x) 2.0) (pow x 2.0)))