Average Error: 9.6 → 0.4
Time: 8.1s
Precision: 64
\[\left(x \cdot \log y + z \cdot \log \left(1 - y\right)\right) - t\]
\[\left(x \cdot \log \left(1 \cdot {y}^{\frac{2}{3}}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
\left(x \cdot \log y + z \cdot \log \left(1 - y\right)\right) - t
\left(x \cdot \log \left(1 \cdot {y}^{\frac{2}{3}}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t
double f(double x, double y, double z, double t) {
        double r495819 = x;
        double r495820 = y;
        double r495821 = log(r495820);
        double r495822 = r495819 * r495821;
        double r495823 = z;
        double r495824 = 1.0;
        double r495825 = r495824 - r495820;
        double r495826 = log(r495825);
        double r495827 = r495823 * r495826;
        double r495828 = r495822 + r495827;
        double r495829 = t;
        double r495830 = r495828 - r495829;
        return r495830;
}

double f(double x, double y, double z, double t) {
        double r495831 = x;
        double r495832 = 1.0;
        double r495833 = y;
        double r495834 = 0.6666666666666666;
        double r495835 = pow(r495833, r495834);
        double r495836 = r495832 * r495835;
        double r495837 = log(r495836);
        double r495838 = r495831 * r495837;
        double r495839 = cbrt(r495833);
        double r495840 = log(r495839);
        double r495841 = r495840 * r495831;
        double r495842 = z;
        double r495843 = 1.0;
        double r495844 = log(r495843);
        double r495845 = r495843 * r495833;
        double r495846 = 0.5;
        double r495847 = 2.0;
        double r495848 = pow(r495833, r495847);
        double r495849 = pow(r495843, r495847);
        double r495850 = r495848 / r495849;
        double r495851 = r495846 * r495850;
        double r495852 = r495845 + r495851;
        double r495853 = r495844 - r495852;
        double r495854 = r495842 * r495853;
        double r495855 = r495841 + r495854;
        double r495856 = r495838 + r495855;
        double r495857 = t;
        double r495858 = r495856 - r495857;
        return r495858;
}

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

Target

Original9.6
Target0.3
Herbie0.4
\[\left(-z\right) \cdot \left(\left(0.5 \cdot \left(y \cdot y\right) + y\right) + \frac{0.3333333333333333148296162562473909929395}{1 \cdot \left(1 \cdot 1\right)} \cdot \left(y \cdot \left(y \cdot y\right)\right)\right) - \left(t - x \cdot \log y\right)\]

Derivation

  1. Initial program 9.6

    \[\left(x \cdot \log y + z \cdot \log \left(1 - y\right)\right) - t\]
  2. Taylor expanded around 0 0.3

    \[\leadsto \left(x \cdot \log y + z \cdot \color{blue}{\left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)}\right) - t\]
  3. Using strategy rm
  4. Applied add-cube-cbrt0.3

    \[\leadsto \left(x \cdot \log \color{blue}{\left(\left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) \cdot \sqrt[3]{y}\right)} + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right) - t\]
  5. Applied log-prod0.4

    \[\leadsto \left(x \cdot \color{blue}{\left(\log \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) + \log \left(\sqrt[3]{y}\right)\right)} + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right) - t\]
  6. Applied distribute-lft-in0.4

    \[\leadsto \left(\color{blue}{\left(x \cdot \log \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) + x \cdot \log \left(\sqrt[3]{y}\right)\right)} + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right) - t\]
  7. Applied associate-+l+0.4

    \[\leadsto \color{blue}{\left(x \cdot \log \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) + \left(x \cdot \log \left(\sqrt[3]{y}\right) + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right)} - t\]
  8. Simplified0.4

    \[\leadsto \left(x \cdot \log \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) + \color{blue}{\left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)}\right) - t\]
  9. Using strategy rm
  10. Applied *-un-lft-identity0.4

    \[\leadsto \left(x \cdot \log \left(\sqrt[3]{y} \cdot \sqrt[3]{\color{blue}{1 \cdot y}}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  11. Applied cbrt-prod0.4

    \[\leadsto \left(x \cdot \log \left(\sqrt[3]{y} \cdot \color{blue}{\left(\sqrt[3]{1} \cdot \sqrt[3]{y}\right)}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  12. Applied *-un-lft-identity0.4

    \[\leadsto \left(x \cdot \log \left(\sqrt[3]{\color{blue}{1 \cdot y}} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{y}\right)\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  13. Applied cbrt-prod0.4

    \[\leadsto \left(x \cdot \log \left(\color{blue}{\left(\sqrt[3]{1} \cdot \sqrt[3]{y}\right)} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{y}\right)\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  14. Applied swap-sqr0.4

    \[\leadsto \left(x \cdot \log \color{blue}{\left(\left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right) \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right)\right)} + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  15. Simplified0.4

    \[\leadsto \left(x \cdot \log \left(\color{blue}{1} \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right)\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  16. Simplified0.4

    \[\leadsto \left(x \cdot \log \left(1 \cdot \color{blue}{{y}^{\frac{2}{3}}}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]
  17. Final simplification0.4

    \[\leadsto \left(x \cdot \log \left(1 \cdot {y}^{\frac{2}{3}}\right) + \left(\log \left(\sqrt[3]{y}\right) \cdot x + z \cdot \left(\log 1 - \left(1 \cdot y + \frac{1}{2} \cdot \frac{{y}^{2}}{{1}^{2}}\right)\right)\right)\right) - t\]

Reproduce

herbie shell --seed 2019354 
(FPCore (x y z t)
  :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, B"
  :precision binary64

  :herbie-target
  (- (* (- z) (+ (+ (* 0.5 (* y y)) y) (* (/ 0.3333333333333333 (* 1 (* 1 1))) (* y (* y y))))) (- t (* x (log y))))

  (- (+ (* x (log y)) (* z (log (- 1 y)))) t))