Average Error: 58.3 → 0.7
Time: 23.5s
Precision: 64
Internal Precision: 1344
\[e^{x} - e^{x \cdot x}\]
\[\left(\frac{1}{6} \cdot x - \frac{1}{2}\right) \cdot \left(x \cdot x\right) + x\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.3

    \[e^{x} - e^{x \cdot x}\]
  2. Taylor expanded around 0 0.7

    \[\leadsto \color{blue}{\left(x + \frac{1}{6} \cdot {x}^{3}\right) - \frac{1}{2} \cdot {x}^{2}}\]
  3. Applied simplify0.7

    \[\leadsto \color{blue}{\left(\frac{1}{6} \cdot x - \frac{1}{2}\right) \cdot \left(x \cdot x\right) + x}\]

Runtime

Time bar (total: 23.5s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "exp(x) - exp(x*x)"
  (- (exp x) (exp (* x x))))