\[\frac{e^{x}}{e^{x} - 1}\]
Test:
NMSE section 3.11
Bits:
128 bits
Bits error versus x
Time: 4.0 s
Input Error: 20.0
Output Error: 0.1
Log:
Profile: 🕒
\(\begin{cases} \frac{e^{x}}{e^{x} - 1} & \text{when } x \le -0.00261488f0 \\ \frac{1}{2} + \left(\frac{1}{x} + \frac{1}{12} \cdot x\right) & \text{when } x \le 0.25760502f0 \\ \frac{1}{1 - e^{-x}} & \text{otherwise} \end{cases}\)

    if x < -0.00261488f0

    1. Started with
      \[\frac{e^{x}}{e^{x} - 1}\]
      0.2

    if -0.00261488f0 < x < 0.25760502f0

    1. Started with
      \[\frac{e^{x}}{e^{x} - 1}\]
      27.2
    2. Applied taylor to get
      \[\frac{e^{x}}{e^{x} - 1} \leadsto \frac{1}{2} + \left(\frac{1}{x} + \frac{1}{12} \cdot x\right)\]
      0.0
    3. Taylor expanded around 0 to get
      \[\color{red}{\frac{1}{2} + \left(\frac{1}{x} + \frac{1}{12} \cdot x\right)} \leadsto \color{blue}{\frac{1}{2} + \left(\frac{1}{x} + \frac{1}{12} \cdot x\right)}\]
      0.0

    if 0.25760502f0 < x

    1. Started with
      \[\frac{e^{x}}{e^{x} - 1}\]
      28.0
    2. Using strategy rm
      28.0
    3. Applied clear-num to get
      \[\color{red}{\frac{e^{x}}{e^{x} - 1}} \leadsto \color{blue}{\frac{1}{\frac{e^{x} - 1}{e^{x}}}}\]
      28.0
    4. Applied simplify to get
      \[\frac{1}{\color{red}{\frac{e^{x} - 1}{e^{x}}}} \leadsto \frac{1}{\color{blue}{1 - e^{-x}}}\]
      0.0

  1. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE section 3.11"
  (/ (exp x) (- (exp x) 1))
  #:target
  (/ 1 (- 1 (exp (- x)))))