Average Error: 0.1 → 0.1
Time: 6.2s
Precision: 64
Internal Precision: 576
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[\left(0.954929658551372 - \left(x \cdot 0.12900613773279798\right) \cdot x\right) \cdot 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.1

    \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Using strategy rm
  3. Applied associate-*r*0.1

    \[\leadsto 0.954929658551372 \cdot x - \color{blue}{\left(0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x}\]
  4. Using strategy rm
  5. Applied distribute-rgt-out--0.1

    \[\leadsto \color{blue}{x \cdot \left(0.954929658551372 - 0.12900613773279798 \cdot \left(x \cdot x\right)\right)}\]
  6. Using strategy rm
  7. Applied associate-*r*0.1

    \[\leadsto x \cdot \left(0.954929658551372 - \color{blue}{\left(0.12900613773279798 \cdot x\right) \cdot x}\right)\]
  8. Final simplification0.1

    \[\leadsto \left(0.954929658551372 - \left(x \cdot 0.12900613773279798\right) \cdot x\right) \cdot x\]

Runtime

Time bar (total: 6.2s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.10.10.00.10%
herbie shell --seed 2018290 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))