Average Error: 0.5 → 0.5
Time: 31.4s
Precision: 64
Internal Precision: 576
\[\sqrt{x - 1} \cdot \sqrt{x}\]
\[\sqrt{\sqrt{x - 1} \cdot \sqrt{x}} \cdot \sqrt{\sqrt{x - 1} \cdot \sqrt{x}}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\sqrt{x - 1} \cdot \sqrt{x}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.5

    \[\leadsto \color{blue}{\sqrt{\sqrt{x - 1} \cdot \sqrt{x}} \cdot \sqrt{\sqrt{x - 1} \cdot \sqrt{x}}}\]
  4. Final simplification0.5

    \[\leadsto \sqrt{\sqrt{x - 1} \cdot \sqrt{x}} \cdot \sqrt{\sqrt{x - 1} \cdot \sqrt{x}}\]

Runtime

Time bar (total: 31.4s)Debug logProfile

herbie shell --seed 2018216 
(FPCore (x)
  :name "sqrt times"
  (* (sqrt (- x 1)) (sqrt x)))