atan - ryzom/ryzomcore GitHub Wiki


title: Atan description: published: true date: 2023-03-13T13:48:32.138Z tags: editor: markdown dateCreated: 2023-03-13T13:48:32.138Z

atan

The atan native AI script function returns the arctangent of the input value.

Syntax

(y: f)atan(x: f)

Arguments

  • x (float): The input value.

Return value

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

Examples

(y)atan(x);

This example code calculates the arctangent of the value x and stores the result in y.

Notes

The arctangent function returns the angle whose tangent is the input value. The result is expressed in radians.

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