\[e^{x} - 1\]
Test:
NMSE example 3.7
Bits:
128 bits
Bits error versus x
Time: 8.2 s
Input Error: 25.9
Output Error: 0.2
Log:
Profile: 🕒
\(\left(x \cdot \left(\left(\frac{1}{2} + \frac{1}{8} \cdot x\right) + \left(\frac{1}{48} \cdot x\right) \cdot x\right)\right) \cdot \left(\sqrt{e^{x}} + 1\right)\)
  1. Started with
    \[e^{x} - 1\]
    25.9
  2. Using strategy rm
    25.9
  3. Applied add-sqr-sqrt to get
    \[\color{red}{e^{x}} - 1 \leadsto \color{blue}{{\left(\sqrt{e^{x}}\right)}^2} - 1\]
    26.1
  4. Applied difference-of-sqr-1 to get
    \[\color{red}{{\left(\sqrt{e^{x}}\right)}^2 - 1} \leadsto \color{blue}{\left(\sqrt{e^{x}} + 1\right) \cdot \left(\sqrt{e^{x}} - 1\right)}\]
    26.1
  5. Applied taylor to get
    \[\left(\sqrt{e^{x}} + 1\right) \cdot \left(\sqrt{e^{x}} - 1\right) \leadsto \left(\sqrt{e^{x}} + 1\right) \cdot \left(\frac{1}{8} \cdot {x}^2 + \left(\frac{1}{48} \cdot {x}^{3} + \frac{1}{2} \cdot x\right)\right)\]
    0.2
  6. Taylor expanded around 0 to get
    \[\left(\sqrt{e^{x}} + 1\right) \cdot \color{red}{\left(\frac{1}{8} \cdot {x}^2 + \left(\frac{1}{48} \cdot {x}^{3} + \frac{1}{2} \cdot x\right)\right)} \leadsto \left(\sqrt{e^{x}} + 1\right) \cdot \color{blue}{\left(\frac{1}{8} \cdot {x}^2 + \left(\frac{1}{48} \cdot {x}^{3} + \frac{1}{2} \cdot x\right)\right)}\]
    0.2
  7. Applied simplify to get
    \[\left(\sqrt{e^{x}} + 1\right) \cdot \left(\frac{1}{8} \cdot {x}^2 + \left(\frac{1}{48} \cdot {x}^{3} + \frac{1}{2} \cdot x\right)\right) \leadsto \left(\left(x \cdot \frac{1}{8}\right) \cdot x + \left(x \cdot \frac{1}{2} + {x}^3 \cdot \frac{1}{48}\right)\right) \cdot \left(\sqrt{e^{x}} + 1\right)\]
    0.2

  8. Applied final simplification
  9. Applied simplify to get
    \[\color{red}{\left(\left(x \cdot \frac{1}{8}\right) \cdot x + \left(x \cdot \frac{1}{2} + {x}^3 \cdot \frac{1}{48}\right)\right) \cdot \left(\sqrt{e^{x}} + 1\right)} \leadsto \color{blue}{\left(x \cdot \left(\left(\frac{1}{2} + \frac{1}{8} \cdot x\right) + \left(\frac{1}{48} \cdot x\right) \cdot x\right)\right) \cdot \left(\sqrt{e^{x}} + 1\right)}\]
    0.2

  10. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE example 3.7"
  (- (exp x) 1)
  #:target
  (* x (+ (+ 1 (/ x 2)) (/ (sqr x) 6))))