Average Error: 0.2 → 0.2
Time: 5.9s
Precision: 64
Internal Precision: 576
\[\sin x + \cos x\]
\[\cos x + \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

    \[\sin x + \cos x\]
  2. Initial simplification0.2

    \[\leadsto \sin x + \cos x\]
  3. Using strategy rm
  4. Applied add-log-exp0.3

    \[\leadsto \color{blue}{\log \left(e^{\sin x + \cos x}\right)}\]
  5. Taylor expanded around inf 0.2

    \[\leadsto \color{blue}{\cos x + \sin x}\]
  6. Final simplification0.2

    \[\leadsto \cos x + \sin x\]

Runtime

Time bar (total: 5.9s)Debug log

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