\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
Test:
Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1
Bits:
128 bits
Bits error versus x
Bits error versus y
Bits error versus z
Bits error versus t
Time: 5.7 s
Input Error: 14.5
Output Error: 0.9
Log:
Profile: 🕒
\(\begin{cases} \frac{y \cdot x}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -2.8023166566332506 \cdot 10^{+215} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -3.7365020260549207 \cdot 10^{-267} \\ \frac{y \cdot x}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 7.99444935833705 \cdot 10^{-215} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 3.466588494294639 \cdot 10^{+227} \\ \frac{y \cdot x}{z} & \text{otherwise} \end{cases}\)

    if (/ (* (/ y z) t) t) < -2.8023166566332506e+215 or 3.466588494294639e+227 < (/ (* (/ y z) t) t)

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      47.7
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      20.4
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      2.6
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      2.6

    if -2.8023166566332506e+215 < (/ (* (/ y z) t) t) < -3.7365020260549207e-267 or 7.99444935833705e-215 < (/ (* (/ y z) t) t) < 3.466588494294639e+227

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      0.7
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      0.2

    if -3.7365020260549207e-267 < (/ (* (/ y z) t) t) < 7.99444935833705e-215

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      25.1
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      10.3
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      1.4
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      1.4

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default) (t default))
  #:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))