\[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: 6.3 s
Input Error: 13.9
Output Error: 1.1
Log:
Profile: 🕒
\(\begin{cases} \frac{y \cdot x}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -7.649489573286008 \cdot 10^{+294} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -2.1685809384863297 \cdot 10^{-122} \\ \frac{y \cdot x}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 1.0225686435761804 \cdot 10^{-235} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 5.699221756597515 \cdot 10^{+179} \\ \frac{y}{\frac{z}{x}} & \text{otherwise} \end{cases}\)

    if (/ (* (/ y z) t) t) < -7.649489573286008e+294 or -2.1685809384863297e-122 < (/ (* (/ y z) t) t) < 1.0225686435761804e-235

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      24.8
    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.7
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      1.7
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      1.7

    if -7.649489573286008e+294 < (/ (* (/ y z) t) t) < -2.1685809384863297e-122 or 1.0225686435761804e-235 < (/ (* (/ y z) t) t) < 5.699221756597515e+179

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      0.6
    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 5.699221756597515e+179 < (/ (* (/ y z) t) t)

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      41.3
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      15.6
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      3.0
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      3.0
    5. Using strategy rm
      3.0
    6. Applied associate-/l* to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y}{\frac{z}{x}}}\]
      3.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)))