\[\left(e^{x} - 2\right) + e^{-x}\]
Test:
NMSE problem 3.3.7
Bits:
128 bits
Bits error versus x
Time: 7.0 s
Input Error: 13.7
Output Error: 1.0
Log:
Profile: 🕒
\((\left(\log \left(e^{{x}^{6}}\right)\right) * \frac{1}{360} + \left((\left({x}^{4}\right) * \frac{1}{12} + \left({x}^2\right))_*\right))_*\)
  1. Started with
    \[\left(e^{x} - 2\right) + e^{-x}\]
    13.7
  2. Applied taylor to get
    \[\left(e^{x} - 2\right) + e^{-x} \leadsto {x}^2 + \left(\frac{1}{12} \cdot {x}^{4} + \frac{1}{360} \cdot {x}^{6}\right)\]
    0.0
  3. Taylor expanded around 0 to get
    \[\color{red}{{x}^2 + \left(\frac{1}{12} \cdot {x}^{4} + \frac{1}{360} \cdot {x}^{6}\right)} \leadsto \color{blue}{{x}^2 + \left(\frac{1}{12} \cdot {x}^{4} + \frac{1}{360} \cdot {x}^{6}\right)}\]
    0.0
  4. Applied simplify to get
    \[\color{red}{{x}^2 + \left(\frac{1}{12} \cdot {x}^{4} + \frac{1}{360} \cdot {x}^{6}\right)} \leadsto \color{blue}{(\left({x}^{6}\right) * \frac{1}{360} + \left((\left({x}^{4}\right) * \frac{1}{12} + \left({x}^2\right))_*\right))_*}\]
    0.0
  5. Using strategy rm
    0.0
  6. Applied add-log-exp to get
    \[(\color{red}{\left({x}^{6}\right)} * \frac{1}{360} + \left((\left({x}^{4}\right) * \frac{1}{12} + \left({x}^2\right))_*\right))_* \leadsto (\color{blue}{\left(\log \left(e^{{x}^{6}}\right)\right)} * \frac{1}{360} + \left((\left({x}^{4}\right) * \frac{1}{12} + \left({x}^2\right))_*\right))_*\]
    1.0

  7. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE problem 3.3.7"
  (+ (- (exp x) 2) (exp (- x)))
  #:target
  (* 4 (sqr (sinh (/ x 2)))))