Average Error: 15.2 → 0.0
Time: 6.3s
Precision: 64
Internal Precision: 576
\[\sqrt{{x}^{2}} + \sqrt{-x}\]
\[\left|x\right| + \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 15.2

    \[\sqrt{{x}^{2}} + \sqrt{-x}\]
  2. Initial simplification0.0

    \[\leadsto \sqrt{-x} + \left|x\right|\]
  3. Final simplification0.0

    \[\leadsto \left|x\right| + \sqrt{-x}\]

Runtime

Time bar (total: 6.3s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "sqrt(x^2)+sqrt(-x)"
  (+ (sqrt (pow x 2)) (sqrt (- x))))