Cos

Cosine of the input, in radians.

  • signal
  • Modelica Standard Library
  • 2 ports
BlockCosKindcosineOpLibraryMath

Description

Outputs the cosine of its input, taken in radians.

Example

Math functions Gain, absolute value, square root, sign, negation, and power of a sine; sine and cosine of time.

u = 2 sin(πt/2)Gain 0.5|u|√|u|sign(u)−uu²Timesin(t)cos(t)
In Gradara, select a Cos block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:PowerSine waveClockGainAbsSignSqrtSinUnary minus

Ports

Inputs 1

  • u

    Input angle, in radians.

Outputs 1

  • y

    Output signal, cos u, from −1 to 1.

Equations

Modelica
y = cos(u)

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Math.Cos
MSL documentation

See also

Select a block in Gradara and press F1 to open its page offline.