Average Error: 30.1 → 0
Time: 13.9s
Precision: 64
Internal Precision: 2624
\[\frac{1 - \cos x}{\sin x}\]
\[\tan \left(\frac{x}{2}\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.1

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

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

Runtime

Time bar (total: 13.9s)Debug log

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