Average Error: 0.7 → 0.8
Time: 6.5s
Precision: 64
Internal Precision: 576
\[\sqrt{3 \cdot x} - \sqrt{x}\]
\[\sqrt{x} \cdot \sqrt{3} - \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.7

    \[\sqrt{3 \cdot x} - \sqrt{x}\]
  2. Initial simplification0.7

    \[\leadsto \sqrt{3 \cdot x} - \sqrt{x}\]
  3. Using strategy rm
  4. Applied sqrt-prod0.8

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

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

Runtime

Time bar (total: 6.5s)Debug log

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