Logarithm of complex sine and cosine avoiding overflow in matlab

The following Matlab project contains the source code and Matlab examples used for logarithm of complex sine and cosine avoiding overflow. log(cos(Z)) and log(sin(Z)) return infinities for abs(imag(Z)) > 711 in double precision, or abs(imag(Z)) > 90 in single precision.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
license.txt 1311
logcos.m 1137
logsin.m 1144