Average Error: 0.0 → 0.0
Time: 53.8s
Precision: 64
Internal Precision: 128
\[e^{-\left(1 - x \cdot x\right)}\]
\[{\left(e^{-\left(\sqrt{x \cdot x} + 1\right)}\right)}^{\left(1 - \sqrt{x \cdot x}\right)}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[e^{-\left(1 - x \cdot x\right)}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.0

    \[\leadsto e^{-\left(1 - \color{blue}{\sqrt{x \cdot x} \cdot \sqrt{x \cdot x}}\right)}\]
  4. Applied *-un-lft-identity0.0

    \[\leadsto e^{-\left(\color{blue}{1 \cdot 1} - \sqrt{x \cdot x} \cdot \sqrt{x \cdot x}\right)}\]
  5. Applied difference-of-squares0.0

    \[\leadsto e^{-\color{blue}{\left(1 + \sqrt{x \cdot x}\right) \cdot \left(1 - \sqrt{x \cdot x}\right)}}\]
  6. Applied distribute-lft-neg-in0.0

    \[\leadsto e^{\color{blue}{\left(-\left(1 + \sqrt{x \cdot x}\right)\right) \cdot \left(1 - \sqrt{x \cdot x}\right)}}\]
  7. Applied exp-prod0.0

    \[\leadsto \color{blue}{{\left(e^{-\left(1 + \sqrt{x \cdot x}\right)}\right)}^{\left(1 - \sqrt{x \cdot x}\right)}}\]
  8. Final simplification0.0

    \[\leadsto {\left(e^{-\left(\sqrt{x \cdot x} + 1\right)}\right)}^{\left(1 - \sqrt{x \cdot x}\right)}\]

Reproduce

herbie shell --seed 2019072 
(FPCore (x)
  :name "exp neg sub"
  (exp (- (- 1 (* x x)))))