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

  7. Applied final simplification

Original test:


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