\[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
Test:
simple fma test
Bits:
128 bits
Bits error versus x
Bits error versus y
Bits error versus z
Time: 11.5 s
Input Error: 44.8
Output Error: 21.4
Log:
Profile: 🕒
\(\begin{cases} \left((\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \frac{\frac{1}{x}}{y}\right) - 1 & \text{when } z \le -412513688736.91534 \\ \left((x * y + z)_* - 1\right) - \frac{{\left(y \cdot x\right)}^2 - z \cdot z}{y \cdot x - z} & \text{when } z \le 7.024807901931921 \cdot 10^{+16} \\ \left((\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \frac{\frac{1}{x}}{y}\right) - 1 & \text{otherwise} \end{cases}\)

    if z < -412513688736.91534 or 7.024807901931921e+16 < z

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      61.9
    2. Using strategy rm
      61.9
    3. Applied add-exp-log to get
      \[(x * y + z)_* - \left(1 + \color{red}{\left(x \cdot y + z\right)}\right) \leadsto (x * y + z)_* - \left(1 + \color{blue}{e^{\log \left(x \cdot y + z\right)}}\right)\]
      62.9
    4. Applied taylor to get
      \[(x * y + z)_* - \left(1 + e^{\log \left(x \cdot y + z\right)}\right) \leadsto (\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \left(e^{-\left(\log y + \log x\right)} + 1\right)\]
      55.0
    5. Taylor expanded around -inf to get
      \[\color{red}{(\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \left(e^{-\left(\log y + \log x\right)} + 1\right)} \leadsto \color{blue}{(\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \left(e^{-\left(\log y + \log x\right)} + 1\right)}\]
      55.0
    6. Applied simplify to get
      \[(\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \left(e^{-\left(\log y + \log x\right)} + 1\right) \leadsto \left((\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - \frac{\frac{1}{x}}{y}\right) - 1\]
      13.6

    7. Applied final simplification

    if -412513688736.91534 < z < 7.024807901931921e+16

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      28.6
    2. Using strategy rm
      28.6
    3. Applied flip-+ to get
      \[(x * y + z)_* - \left(1 + \color{red}{\left(x \cdot y + z\right)}\right) \leadsto (x * y + z)_* - \left(1 + \color{blue}{\frac{{\left(x \cdot y\right)}^2 - {z}^2}{x \cdot y - z}}\right)\]
      28.8
    4. Applied taylor to get
      \[(x * y + z)_* - \left(1 + \frac{{\left(x \cdot y\right)}^2 - {z}^2}{x \cdot y - z}\right) \leadsto (x * y + z)_* - \left(1 + \frac{{y}^2 \cdot {x}^2 - {z}^2}{x \cdot y - z}\right)\]
      33.9
    5. Taylor expanded around inf to get
      \[(x * y + z)_* - \left(1 + \frac{\color{red}{{y}^2 \cdot {x}^2 - {z}^2}}{x \cdot y - z}\right) \leadsto (x * y + z)_* - \left(1 + \frac{\color{blue}{{y}^2 \cdot {x}^2 - {z}^2}}{x \cdot y - z}\right)\]
      33.9
    6. Applied simplify to get
      \[(x * y + z)_* - \left(1 + \frac{{y}^2 \cdot {x}^2 - {z}^2}{x \cdot y - z}\right) \leadsto \left((x * y + z)_* - 1\right) - \frac{{x}^2 \cdot \left(y \cdot y\right) - z \cdot z}{y \cdot x - z}\]
      33.9

    7. Applied final simplification
    8. Applied simplify to get
      \[\color{red}{\left((x * y + z)_* - 1\right) - \frac{{x}^2 \cdot \left(y \cdot y\right) - z \cdot z}{y \cdot x - z}} \leadsto \color{blue}{\left((x * y + z)_* - 1\right) - \frac{{\left(y \cdot x\right)}^2 - z \cdot z}{y \cdot x - z}}\]
      28.8

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default))
  #:name "simple fma test"
  (- (fma x y z) (+ 1 (+ (* x y) z)))
  #:target
  -1)