Average Error: 0.2 → 0.2
Time: 45.3s
Precision: 64
Internal Precision: 384
\[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot m\]
\[\left(m - m \cdot m\right) \cdot \frac{m}{v} - m\]

Error

Bits error versus m

Bits error versus v

Derivation

  1. Initial program 0.2

    \[\left(\frac{m \cdot \left(1 - m\right)}{v} - 1\right) \cdot m\]
  2. Taylor expanded around 0 6.8

    \[\leadsto \color{blue}{\frac{{m}^{2}}{v} - \left(\frac{{m}^{3}}{v} + m\right)}\]
  3. Applied simplify0.2

    \[\leadsto \color{blue}{\left(m - m \cdot m\right) \cdot \frac{m}{v} - m}\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 45.3s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(FPCore (m v)
  :name "a parameter of renormalized beta distribution"
  :pre (and (< 0 m) (< 0 v) (< v 0.25))
  (* (- (/ (* m (- 1 m)) v) 1) m))