Average Error: 46.2 → 0.3
Time: 11.5s
Precision: binary64
\[i \gt 0.0\]
\[\frac{\frac{\left(i \cdot i\right) \cdot \left(i \cdot i\right)}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right)}}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1}\]
\[\frac{\frac{1}{2 \cdot 2}}{2 \cdot 2 - \frac{1}{i \cdot i}}\]
\frac{\frac{\left(i \cdot i\right) \cdot \left(i \cdot i\right)}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right)}}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1}
\frac{\frac{1}{2 \cdot 2}}{2 \cdot 2 - \frac{1}{i \cdot i}}
double code(double i) {
	return ((((double) (((double) (i * i)) * ((double) (i * i)))) / ((double) (((double) (2.0 * i)) * ((double) (2.0 * i))))) / ((double) (((double) (((double) (2.0 * i)) * ((double) (2.0 * i)))) - 1.0)));
}
double code(double i) {
	return ((1.0 / ((double) (2.0 * 2.0))) / ((double) (((double) (2.0 * 2.0)) - (1.0 / ((double) (i * i))))));
}

Error

Bits error versus i

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 46.2

    \[\frac{\frac{\left(i \cdot i\right) \cdot \left(i \cdot i\right)}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right)}}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1}\]
  2. Simplified0.3

    \[\leadsto \color{blue}{\frac{\frac{1}{2 \cdot 2}}{2 \cdot 2 - \frac{1}{i \cdot i}}}\]
  3. Final simplification0.3

    \[\leadsto \frac{\frac{1}{2 \cdot 2}}{2 \cdot 2 - \frac{1}{i \cdot i}}\]

Reproduce

herbie shell --seed 2020182 
(FPCore (i)
  :name "Octave 3.8, jcobi/4, as called"
  :precision binary64
  :pre (and (> i 0.0))
  (/ (/ (* (* i i) (* i i)) (* (* 2.0 i) (* 2.0 i))) (- (* (* 2.0 i) (* 2.0 i)) 1.0)))