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

Error

Bits error versus x

Bits error versus cos

Bits error versus sin

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 28.3

    \[\frac{\cos \left(2 \cdot x\right)}{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)}\]
  2. Final simplification28.3

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

Reproduce

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