TypstDocumentation

cos

Calculate the cosine of an angle.

When called with an integer or a float, they will be interpreted as radians.

Example

#calc.cos(90deg)
#calc.cos(1.5) \
#calc.cos(90deg)
Preview

Parameters
Question mark

angle
integerfloatangleRequiredPositional
Question mark

The angle whose cosine to calculate.