Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r0822

D toc

Excerpt

For input values between -1 and 1 inclusive, this function returns the angle in radians whose tangent value is the input. This function is the inverse of the tangent function. The value can be a Decimal or Integer literal or a reference to a column containing numeric values.

Info

NOTE: While this function returns values outside of the range -1 <= x <= 1, those values are not considered valid.

For more information on the tangent function, see TAN Function.

arc cotangent:

Input rangeOutput computation
x>0atan(1/x)
x<=0

atan(1/x) + PI()

D s lang vs sql

D s
snippetBasic

Numeric literal example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: atan(0.5)

atan(0.5)

Output: Returns the computation of the arc tangent of 0.5. Output value is in radians. 

Column reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: atan(X) as: atanX'

atan(X)

Output: Returns the arc tangent of the values in X column.

D s
snippetSyntax

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value: atan(numeric_value)

atan(numeric_value)


ArgumentRequired?Data TypeDescription
numeric_valueYstring, decimal, or integerName of column, Decimal or Integer literal, or function returning those types to apply to the function

D s lang notes

numeric_value

Name of the column, Integer or Decimal literal, or function returning that data type to apply to the function.

  • Missing input values generate missing results.
  • Literal numeric values should not be quoted. Quoted values are treated as strings.
  • Multiple columns and wildcards are not supported.

D s
snippetusage

Required?Data TypeExample Value
YesString (column reference) or Integer or Decimal literal0.5

D s
snippetExamples

Example - Trigonometry Arc functions

Include Page
EXAMPLE - Trigonometry Arc Functions
EXAMPLE - Trigonometry Arc Functions

D s also
labeltrigonometry