Trigonometric and hyperbolic functions for complex number in c++
<p>iam working on my own class for complex numbers which add,subtract,multiply,divide 2 complex numbers and besides this behavior it also get Trigonometric and hyperbolic functions for complex numbers
can you help me please in implementing this Trigonometric and hyperbolic functions</p>

<p>and this is my behaviors including sine function is this implementation is true ??</p>

<p>void complex::get(){</p>

<pre><code>cout&lt;&lt;"Real part is:"&lt;&lt;real&lt;&lt;"\n"&lt;&lt;"Imaginary part is:"&lt;&lt;imag&lt;&lt;"\n";
</code></pre>

<p>}
void complex::add(complex &amp;sum ,const complex &amp;num1,const complex &amp;num2 )
{</p>

<pre><code>sum.real=num1.real+num2.real;
sum.imag=num1.imag+num2.imag;
</code></pre>

<p>}</p>

<p>void complex::sub (complex &amp;subt,const complex &amp;num1,const complex &amp;num2 )
{</p>

<pre><code>subt.real=num1.real-num2.real;

subt.imag=num1.imag-num2.imag;
</code></pre>

<p>} </p>

<p>void complex::multi (complex &amp;product,const complex &amp;num1,const complex &amp;num2)</p>

<p>{</p>

<pre><code>product.real=(num1.real*num2.real)-(num1.imag*num2.imag);

product.imag=(num1.real*num2.imag)+(num1.imag*num2.real);
</code></pre>

<p>}</p>

<p>void complex::div (complex &amp;divis,const complex &amp;num1,const complex &amp;num2)</p>

<p>{</p>

<p>divis.real=((num1.real*num2.real)+(num1.imag*num2.imag))/((num2.real*num2.real)+(num2.imag*num2.imag));</p>

<p>divis.imag=((num1.imag*num2.real)-(num1.real*num2.imag))/((num2.real*num2.real)+(num2.imag*num2.imag));</p>

<p>}</p>

<p>complex complex::_sin(void)</p>

<p>{
    complex a;
    complex temp;
    temp.real=sin(a.real)*cosh(a.imag);
    temp.imag=cos(a.real)*sinh(a.imag);</p>

<pre><code>return temp;
</code></pre>

<p>}</p>
