\[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: 16.9 s
Input Error: 3.6
Output Error: 2.1
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.4097982f-38 \\ (\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 0.0f0 \\ \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.4097982f-38 or 0.0f0 < (+ 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)\]
      1.0
    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)_*}\]
      1.0
    3. Using strategy rm
      1.0
    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}\]
      1.0
    5. Using strategy rm
      1.0
    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.4097982f-38 < (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < 0.0f0

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      29.7
    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.7
    3. Using strategy rm
      29.7
    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.7
    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.2
    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.2
    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.0

  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))))