\[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
Test:
Hakyll.Web.Tags:renderTagCloud from hakyll-4.7.2.3
Bits:
128 bits
Bits error versus x
Bits error versus y
Bits error versus z
Bits error versus t
Bits error versus a
Time: 17.6 s
Input Error: 3.6
Output Error: 2.2
Log:
Profile: 🕒
\(\begin{cases} \left(a - x\right) \cdot \frac{y - z}{{\left(\left(1.0 + t\right) - z\right)}^{1}} + x & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le -1.1284746f-36 \\ (\left(x - a\right) * \left(\frac{y}{z}\right) + a)_* & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le 6.098567f-39 \\ \left(a - x\right) \cdot \frac{y - z}{{\left(\left(1.0 + t\right) - z\right)}^{1}} + x & \text{otherwise} \end{cases}\)

    if (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < -1.1284746f-36 or 6.098567f-39 < (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x)))

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      0.9
    2. Applied simplify to get
      \[\color{red}{x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)} \leadsto \color{blue}{(\left(a - x\right) * \left(\frac{y - z}{\left(1.0 + t\right) - z}\right) + x)_*}\]
      0.9
    3. Using strategy rm
      0.9
    4. Applied fma-udef to get
      \[\color{red}{(\left(a - x\right) * \left(\frac{y - z}{\left(1.0 + t\right) - z}\right) + x)_*} \leadsto \color{blue}{\left(a - x\right) \cdot \frac{y - z}{\left(1.0 + t\right) - z} + x}\]
      0.9
    5. Using strategy rm
      0.9
    6. Applied pow1 to get
      \[\left(a - x\right) \cdot \frac{y - z}{\color{red}{\left(1.0 + t\right) - z}} + x \leadsto \left(a - x\right) \cdot \frac{y - z}{\color{blue}{{\left(\left(1.0 + t\right) - z\right)}^{1}}} + x\]
      0.7

    if -1.1284746f-36 < (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < 6.098567f-39

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      29.5
    2. Applied simplify to get
      \[\color{red}{x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)} \leadsto \color{blue}{(\left(a - x\right) * \left(\frac{y - z}{\left(1.0 + t\right) - z}\right) + x)_*}\]
      29.5
    3. Using strategy rm
      29.5
    4. Applied fma-udef to get
      \[\color{red}{(\left(a - x\right) * \left(\frac{y - z}{\left(1.0 + t\right) - z}\right) + x)_*} \leadsto \color{blue}{\left(a - x\right) \cdot \frac{y - z}{\left(1.0 + t\right) - z} + x}\]
      29.5
    5. Applied taylor to get
      \[\left(a - x\right) \cdot \frac{y - z}{\left(1.0 + t\right) - z} + x \leadsto \left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}\]
      18.4
    6. Taylor expanded around inf to get
      \[\color{red}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}} \leadsto \color{blue}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}}\]
      18.4
    7. Applied simplify to get
      \[\color{red}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}} \leadsto \color{blue}{(\left(x - a\right) * \left(\frac{y}{z}\right) + a)_*}\]
      16.6

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default) (t default) (a default))
  #:name "Hakyll.Web.Tags:renderTagCloud from hakyll-4.7.2.3"
  (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))))