Average Error: 29.6 → 0
Time: 5.9s
Precision: 64
Internal Precision: 576
\[\sqrt{\frac{1}{x \cdot x}}\]
\[\left|\frac{1}{x}\right|\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.6

    \[\sqrt{\frac{1}{x \cdot x}}\]
  2. Initial simplification29.1

    \[\leadsto \sqrt{\frac{\frac{1}{x}}{x}}\]
  3. Using strategy rm
  4. Applied div-inv29.1

    \[\leadsto \sqrt{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}}\]
  5. Applied rem-sqrt-square0

    \[\leadsto \color{blue}{\left|\frac{1}{x}\right|}\]
  6. Final simplification0

    \[\leadsto \left|\frac{1}{x}\right|\]

Runtime

Time bar (total: 5.9s)Debug log

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