Average Error: 60.2 → 0
Time: 7.1s
Precision: 64
Internal Precision: 1344
\[\sin \left(\pi - x\right)\]
\[\cos \pi \cdot \sin \left(-x\right)\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 60.2

    \[\sin \left(\pi - x\right)\]
  2. Using strategy rm
  3. Applied sub-neg60.2

    \[\leadsto \sin \color{blue}{\left(\pi + \left(-x\right)\right)}\]
  4. Applied sin-sum30.3

    \[\leadsto \color{blue}{\sin \pi \cdot \cos \left(-x\right) + \cos \pi \cdot \sin \left(-x\right)}\]
  5. Simplified0

    \[\leadsto \color{blue}{0} + \cos \pi \cdot \sin \left(-x\right)\]
  6. Final simplification0

    \[\leadsto \cos \pi \cdot \sin \left(-x\right)\]

Runtime

Time bar (total: 7.1s)Debug log

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