Average Error: 0.0 → 0.0
Time: 29.0s
Precision: 64
Internal Precision: 320
\[\frac{-\left(f + n\right)}{f - n}\]
\[-\log_* (1 + (e^{\frac{f + n}{f - n}} - 1)^*)\]

Error

Bits error versus f

Bits error versus n

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{-\left(f + n\right)}{f - n}\]
  2. Initial simplification0.0

    \[\leadsto -\frac{n + f}{f - n}\]
  3. Using strategy rm
  4. Applied log1p-expm1-u0.0

    \[\leadsto -\color{blue}{\log_* (1 + (e^{\frac{n + f}{f - n}} - 1)^*)}\]
  5. Final simplification0.0

    \[\leadsto -\log_* (1 + (e^{\frac{f + n}{f - n}} - 1)^*)\]

Runtime

Time bar (total: 29.0s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.00.00.00.00%
herbie shell --seed 2018339 +o rules:numerics
(FPCore (f n)
  :name "subtraction fraction"
  (/ (- (+ f n)) (- f n)))