Average Error: 0.2 → 0.2
Time: 14.4s
Precision: 64
Internal Precision: 576
\[\frac{1}{\sin x} + \cos x\]
\[\cos x + \frac{1}{\sin 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.2

    \[\frac{1}{\sin x} + \cos x\]
  2. Initial simplification0.2

    \[\leadsto \cos x + \frac{1}{\sin x}\]
  3. Final simplification0.2

    \[\leadsto \cos x + \frac{1}{\sin x}\]

Runtime

Time bar (total: 14.4s)Debug log

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