Average Error: 0.0 → 0.0
Time: 2.6s
Precision: 64
\[\frac{x + 1}{1 - x}\]
\[\sqrt[3]{{\left(\frac{x + 1}{1 - x}\right)}^{3}}\]
\frac{x + 1}{1 - x}
\sqrt[3]{{\left(\frac{x + 1}{1 - x}\right)}^{3}}
double code(double x) {
	return ((x + 1.0) / (1.0 - x));
}
double code(double x) {
	return cbrt(pow(((x + 1.0) / (1.0 - x)), 3.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.0

    \[\frac{x + 1}{1 - x}\]
  2. Using strategy rm
  3. Applied add-cbrt-cube20.6

    \[\leadsto \frac{x + 1}{\color{blue}{\sqrt[3]{\left(\left(1 - x\right) \cdot \left(1 - x\right)\right) \cdot \left(1 - x\right)}}}\]
  4. Applied add-cbrt-cube21.2

    \[\leadsto \frac{\color{blue}{\sqrt[3]{\left(\left(x + 1\right) \cdot \left(x + 1\right)\right) \cdot \left(x + 1\right)}}}{\sqrt[3]{\left(\left(1 - x\right) \cdot \left(1 - x\right)\right) \cdot \left(1 - x\right)}}\]
  5. Applied cbrt-undiv21.2

    \[\leadsto \color{blue}{\sqrt[3]{\frac{\left(\left(x + 1\right) \cdot \left(x + 1\right)\right) \cdot \left(x + 1\right)}{\left(\left(1 - x\right) \cdot \left(1 - x\right)\right) \cdot \left(1 - x\right)}}}\]
  6. Simplified0.0

    \[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{x + 1}{1 - x}\right)}^{3}}}\]
  7. Final simplification0.0

    \[\leadsto \sqrt[3]{{\left(\frac{x + 1}{1 - x}\right)}^{3}}\]

Reproduce

herbie shell --seed 2020057 
(FPCore (x)
  :name "Prelude:atanh from fay-base-0.20.0.1"
  :precision binary64
  (/ (+ x 1) (- 1 x)))