Average Error: 29.6 → 0.0
Time: 11.4s
Precision: 64
Internal Precision: 1344
\[1 - \sqrt{1 - s \cdot s}\]
\[\frac{s \cdot s}{1 + \sqrt{1 - s \cdot s}}\]

Error

Bits error versus s

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.6

    \[1 - \sqrt{1 - s \cdot s}\]
  2. Using strategy rm
  3. Applied flip--29.6

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

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

Runtime

Time bar (total: 11.4s)Debug log

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