\[(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: 17.2 s
Input Error: 19.8
Output Error: 4.7
Log:
Profile: 🕒
\(\begin{cases} (\left(\frac{1}{x}\right) * \left(\frac{1}{y}\right) + \left(\frac{1}{z}\right))_* - 1 & \text{when } z \le -311.31357f0 \\ \left((x * y + z)_* - y \cdot x\right) - \left(z + 1\right) & \text{when } z \le 348.43628f0 \\ \frac{1}{\frac{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)}{{\left((x * y + z)_*\right)}^3 - 1}} - \left(x \cdot y + z\right) & \text{when } z \le 2.6464063f+18 \\ (\left(\frac{1}{x}\right) * \left(\frac{1}{y}\right) + \left(\frac{1}{z}\right))_* - 1 & \text{otherwise} \end{cases}\)

    if z < -311.31357f0

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      30.3
    2. Using strategy rm
      30.3
    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.0
    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 -311.31357f0 < z < 348.43628f0

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      12.7
    2. Using strategy rm
      12.7
    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)}\]
      9.8
    4. Using strategy rm
      9.8
    5. Applied add-log-exp to get
      \[\left((x * y + z)_* - 1\right) - \color{red}{\left(x \cdot y + z\right)} \leadsto \left((x * y + z)_* - 1\right) - \color{blue}{\log \left(e^{x \cdot y + z}\right)}\]
      15.0
    6. Applied add-log-exp to get
      \[\color{red}{\left((x * y + z)_* - 1\right)} - \log \left(e^{x \cdot y + z}\right) \leadsto \color{blue}{\log \left(e^{(x * y + z)_* - 1}\right)} - \log \left(e^{x \cdot y + z}\right)\]
      15.4
    7. Applied diff-log to get
      \[\color{red}{\log \left(e^{(x * y + z)_* - 1}\right) - \log \left(e^{x \cdot y + z}\right)} \leadsto \color{blue}{\log \left(\frac{e^{(x * y + z)_* - 1}}{e^{x \cdot y + z}}\right)}\]
      15.3
    8. Applied simplify to get
      \[\log \color{red}{\left(\frac{e^{(x * y + z)_* - 1}}{e^{x \cdot y + z}}\right)} \leadsto \log \color{blue}{\left(e^{\left((x * y + z)_* - \left(1 + z\right)\right) - y \cdot x}\right)}\]
      10.3
    9. Applied taylor to get
      \[\log \left(e^{\left((x * y + z)_* - \left(1 + z\right)\right) - y \cdot x}\right) \leadsto \log \left(e^{(x * y + z)_* - \left(y \cdot x + \left(1 + z\right)\right)}\right)\]
      12.7
    10. Taylor expanded around 0 to get
      \[\log \left(e^{\color{red}{(x * y + z)_* - \left(y \cdot x + \left(1 + z\right)\right)}}\right) \leadsto \log \left(e^{\color{blue}{(x * y + z)_* - \left(y \cdot x + \left(1 + z\right)\right)}}\right)\]
      12.7
    11. Applied simplify to get
      \[\log \left(e^{(x * y + z)_* - \left(y \cdot x + \left(1 + z\right)\right)}\right) \leadsto \left((x * y + z)_* - y \cdot x\right) - \left(z + 1\right)\]
      5.3

    12. Applied final simplification

    if 348.43628f0 < z < 2.6464063f+18

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      25.0
    2. Using strategy rm
      25.0
    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)}\]
      13.4
    4. Using strategy rm
      13.4
    5. Applied flip3-- to get
      \[\color{red}{\left((x * y + z)_* - 1\right)} - \left(x \cdot y + z\right) \leadsto \color{blue}{\frac{{\left((x * y + z)_*\right)}^{3} - {1}^{3}}{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)}} - \left(x \cdot y + z\right)\]
      27.4
    6. Applied simplify to get
      \[\frac{\color{red}{{\left((x * y + z)_*\right)}^{3} - {1}^{3}}}{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)} - \left(x \cdot y + z\right) \leadsto \frac{\color{blue}{{\left((x * y + z)_*\right)}^3 - 1}}{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)} - \left(x \cdot y + z\right)\]
      14.5
    7. Using strategy rm
      14.5
    8. Applied clear-num to get
      \[\color{red}{\frac{{\left((x * y + z)_*\right)}^3 - 1}{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)}} - \left(x \cdot y + z\right) \leadsto \color{blue}{\frac{1}{\frac{{\left((x * y + z)_*\right)}^2 + \left({1}^2 + (x * y + z)_* \cdot 1\right)}{{\left((x * y + z)_*\right)}^3 - 1}}} - \left(x \cdot y + z\right)\]
      14.9

    if 2.6464063f+18 < z

    1. Started with
      \[(x * y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
      30.5
    2. Using strategy rm
      30.5
    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.2
    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)