math.atan
From GMod Wiki
Revision as of 14:44, 24 September 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax |
math.atan( Number x ) Where is this used? |
| Description: | |
| Returns the arc tangent of x (in radians). | |
| Returns: | Number |
| Part of Library: | Math |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.atan]Math.atan [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Return the inverse tangent. |
|---|---|
| Used on | |
| Code | c, s = math.cos(0.8), math.sin(0.8) print( math.atan(s/c) ) //0.8 |
| Output | 0.8 |