|
atn2()
The
Mathematical Function
atn2()
returns the arc tangent angle in radian measure for the value of the parameter "number"
.
Syntax of the Mathematical Function atn2()
atn2(sin_number, cos_number)
The parameter "number" of the Mathematical Function atn2()
sin_number and cos_number
The parameters "sin_number" and "cos_number" are placeholders for
column names,
variables
or
constants,
which have to be available as
float,
real,
double precision
datatypes. Additionally, the parameters "sin_number" and "cos_number" recognise any other datatype which can be converted with
implicit conversion
into any of the required datatypes.
Example for the Mathematical Function atn2()
select atn2(0.50, 0.48)
go
-----
0.805803
Returns the arc tangent in radian measure for the ratio between sine and cosine.
select degrees(atn2(0.785398, 0.785398))
go
-----
45.000000
Returns the arc tangent for the ratio between sine and cosine.
See also:
ASE T-SQL - Aggregate Functions, Mathematical Functions, abs(), acos(), asin(), atan(), ceiling(), cos(), cot(), degrees(), exp(), floor(), log(), log10(), pi(), power(), radians(), rand(), round(), sign(), sin(), sqrt(), tan().
|