\[(e^{\tan \left(a \cdot a\right) - a} - 1)^* - a\]
Test:
(- (expm1 (- (tan (* a a)) a)) a)
Bits:
128 bits
Bits error versus a
Time: 7.5 s
Input Error: 5.5
Output Error: 0.1
Log:
Profile: 🕒
\(\begin{cases} (e^{{\left(\frac{\sqrt{1}}{{\left(\sqrt[3]{\sqrt{\cot \left({a}^2\right)}}\right)}^3}\right)}^2 - a} - 1)^* - a & \text{when } a \le 22.956736f0 \\ (e^{\frac{\sin \left(\frac{1}{{a}^2}\right)}{\cos \left(\frac{1}{{a}^2}\right)} - a} - 1)^* - a & \text{otherwise} \end{cases}\)

    if a < 22.956736f0

    1. Started with
      \[(e^{\tan \left(a \cdot a\right) - a} - 1)^* - a\]
      0.2
    2. Applied simplify to get
      \[\color{red}{(e^{\tan \left(a \cdot a\right) - a} - 1)^* - a} \leadsto \color{blue}{(e^{\tan \left({a}^2\right) - a} - 1)^* - a}\]
      0.2
    3. Using strategy rm
      0.2
    4. Applied add-sqr-sqrt to get
      \[(e^{\color{red}{\tan \left({a}^2\right)} - a} - 1)^* - a \leadsto (e^{\color{blue}{{\left(\sqrt{\tan \left({a}^2\right)}\right)}^2} - a} - 1)^* - a\]
      0.2
    5. Using strategy rm
      0.2
    6. Applied tan-cotan to get
      \[(e^{{\left(\sqrt{\color{red}{\tan \left({a}^2\right)}}\right)}^2 - a} - 1)^* - a \leadsto (e^{{\left(\sqrt{\color{blue}{\frac{1}{\cot \left({a}^2\right)}}}\right)}^2 - a} - 1)^* - a\]
      0.2
    7. Applied sqrt-div to get
      \[(e^{{\color{red}{\left(\sqrt{\frac{1}{\cot \left({a}^2\right)}}\right)}}^2 - a} - 1)^* - a \leadsto (e^{{\color{blue}{\left(\frac{\sqrt{1}}{\sqrt{\cot \left({a}^2\right)}}\right)}}^2 - a} - 1)^* - a\]
      0.2
    8. Using strategy rm
      0.2
    9. Applied add-cube-cbrt to get
      \[(e^{{\left(\frac{\sqrt{1}}{\color{red}{\sqrt{\cot \left({a}^2\right)}}}\right)}^2 - a} - 1)^* - a \leadsto (e^{{\left(\frac{\sqrt{1}}{\color{blue}{{\left(\sqrt[3]{\sqrt{\cot \left({a}^2\right)}}\right)}^3}}\right)}^2 - a} - 1)^* - a\]
      0.2

    if 22.956736f0 < a

    1. Started with
      \[(e^{\tan \left(a \cdot a\right) - a} - 1)^* - a\]
      16.5
    2. Applied simplify to get
      \[\color{red}{(e^{\tan \left(a \cdot a\right) - a} - 1)^* - a} \leadsto \color{blue}{(e^{\tan \left({a}^2\right) - a} - 1)^* - a}\]
      16.5
    3. Applied taylor to get
      \[(e^{\tan \left({a}^2\right) - a} - 1)^* - a \leadsto (e^{\frac{\sin \left(\frac{1}{{a}^2}\right)}{\cos \left(\frac{1}{{a}^2}\right)} - a} - 1)^* - a\]
      0.0
    4. Taylor expanded around inf to get
      \[(e^{\color{red}{\frac{\sin \left(\frac{1}{{a}^2}\right)}{\cos \left(\frac{1}{{a}^2}\right)}} - a} - 1)^* - a \leadsto (e^{\color{blue}{\frac{\sin \left(\frac{1}{{a}^2}\right)}{\cos \left(\frac{1}{{a}^2}\right)}} - a} - 1)^* - a\]
      0.0

  1. Removed slow pow expressions

Original test:


(lambda ((a default))
  #:name "(- (expm1 (- (tan (* a a)) a)) a)"
  (- (expm1 (- (tan (* a a)) a)) a))