\[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: 12.2 s
Input Error: 11.6
Output Error: 4.1
Log:
Profile: 🕒
\(\begin{cases} a + \frac{y}{z} \cdot \left(x - a\right) & \text{when } z \le -3.643176247714988 \cdot 10^{+162} \\ x + \left(y - z\right) \cdot \frac{a - x}{1.0 - \left(z - t\right)} & \text{when } z \le 5.903305365345926 \cdot 10^{+148} \\ a + \frac{y}{z} \cdot \left(x - a\right) & \text{otherwise} \end{cases}\)

    if z < -3.643176247714988e+162 or 5.903305365345926e+148 < z

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      30.9
    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}\]
      11.3
    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}}\]
      11.3
    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)}\]
      1.6

    if -3.643176247714988e+162 < z < 5.903305365345926e+148

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      4.6
    2. Using strategy rm
      4.6
    3. Applied div-inv to get
      \[x + \color{red}{\frac{y - z}{\left(t + 1.0\right) - z}} \cdot \left(a - x\right) \leadsto x + \color{blue}{\left(\left(y - z\right) \cdot \frac{1}{\left(t + 1.0\right) - z}\right)} \cdot \left(a - x\right)\]
      4.7
    4. Applied associate-*l* to get
      \[x + \color{red}{\left(\left(y - z\right) \cdot \frac{1}{\left(t + 1.0\right) - z}\right) \cdot \left(a - x\right)} \leadsto x + \color{blue}{\left(y - z\right) \cdot \left(\frac{1}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\right)}\]
      5.0
    5. Applied simplify to get
      \[x + \left(y - z\right) \cdot \color{red}{\left(\frac{1}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\right)} \leadsto x + \left(y - z\right) \cdot \color{blue}{\frac{a - x}{1.0 - \left(z - t\right)}}\]
      5.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))))