\[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: 22.7 s
Input Error: 3.8
Output Error: 2.0
Log:
Profile: 🕒
\(\begin{cases} x + \frac{y - z}{{\left(\left(t + 1.0\right) - z\right)}^{1}} \cdot \left(a - x\right) & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le -4.5753933f-29 \\ a + \frac{y}{z} \cdot \left(x - a\right) & \text{when } x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \le 0.0f0 \\ x + \frac{y - z}{{\left(\left(t + 1.0\right) - z\right)}^{1}} \cdot \left(a - x\right) & \text{otherwise} \end{cases}\)

    if (+ x (* (/ (- y z) (- (+ t 1.0) z)) (- a x))) < -4.5753933f-29 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)\]
      0.9
    2. Using strategy rm
      0.9
    3. Applied pow1 to get
      \[x + \frac{y - z}{\color{red}{\left(t + 1.0\right) - z}} \cdot \left(a - x\right) \leadsto x + \frac{y - z}{\color{blue}{{\left(\left(t + 1.0\right) - z\right)}^{1}}} \cdot \left(a - x\right)\]
      0.7

    if -4.5753933f-29 < (+ 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.1
    2. Applied taylor to get
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right) \leadsto \left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}\]
      15.2
    3. 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}}\]
      15.2
    4. Applied simplify to get
      \[\color{red}{\left(\frac{y \cdot x}{z} + a\right) - \frac{y \cdot a}{z}} \leadsto \color{blue}{a + \frac{y}{z} \cdot \left(x - a\right)}\]
      13.4

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