Average Error: 46.4 → 0.3
Time: 1.4s
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}\]
\[\begin{array}{l} \mathbf{if}\;i \le 0.49700477257967424:\\ \;\;\;\;i \cdot \left(i \cdot \left(-0.25\right)\right) - \left(1 \cdot {i}^{4} + 4 \cdot {i}^{6}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{0.00390625}{{i}^{4}} + \left(\frac{0.015625}{i \cdot i} + 0.0625\right)\\ \end{array}\]

Error

Bits error versus i

Derivation

  1. Split input into 2 regimes
  2. if i < 0.49700477257967424

    1. Initial program 45.4

      \[\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.1

      \[\leadsto \color{blue}{\frac{i}{2 \cdot \left(2 \cdot \left(i \cdot \left(2 \cdot 2\right) - \frac{1}{i}\right)\right)}}\]
    3. Taylor expanded around 0 0.3

      \[\leadsto \color{blue}{-\left(0.25 \cdot {i}^{2} + \left(1 \cdot {i}^{4} + 4 \cdot {i}^{6}\right)\right)}\]
    4. Simplified0.3

      \[\leadsto \color{blue}{i \cdot \left(-i \cdot 0.25\right) - \left(1 \cdot {i}^{4} + 4 \cdot {i}^{6}\right)}\]

    if 0.49700477257967424 < i

    1. Initial program 47.4

      \[\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.1

      \[\leadsto \color{blue}{\frac{i}{2 \cdot \left(2 \cdot \left(i \cdot \left(2 \cdot 2\right) - \frac{1}{i}\right)\right)}}\]
    3. Taylor expanded around inf 0.2

      \[\leadsto \color{blue}{0.00390625 \cdot \frac{1}{{i}^{4}} + \left(0.015625 \cdot \frac{1}{{i}^{2}} + 0.0625\right)}\]
    4. Simplified0.2

      \[\leadsto \color{blue}{\frac{0.00390625}{{i}^{4}} + \left(\frac{0.015625}{i \cdot i} + 0.0625\right)}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification0.3

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \le 0.49700477257967424:\\ \;\;\;\;i \cdot \left(i \cdot \left(-0.25\right)\right) - \left(1 \cdot {i}^{4} + 4 \cdot {i}^{6}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{0.00390625}{{i}^{4}} + \left(\frac{0.015625}{i \cdot i} + 0.0625\right)\\ \end{array}\]

Reproduce

herbie shell --seed 2020179 
(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)))