FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder

FlexPro Documentation 2025

Cos

Calculates the cosine of an angle.

Syntax

Cos(Angle)

 

The syntax of the Cos function consists of the following parts:

Part

Description

Angle

The angle in radians.

All data structures are allowed. All numeric data types are permitted.

Remarks

The result has the same structure as the argument Angle. The calculation is done element by element where appropriate.

The result has the unit 1, if Angle has a unit. Otherwise, it has no unit.

The real cosine function is calculated for a real argument. The result then has the 64-bit floating point value data type. The following illustration shows the course of the function:

If Angle is complex, then the complex cosine function is calculated, which can be defined as follows:

(Exp(i * Angle) + Exp(-i * Angle)) / 2 with the imaginary unit i = (0, 1).

The result then has the complex 64-bit floating point value data type. The following illustration shows the course of the absolute value of the function:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

Cos(0)

Results in 1.

Cos(PI / 2)

Results in 0.

Dim x
x = Series(0, 2 * PI, 0.1)
Signal(Cos(x), x)
 

Calculates a signal with the course of the curve in the interval [0, 2π].

See Also

ArcCos Function

ArcSin Function

ArcTan Function

ArcTan2 Function

CosHyp Function

Sin Function

SinHyp Function

Tan Function

TanHyp Function