Average Error: 1.0 → 0
Time: 6.0s
Precision: 64
\[\frac{1 + \sqrt{2}}{5}\]
\[\log \left(e^{\frac{1 + \sqrt{2}}{5}}\right)\]
\frac{1 + \sqrt{2}}{5}
\log \left(e^{\frac{1 + \sqrt{2}}{5}}\right)
double f() {
        double r1441839 = 1.0;
        double r1441840 = 2.0;
        double r1441841 = sqrt(r1441840);
        double r1441842 = r1441839 + r1441841;
        double r1441843 = 5.0;
        double r1441844 = r1441842 / r1441843;
        return r1441844;
}

double f() {
        double r1441845 = 1.0;
        double r1441846 = 2.0;
        double r1441847 = sqrt(r1441846);
        double r1441848 = r1441845 + r1441847;
        double r1441849 = 5.0;
        double r1441850 = r1441848 / r1441849;
        double r1441851 = exp(r1441850);
        double r1441852 = log(r1441851);
        return r1441852;
}

Error

Try it out

Your Program's Arguments

    Results

    Enter valid numbers for all inputs

    Derivation

    1. Initial program 1.0

      \[\frac{1 + \sqrt{2}}{5}\]
    2. Using strategy rm
    3. Applied add-log-exp0

      \[\leadsto \color{blue}{\log \left(e^{\frac{1 + \sqrt{2}}{5}}\right)}\]
    4. Final simplification0

      \[\leadsto \log \left(e^{\frac{1 + \sqrt{2}}{5}}\right)\]

    Reproduce

    herbie shell --seed 1 
    (FPCore ()
      :name "(1+sqrt(2))/ 5"
      :precision binary64
      (/ (+ 1 (sqrt 2)) 5))