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

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 *-commutative0.5

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

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

Runtime

Time bar (total: 12.3s)Debug log

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