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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 22.1

    \[\frac{\left(42 \cdot \left(x - 17\right)\right) \cdot {x}^{2}}{\sin x}\]
  2. Final simplification22.1

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

Reproduce

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