\[e^{re} \cdot \cos im\]
Test:
math.exp on complex, real part
Bits:
128 bits
Bits error versus re
Bits error versus im
Time: 4.1 s
Input Error: 0.0
Output Error: 0.3
Log:
Profile: 🕒
\(\sqrt[3]{{\left(e^{re}\right)}^3 \cdot {\left(\cos im\right)}^{3}}\)
  1. Started with
    \[e^{re} \cdot \cos im\]
    0.0
  2. Using strategy rm
    0.0
  3. Applied add-cbrt-cube to get
    \[e^{re} \cdot \color{red}{\cos im} \leadsto e^{re} \cdot \color{blue}{\sqrt[3]{{\left(\cos im\right)}^3}}\]
    0.0
  4. Applied add-cbrt-cube to get
    \[\color{red}{e^{re}} \cdot \sqrt[3]{{\left(\cos im\right)}^3} \leadsto \color{blue}{\sqrt[3]{{\left(e^{re}\right)}^3}} \cdot \sqrt[3]{{\left(\cos im\right)}^3}\]
    0.3
  5. Applied cbrt-unprod to get
    \[\color{red}{\sqrt[3]{{\left(e^{re}\right)}^3} \cdot \sqrt[3]{{\left(\cos im\right)}^3}} \leadsto \color{blue}{\sqrt[3]{{\left(e^{re}\right)}^3 \cdot {\left(\cos im\right)}^3}}\]
    0.3
  6. Using strategy rm
    0.3
  7. Applied pow3 to get
    \[\sqrt[3]{{\left(e^{re}\right)}^3 \cdot \color{red}{{\left(\cos im\right)}^3}} \leadsto \sqrt[3]{{\left(e^{re}\right)}^3 \cdot \color{blue}{{\left(\cos im\right)}^{3}}}\]
    0.3

Original test:


(lambda ((re default) (im default))
  #:name "math.exp on complex, real part"
  (* (exp re) (cos im)))