Difference between revisions of "ATan"

imported>Timeslip
(now accepts degrees instead of radians)
imported>Wrye
m (Atan moved to ATan: Follow OBSE docs capitialization.)
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  asin [float]
  atan [float]
or
datan [float]


Returns the arctangent of a number (i.e. the angle whose tangent this is)
Returns the arctangent of a number (i.e. the angle whose tangent this is)
Line 25: Line 27:
*[[asin]]
*[[asin]]
*[[acos]]
*[[acos]]
*[[atan2]]


[[Category: OBSE Functions]]
[[Category: Functions]]
[[Category:OBSE_Math_Functions]]
[[Category: Functions (OBSE)]]
[[Category: Math Functions]]
[[Category: Math Functions (OBSE)]]

Latest revision as of 22:16, 2 June 2008

A command for Oblivion Script Extender

Syntax:

atan [float]

or

datan [float]

Returns the arctangent of a number (i.e. the angle whose tangent this is)

ExampleEdit

set theta to atan n

(unlike asin and acos, where the example provided was meaningful, this example is simply an example)

NotesEdit

  • From v0005, all OBSE trigonometric functions take and return degrees. Versions of the functions which accept radians are still available by prefixing the function name with an r. (i.e. ratan)
  • This function can be used in a mathematical formula (a + atan b), but a mathematical formula will not compile as the arguement for this function (atan (a + b) doesn't work).
  • atan a + b = ( atan a ) + b

See AlsoEdit