ImSin
Description
Calculate the sin value for a complex.
- \[ImSin(C) = \frac{e^{iC}-e^{-iC}}{2i}\]
or
- \[ImSin \left (x+iy \right ) = sin(x)cosh(y)+i*cos(x)sinh(y)\]
where C is complex, and \(i = \sqrt{-1}\).
Syntax
complex ImSin(complex cX)
Parameters
cX
- The complex number.
Return
Return the sin value for the specified complex.
Example
imSin(3+4i) = ; // 3.8537380379194-27.016813258004i complex c1 = 1+1i; complex c2; c2 = imSin(c1); c2 = ; // 1.298457581416+0.63496391478474i