Average Error: 0.0 → 0.0
Time: 21.1s
Precision: 64
\[{a}^{x} + b \cdot x\]
\[{a}^{x} + b \cdot x\]
{a}^{x} + b \cdot x
{a}^{x} + b \cdot x
double f(double a, double x, double b) {
        double r3995787 = a;
        double r3995788 = x;
        double r3995789 = pow(r3995787, r3995788);
        double r3995790 = b;
        double r3995791 = r3995790 * r3995788;
        double r3995792 = r3995789 + r3995791;
        return r3995792;
}

double f(double a, double x, double b) {
        double r3995793 = a;
        double r3995794 = x;
        double r3995795 = pow(r3995793, r3995794);
        double r3995796 = b;
        double r3995797 = r3995796 * r3995794;
        double r3995798 = r3995795 + r3995797;
        return r3995798;
}

Error

Bits error versus a

Bits error versus x

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[{a}^{x} + b \cdot x\]
  2. Final simplification0.0

    \[\leadsto {a}^{x} + b \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (a x b)
  :name "a^x+b*x"
  (+ (pow a x) (* b x)))