Average Error: 30.2 → 0
Time: 6.5s
Precision: 64
Internal Precision: 2368
\[\sqrt{1 - {\left(\cos x\right)}^{2}}\]
\[\left|\sin 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 30.2

    \[\sqrt{1 - {\left(\cos x\right)}^{2}}\]
  2. Initial simplification0

    \[\leadsto \left|\sin x\right|\]
  3. Final simplification0

    \[\leadsto \left|\sin x\right|\]

Runtime

Time bar (total: 6.5s)Debug log

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