Average Error: 0.1 → 0.1
Time: 9.8s
Precision: 64
Internal Precision: 320
\[\left(2 \cdot \pi\right) \cdot \left(1 - x\right) + y\]
\[y + \left(2 \cdot \pi + \left(2 \cdot \pi\right) \cdot \left(-x\right)\right)\]

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 0.1

    \[\left(2 \cdot \pi\right) \cdot \left(1 - x\right) + y\]
  2. Using strategy rm
  3. Applied sub-neg0.1

    \[\leadsto \left(2 \cdot \pi\right) \cdot \color{blue}{\left(1 + \left(-x\right)\right)} + y\]
  4. Applied distribute-lft-in0.1

    \[\leadsto \color{blue}{\left(\left(2 \cdot \pi\right) \cdot 1 + \left(2 \cdot \pi\right) \cdot \left(-x\right)\right)} + y\]
  5. Final simplification0.1

    \[\leadsto y + \left(2 \cdot \pi + \left(2 \cdot \pi\right) \cdot \left(-x\right)\right)\]

Runtime

Time bar (total: 9.8s)Debug log

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