Average Error: 0.3 → 0.3
Time: 463.0ms
Precision: binary64
\[\frac{x \cdot 3.2999999999999998}{75 \cdot 32768}\]
\[\frac{x \cdot 3.2999999999999998}{75 \cdot 32768}\]
\frac{x \cdot 3.2999999999999998}{75 \cdot 32768}
\frac{x \cdot 3.2999999999999998}{75 \cdot 32768}
double code(double x) {
	return ((double) (((double) (x * 3.3)) / ((double) (75.0 * 32768.0))));
}
double code(double x) {
	return ((double) (((double) (x * 3.3)) / ((double) (75.0 * 32768.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\frac{x \cdot 3.2999999999999998}{75 \cdot 32768}\]
  2. Final simplification0.3

    \[\leadsto \frac{x \cdot 3.2999999999999998}{75 \cdot 32768}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (* x 3.3) (* 75.0 32768.0))"
  :precision binary64
  (/ (* x 3.3) (* 75.0 32768.0)))