Average Error: 36.9 → 0.1
Time: 35.5s
Precision: 64
Internal Precision: 2368
\[\sin \left(x + y\right) - \sin x \cdot \cos y\]
\[\cos x \cdot \sin y\]

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 36.9

    \[\sin \left(x + y\right) - \sin x \cdot \cos y\]
  2. Using strategy rm
  3. Applied sin-sum22.2

    \[\leadsto \color{blue}{\left(\sin x \cdot \cos y + \cos x \cdot \sin y\right)} - \sin x \cdot \cos y\]
  4. Taylor expanded around inf 0.1

    \[\leadsto \color{blue}{\cos x \cdot \sin y}\]

Runtime

Time bar (total: 35.5s)Debug log

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