Average Error: 52.5 → 36.4
Time: 33.5s
Precision: 64
\[\alpha \gt -1 \land \beta \gt -1 \land i \gt 1\]
\[\frac{\frac{\left(i \cdot \left(\left(\alpha + \beta\right) + i\right)\right) \cdot \left(\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)\right)}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right)}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right) - 1.0}\]
\[\left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right) \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right)\]
\frac{\frac{\left(i \cdot \left(\left(\alpha + \beta\right) + i\right)\right) \cdot \left(\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)\right)}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right)}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right) - 1.0}
\left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right) \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right)
double f(double alpha, double beta, double i) {
        double r2045894 = i;
        double r2045895 = alpha;
        double r2045896 = beta;
        double r2045897 = r2045895 + r2045896;
        double r2045898 = r2045897 + r2045894;
        double r2045899 = r2045894 * r2045898;
        double r2045900 = r2045896 * r2045895;
        double r2045901 = r2045900 + r2045899;
        double r2045902 = r2045899 * r2045901;
        double r2045903 = 2.0;
        double r2045904 = r2045903 * r2045894;
        double r2045905 = r2045897 + r2045904;
        double r2045906 = r2045905 * r2045905;
        double r2045907 = r2045902 / r2045906;
        double r2045908 = 1.0;
        double r2045909 = r2045906 - r2045908;
        double r2045910 = r2045907 / r2045909;
        return r2045910;
}

double f(double alpha, double beta, double i) {
        double r2045911 = beta;
        double r2045912 = alpha;
        double r2045913 = r2045911 * r2045912;
        double r2045914 = r2045912 + r2045911;
        double r2045915 = i;
        double r2045916 = r2045914 + r2045915;
        double r2045917 = r2045916 * r2045915;
        double r2045918 = r2045913 + r2045917;
        double r2045919 = 2.0;
        double r2045920 = r2045915 * r2045919;
        double r2045921 = r2045914 + r2045920;
        double r2045922 = r2045918 / r2045921;
        double r2045923 = sqrt(r2045922);
        double r2045924 = 1.0;
        double r2045925 = sqrt(r2045924);
        double r2045926 = r2045921 - r2045925;
        double r2045927 = sqrt(r2045926);
        double r2045928 = r2045923 / r2045927;
        double r2045929 = r2045917 / r2045921;
        double r2045930 = sqrt(r2045929);
        double r2045931 = r2045925 + r2045921;
        double r2045932 = sqrt(r2045931);
        double r2045933 = r2045930 / r2045932;
        double r2045934 = r2045928 * r2045933;
        double r2045935 = r2045934 * r2045934;
        return r2045935;
}

Error

Bits error versus alpha

Bits error versus beta

Bits error versus i

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 52.5

    \[\frac{\frac{\left(i \cdot \left(\left(\alpha + \beta\right) + i\right)\right) \cdot \left(\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)\right)}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right)}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right) - 1.0}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt52.5

    \[\leadsto \frac{\frac{\left(i \cdot \left(\left(\alpha + \beta\right) + i\right)\right) \cdot \left(\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)\right)}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right)}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \color{blue}{\sqrt{1.0} \cdot \sqrt{1.0}}}\]
  4. Applied difference-of-squares52.5

    \[\leadsto \frac{\frac{\left(i \cdot \left(\left(\alpha + \beta\right) + i\right)\right) \cdot \left(\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)\right)}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) \cdot \left(\left(\alpha + \beta\right) + 2 \cdot i\right)}}{\color{blue}{\left(\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}\right) \cdot \left(\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}\right)}}\]
  5. Applied times-frac38.2

    \[\leadsto \frac{\color{blue}{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i} \cdot \frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\left(\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}\right) \cdot \left(\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}\right)}\]
  6. Applied times-frac36.3

    \[\leadsto \color{blue}{\frac{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \frac{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\]
  7. Using strategy rm
  8. Applied add-sqr-sqrt36.5

    \[\leadsto \frac{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \frac{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\color{blue}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}} \cdot \sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}}\]
  9. Applied add-sqr-sqrt36.4

    \[\leadsto \frac{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \frac{\color{blue}{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}} \cdot \sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}} \cdot \sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\]
  10. Applied times-frac36.4

    \[\leadsto \frac{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \color{blue}{\left(\frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right)}\]
  11. Applied add-sqr-sqrt36.5

    \[\leadsto \frac{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}{\color{blue}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}}} \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right)\]
  12. Applied add-sqr-sqrt36.4

    \[\leadsto \frac{\color{blue}{\sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}} \cdot \sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}} \cdot \sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}} \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right)\]
  13. Applied times-frac36.4

    \[\leadsto \color{blue}{\left(\frac{\sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}}\right)} \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right)\]
  14. Applied unswap-sqr36.4

    \[\leadsto \color{blue}{\left(\frac{\sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right) \cdot \left(\frac{\sqrt{\frac{i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) + \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\beta \cdot \alpha + i \cdot \left(\left(\alpha + \beta\right) + i\right)}{\left(\alpha + \beta\right) + 2 \cdot i}}}{\sqrt{\left(\left(\alpha + \beta\right) + 2 \cdot i\right) - \sqrt{1.0}}}\right)}\]
  15. Final simplification36.4

    \[\leadsto \left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right) \cdot \left(\frac{\sqrt{\frac{\beta \cdot \alpha + \left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\left(\left(\alpha + \beta\right) + i \cdot 2\right) - \sqrt{1.0}}} \cdot \frac{\sqrt{\frac{\left(\left(\alpha + \beta\right) + i\right) \cdot i}{\left(\alpha + \beta\right) + i \cdot 2}}}{\sqrt{\sqrt{1.0} + \left(\left(\alpha + \beta\right) + i \cdot 2\right)}}\right)\]

Reproduce

herbie shell --seed 2019151 
(FPCore (alpha beta i)
  :name "Octave 3.8, jcobi/4"
  :pre (and (> alpha -1) (> beta -1) (> i 1))
  (/ (/ (* (* i (+ (+ alpha beta) i)) (+ (* beta alpha) (* i (+ (+ alpha beta) i)))) (* (+ (+ alpha beta) (* 2 i)) (+ (+ alpha beta) (* 2 i)))) (- (* (+ (+ alpha beta) (* 2 i)) (+ (+ alpha beta) (* 2 i))) 1.0)))