Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:lltan [2014-05-15 09:00 SLT]
sei created
functions:lltan [2015-02-04 18:20 SLT] (current)
sei style
Line 1: Line 1:
 +$nav
 ===== Function: llTan ===== ===== Function: llTan =====
  
Line 12: Line 13:
 Angle whose tangent is to be found, in radians. Angle whose tangent is to be found, in radians.
  
-===== Result ​=====+===== Return value =====
  
-Tangent ​of the argument.+A [[types/​float]] with the tangent ​of the argument.
  
 ===== Notes ===== ===== Notes =====
  
-  * Inputs of **-Inf****Inf** ​and **NaN** ​result in **NaN** (Not a Number).+  * Inputs of $minf$pinf and $nan result in $nan.
   * If the angle is otherwise not between -9.22337e18 and 9.22337e18, the argument is returned unchanged.   * If the angle is otherwise not between -9.22337e18 and 9.22337e18, the argument is returned unchanged.
-  * Otherwise, the return value can be any number, including **Inf** and **-Inf**. 
  
 ===== Short examples ===== ===== Short examples =====
Line 59: Line 59:
  
 === Related trigonometric functions === === Related trigonometric functions ===
-  * [[llSin]] calculates the sine of the argument. +  * $lfn[llSin] calculates the sine of the argument. 
-  * [[llCos]] calculates the tangent of the argument. +  * $lfn[llCos] calculates the tangent of the argument. 
-  * [[llAtan2]] calculates the angle of a 2D vector.+  * $lfn[llAtan2] calculates the angle of a 2D vector.
  
 === Other trigonometric functions === === Other trigonometric functions ===
-  * [[llAsin]] calculates the inverse sine of the argument. +  * $lfn[llAsin] calculates the inverse sine of the argument. 
-  * [[llAcos]] calculates the inverse cosine of the argument.+  * $lfn[llAcos] calculates the inverse cosine of the argument
 + 
 +=== Related information === 
 +  * $lty[float] type and associated caveats and limitations.