\[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: 15.5 s
Input Error: 10.6
Output Error: 8.0
Log:
Profile: 🕒
\(\begin{cases} a + \frac{y}{z} \cdot \left(x - a\right) & \text{when } z \le -1.0550288148955616 \cdot 10^{+261} \\ x + \left(y - z\right) \cdot \frac{a - x}{1.0 - \left(z - t\right)} & \text{when } z \le 7.115057111124411 \cdot 10^{+227} \\ a + \frac{y}{z} \cdot \left(x - a\right) & \text{otherwise} \end{cases}\)

    if z < -1.0550288148955616e+261 or 7.115057111124411e+227 < z

    1. Started with
      \[x + \frac{y - z}{\left(t + 1.0\right) - z} \cdot \left(a - x\right)\]
      31.6
    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}\]
      10.8
    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}}\]
      10.8
    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 -1.0550288148955616e+261 < z < 7.115057111124411e+227

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

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