sin - ryzom/ryzomcore GitHub Wiki


title: Sin description: published: true date: 2023-03-12T19:46:24.556Z tags: editor: markdown dateCreated: 2023-03-12T19:46:21.012Z

sin

The sin native AI script function returns the sinus of the input value.

Syntax

(y: f)sin(x: f) // sin_f_f

Arguments

  • x (float): The input value in radians.

Return values

  • y (float): The sinus of the input value.

Examples

(y)sin(x); 

This example code calls the sin function with an input value of x and assigns the resulting sinus value to y.

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