Average Error: 0.1 → 0.1
Time: 1.9m
Precision: 64
Internal Precision: 576
\[\left(a - \frac{1.0}{3.0}\right) \cdot \left(1 + \frac{1}{\sqrt{9 \cdot \left(a - \frac{1.0}{3.0}\right)}} \cdot rand\right)\]
\[\left(a - \frac{1.0}{3.0}\right) \cdot \left(1 + \frac{rand}{\sqrt{9 \cdot \left(a - \frac{1.0}{3.0}\right)}}\right)\]

Error

Bits error versus a

Bits error versus rand

Derivation

  1. Initial program 0.1

    \[\left(a - \frac{1.0}{3.0}\right) \cdot \left(1 + \frac{1}{\sqrt{9 \cdot \left(a - \frac{1.0}{3.0}\right)}} \cdot rand\right)\]
  2. Using strategy rm
  3. Applied associate-*l/0.1

    \[\leadsto \left(a - \frac{1.0}{3.0}\right) \cdot \left(1 + \color{blue}{\frac{1 \cdot rand}{\sqrt{9 \cdot \left(a - \frac{1.0}{3.0}\right)}}}\right)\]
  4. Applied simplify0.1

    \[\leadsto \left(a - \frac{1.0}{3.0}\right) \cdot \left(1 + \frac{\color{blue}{rand}}{\sqrt{9 \cdot \left(a - \frac{1.0}{3.0}\right)}}\right)\]

Runtime

Time bar (total: 1.9m)Debug logProfile

herbie shell --seed '#(1071979731 1496239409 439705970 2863295848 982327776 189749553)' +o rules:numerics
(FPCore (a rand)
  :name "Octave 3.8, oct_fill_randg"
  (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))))