Average Error: 0.0 → 0.0
Time: 3.8s
Precision: binary64
\[\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{2 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}\]
\[\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{{2}^{3} + {\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)}^{3}} \cdot \left(2 \cdot 2 + \left(\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) - 2 \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)\right)\right)\]
\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{2 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}
\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{{2}^{3} + {\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)}^{3}} \cdot \left(2 \cdot 2 + \left(\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) - 2 \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)\right)\right)
double code(double t) {
	return ((double) (((double) (1.0 + ((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))))))) / ((double) (2.0 + ((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t))))))))));
}
double code(double t) {
	return ((double) (((double) (((double) (1.0 + ((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))))))) / ((double) (((double) pow(2.0, 3.0)) + ((double) pow(((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))))), 3.0)))))) * ((double) (((double) (2.0 * 2.0)) + ((double) (((double) (((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))))) * ((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))))))) - ((double) (2.0 * ((double) (((double) (((double) (2.0 * t)) / ((double) (1.0 + t)))) * ((double) (((double) (2.0 * t)) / ((double) (1.0 + t))))))))))))));
}

Error

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{2 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}\]
  2. Using strategy rm
  3. Applied flip3-+0.0

    \[\leadsto \frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{\color{blue}{\frac{{2}^{3} + {\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)}^{3}}{2 \cdot 2 + \left(\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) - 2 \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)\right)}}}\]
  4. Applied associate-/r/0.0

    \[\leadsto \color{blue}{\frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{{2}^{3} + {\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)}^{3}} \cdot \left(2 \cdot 2 + \left(\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) - 2 \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)\right)\right)}\]
  5. Final simplification0.0

    \[\leadsto \frac{1 + \frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}}{{2}^{3} + {\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)}^{3}} \cdot \left(2 \cdot 2 + \left(\left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right) - 2 \cdot \left(\frac{2 \cdot t}{1 + t} \cdot \frac{2 \cdot t}{1 + t}\right)\right)\right)\]

Reproduce

herbie shell --seed 2020174 
(FPCore (t)
  :name "Kahan p13 Example 1"
  :precision binary64
  (/ (+ 1.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t)))) (+ 2.0 (* (/ (* 2.0 t) (+ 1.0 t)) (/ (* 2.0 t) (+ 1.0 t))))))