Average Error: 29.2 → 29.6
Time: 50.4s
Precision: 64
Internal Precision: 1344
\[\frac{x}{x + 1} - \frac{x + 1}{x - 1}\]
\[\frac{x}{x + 1} - \frac{1}{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \left(\frac{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}}{\sqrt[3]{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}}} \cdot \frac{\sqrt[3]{x + 1}}{\sqrt[3]{\sqrt[3]{x - 1}}}\right)\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.2

    \[\frac{x}{x + 1} - \frac{x + 1}{x - 1}\]
  2. Using strategy rm
  3. Applied add-cube-cbrt29.7

    \[\leadsto \frac{x}{x + 1} - \frac{x + 1}{\color{blue}{\left(\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}\right) \cdot \sqrt[3]{x - 1}}}\]
  4. Applied *-un-lft-identity29.7

    \[\leadsto \frac{x}{x + 1} - \frac{\color{blue}{1 \cdot \left(x + 1\right)}}{\left(\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}\right) \cdot \sqrt[3]{x - 1}}\]
  5. Applied times-frac29.7

    \[\leadsto \frac{x}{x + 1} - \color{blue}{\frac{1}{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \frac{x + 1}{\sqrt[3]{x - 1}}}\]
  6. Using strategy rm
  7. Applied add-cube-cbrt29.7

    \[\leadsto \frac{x}{x + 1} - \frac{1}{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \frac{x + 1}{\sqrt[3]{\color{blue}{\left(\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}\right) \cdot \sqrt[3]{x - 1}}}}\]
  8. Applied cbrt-prod29.7

    \[\leadsto \frac{x}{x + 1} - \frac{1}{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \frac{x + 1}{\color{blue}{\sqrt[3]{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \sqrt[3]{\sqrt[3]{x - 1}}}}\]
  9. Applied add-cube-cbrt29.6

    \[\leadsto \frac{x}{x + 1} - \frac{1}{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \frac{\color{blue}{\left(\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}\right) \cdot \sqrt[3]{x + 1}}}{\sqrt[3]{\sqrt[3]{x - 1} \cdot \sqrt[3]{x - 1}} \cdot \sqrt[3]{\sqrt[3]{x - 1}}}\]
  10. Applied times-frac29.6

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

Runtime

Time bar (total: 50.4s)Debug logProfile

herbie shell --seed 2019053 +o rules:numerics
(FPCore (x)
  :name "Asymptote C"
  (- (/ x (+ x 1)) (/ (+ x 1) (- x 1))))