tan - ryzom/ryzomcore GitHub Wiki


title: Tan description: published: true date: 2023-03-13T03:30:02.446Z tags: editor: markdown dateCreated: 2023-03-13T03:29:58.593Z

tan

The tan native AI script function is used to calculate the tangent of an input value in radians.

Syntax

(value: f)tan(input: f) // tan_f_f

Arguments

  • input (float): The input value in radians to calculate the tangent of.

Return value

  • value (float): The tangent of the input value in radians.

Example

(val)tan(1.0);

This example code calls the tan function with an input value of 1.0 and returns the calculated tangent as a float.

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