Average Error: 6.8 → 0.4
Time: 9.9s
Precision: binary64
\[\]
\[\]
double code(double x, double y, double z, double t) {
	return (((x - 1.0) * log(y)) + ((z - 1.0) * log(1.0 - y))) - t;
}
double code(double x, double y, double z, double t) {
	return (((x - 1.0) * log(sqrt(y))) + (((x - 1.0) * (log(fabs(pow(y, 0.3333333333333333))) + log(sqrt(cbrt(y))))) + ((z - 1.0) * (log(1.0) - ((1.0 * y) + (0.5 * ((y * y) / (1.0 * 1.0)))))))) - t;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 6.8

    \[\]
  2. Taylor expanded around 0 0.4

    \[\leadsto \]
  3. Simplified0.4

    \[\leadsto \]
  4. Using strategy rm
  5. Applied add-sqr-sqrt0.4

    \[\leadsto \]
  6. Applied log-prod0.4

    \[\leadsto \]
  7. Applied distribute-lft-in0.4

    \[\leadsto \]
  8. Applied associate-+l+0.4

    \[\leadsto \]
  9. Using strategy rm
  10. Applied add-cube-cbrt0.4

    \[\leadsto \]
  11. Applied sqrt-prod0.4

    \[\leadsto \]
  12. Applied log-prod0.4

    \[\leadsto \]
  13. Simplified0.4

    \[\leadsto \]
  14. Using strategy rm
  15. Applied pow1/30.4

    \[\leadsto \]
  16. Final simplification0.4

    \[\leadsto \]

Reproduce

herbie shell --seed 2020338 
(FPCore (x y z t)
  :name "Statistics.Distribution.Beta:$cdensity from math-functions-0.1.5.2"
  :precision binary64
  (- (+ (* (- x 1.0) (log y)) (* (- z 1.0) (log (- 1.0 y)))) t))