\[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: 10.5 s
Input Error: 14.2
Output Error: 1.4
Log:
Profile: 🕒
\(\begin{cases} \frac{y}{\frac{z}{x}} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -4.110099381480268 \cdot 10^{+165} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le -1.0624074848581524 \cdot 10^{-218} \\ \frac{y}{\frac{z}{x}} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 1.3480615758697271 \cdot 10^{-238} \\ x \cdot \frac{y}{z} & \text{when } \frac{\frac{y}{z} \cdot t}{t} \le 2.5832716486418614 \cdot 10^{+82} \\ \frac{y}{\frac{z}{x}} & \text{otherwise} \end{cases}\)

    if (/ (* (/ y z) t) t) < -4.110099381480268e+165 or -1.0624074848581524e-218 < (/ (* (/ y z) t) t) < 1.3480615758697271e-238 or 2.5832716486418614e+82 < (/ (* (/ y z) t) t)

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      27.2
    2. Applied simplify to get
      \[\color{red}{x \cdot \frac{\frac{y}{z} \cdot t}{t}} \leadsto \color{blue}{x \cdot \frac{y}{z}}\]
      11.6
    3. Applied taylor to get
      \[x \cdot \frac{y}{z} \leadsto \frac{y \cdot x}{z}\]
      2.2
    4. Taylor expanded around 0 to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y \cdot x}{z}}\]
      2.2
    5. Using strategy rm
      2.2
    6. Applied associate-/l* to get
      \[\color{red}{\frac{y \cdot x}{z}} \leadsto \color{blue}{\frac{y}{\frac{z}{x}}}\]
      2.6

    if -4.110099381480268e+165 < (/ (* (/ y z) t) t) < -1.0624074848581524e-218 or 1.3480615758697271e-238 < (/ (* (/ y z) t) t) < 2.5832716486418614e+82

    1. Started with
      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
      0.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}}\]
      0.2

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