sin - ryzom/ryzomcore GitHub Wiki


title: Sin description: published: true date: 2023-03-16T23:11:43.775Z tags: editor: markdown dateCreated: 2023-03-16T22:29:36.912Z

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** ⚠️