Average Error: 0.1 → 0.1
Time: 646.0ms
Precision: binary64
\[x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001\]
\[x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001\]
x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001
x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001
double code(double x) {
	return ((double) (x - ((double) (((double) (x / ((double) (1.0 + 0.23)))) * 0.23))));
}
double code(double x) {
	return ((double) (x - ((double) (((double) (x / ((double) (1.0 + 0.23)))) * 0.23))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001\]
  2. Final simplification0.1

    \[\leadsto x - \frac{x}{1 + 0.23000000000000001} \cdot 0.23000000000000001\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- x (* (/ x (+ 1 0.23)) 0.23))"
  :precision binary64
  (- x (* (/ x (+ 1.0 0.23)) 0.23)))