Average Error: 22.0 → 22.0
Time: 23.6s
Precision: 64
Internal Precision: 1344
\[\frac{-f}{n - f} - 1\]
\[\frac{\frac{f}{n - f} \cdot \frac{f}{n - f} - 1}{1 - \frac{f}{n - f}}\]

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 22.0

    \[\frac{-f}{n - f} - 1\]
  2. Using strategy rm
  3. Applied flip--22.0

    \[\leadsto \color{blue}{\frac{\frac{-f}{n - f} \cdot \frac{-f}{n - f} - 1 \cdot 1}{\frac{-f}{n - f} + 1}}\]
  4. Applied simplify22.0

    \[\leadsto \frac{\color{blue}{\frac{f}{n - f} \cdot \frac{f}{n - f} - 1}}{\frac{-f}{n - f} + 1}\]
  5. Applied simplify22.0

    \[\leadsto \frac{\frac{f}{n - f} \cdot \frac{f}{n - f} - 1}{\color{blue}{1 - \frac{f}{n - f}}}\]

Runtime

Time bar (total: 23.6s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (f n)
  :name "-f/(n-f)-1"
  (- (/ (- f) (- n f)) 1))