Average Error: 38.8 → 0.2
Time: 7.7s
Precision: 64
Internal Precision: 1344
\[1 - \sqrt{1 - a}\]
\[\frac{a}{1 + \sqrt{1 - a}}\]

Error

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 38.8

    \[1 - \sqrt{1 - a}\]
  2. Using strategy rm
  3. Applied flip--38.9

    \[\leadsto \color{blue}{\frac{1 \cdot 1 - \sqrt{1 - a} \cdot \sqrt{1 - a}}{1 + \sqrt{1 - a}}}\]
  4. Applied simplify0.2

    \[\leadsto \frac{\color{blue}{a}}{1 + \sqrt{1 - a}}\]

Runtime

Time bar (total: 7.7s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (a)
  :name "1-sqrt(1-a)"
  (- 1 (sqrt (- 1 a))))