\[e^{re} \cdot \cos im\]
Test:
math.exp on complex, real part
Bits:
128 bits
Bits error versus re
Bits error versus im
Time: 3.6 s
Input Error: 0.0
Output Error: 0.2
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.2
  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.2

Original test:


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