\[(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: 18.0 s
Input Error: 20.1
Output Error: 3.9
Log:
Profile: 🕒
\(\begin{cases} (\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - 1 & \text{when } z \le -1.6837843f+09 \\ \left((x * y + z)_* - y \cdot x\right) - \left(z + 1\right) & \text{when } z \le 407.07465f0 \\ (\left(\frac{-1}{x}\right) * \left(\frac{-1}{y}\right) + \left(\frac{-1}{z}\right))_* - 1 & \text{otherwise} \end{cases}\)

    if z < -1.6837843f+09

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

    7. Applied final simplification

    if -1.6837843f+09 < z < 407.07465f0

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      13.3
    2. Using strategy rm
      13.3
    3. Applied associate--r+ to get
      \[\color{red}{(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)} \leadsto \color{blue}{\left((x * y + z)_* - 1\right) - \left(x \cdot y + z\right)}\]
      10.3
    4. Using strategy rm
      10.3
    5. Applied associate--r+ to get
      \[\color{red}{\left((x * y + z)_* - 1\right) - \left(x \cdot y + z\right)} \leadsto \color{blue}{\left(\left((x * y + z)_* - 1\right) - x \cdot y\right) - z}\]
      10.9
    6. Applied taylor to get
      \[\left(\left((x * y + z)_* - 1\right) - x \cdot y\right) - z \leadsto \left((x * y + z)_* - \left(y \cdot x + 1\right)\right) - z\]
      13.2
    7. Taylor expanded around 0 to get
      \[\color{red}{\left((x * y + z)_* - \left(y \cdot x + 1\right)\right)} - z \leadsto \color{blue}{\left((x * y + z)_* - \left(y \cdot x + 1\right)\right)} - z\]
      13.2
    8. Applied simplify to get
      \[\left((x * y + z)_* - \left(y \cdot x + 1\right)\right) - z \leadsto \left((x * y + z)_* - y \cdot x\right) - \left(z + 1\right)\]
      6.3

    9. Applied final simplification

    if 407.07465f0 < z

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

    7. Applied final simplification

  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)