Average Error: 0.0 → 1.1
Time: 1.5m
Precision: 64
Internal Precision: 320
\[\frac{1}{x - 1} + \frac{x}{x + 1}\]
\[(e^{\log_* (1 + \left(\frac{1}{x - 1} + \frac{x}{x + 1}\right))} - 1)^*\]

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{1}{x - 1} + \frac{x}{x + 1}\]
  2. Using strategy rm
  3. Applied expm1-log1p-u1.1

    \[\leadsto \color{blue}{(e^{\log_* (1 + \left(\frac{1}{x - 1} + \frac{x}{x + 1}\right))} - 1)^*}\]

Runtime

Time bar (total: 1.5m)Debug logProfile

herbie shell --seed '#(1072967564 1937075727 894099792 790700740 1036514779 1027793188)' +o rules:numerics
(FPCore (x)
  :name "Asymptote B"
  (+ (/ 1 (- x 1)) (/ x (+ x 1))))