Average Error: 30.9 → 0.1
Time: 18.5s
Precision: 64
Internal Precision: 2368
\[\frac{1 - \cos x}{x \cdot \sin x}\]
\[\frac{\tan \left(\frac{x}{2}\right)}{x}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 30.9

    \[\frac{1 - \cos x}{x \cdot \sin x}\]
  2. Applied simplify0.1

    \[\leadsto \color{blue}{\frac{\tan \left(\frac{x}{2}\right)}{x}}\]

Runtime

Time bar (total: 18.5s)Debug log

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