Predefined Functions – cos

Function name: cos – Cosinus
Synopsis: cos(x)


Input data type Output data type
real real
complex complex
quaternion unsupported

Description:

ChaosPro automatically detects the input data type.

In order to calculate cos(z) ChaosPro performs the following calculation:

  cos(z) = cos(x+iy) =  0.5*(exp(y)+exp(-y))*cos(x) + 0.5*(exp(-y)-exp(y))*sin(x)*i  

cos