cos - ryzom/ryzomcore GitHub Wiki


title: Cos description: published: true date: 2023-03-12T22:49:22.931Z tags: editor: markdown dateCreated: 2023-03-12T22:49:19.875Z

cos

The cos function returns the cosine of an input value.

Syntax

(y: f)cos(x: f)

Arguments

  • x (float): The input value.

Return value

  • y (float): The result of the cosine operation.
(y)cos(0.5f);

This example code calculates the cosine of 0.5 and stores the result in the variable y.

⚠️ **GitHub.com Fallback** ⚠️