## Key

• This line was removed.
• Formatting was changed.
Excerpt

This example illustrates how to apply the inverse trigonometric (Arc) functions to your transformations.

Functions:

D generate list excerpts
pages ASIN Function,ACOS Function,ATAN Function

Also:

D generate list excerpts
pages ROUND Function,DEGREES Function

Info

NOTE: These functions are valid over specific ranges.

...

The following functions are computed using the above functions.

• Arccotangent. Computed using ATAN function. See below.
• Arcsecant. Computed using ACOS function. See below.
• Arccosecant. Computed using ASIN function. See below.

...

This function is valid over a set of ranged inputs, so you can use a conditional column for the computation. For more information, see ASIN Function.

D trans
RawWrangle true round(degrees(asin(divide(1, Y))), 2) step case condition: ifThenElse if: (Y <= -1) || (Y >= 1) then: round(degrees(asin(divide(1, Y))), 2) as: 'acscY' Condition type if...then...else If (Y <= -1) || (Y >= 1) Then 'acscY' New column name Conditional column

...

Same set of ranged inputs apply to this function. For more information, see ACOS Function.

D trans
RawWrangle true round(degrees(acos(divide(1, Y))), 2) step case condition: ifThenElse if: (Y <= -1) || (Y >= 1) then: round(degrees(acos(divide(1, Y))), 2) as: 'asecY' Condition type if...then...else If (Y <= -1) || (Y >= 1) Then 'asecY' New column name Conditional column

...

For this function, the two different ranges of inputs have different computations, so an `else` condition is added to the transformation. For more information, see ATAN Function.

D trans
RawWrangle true round(degrees(atan(divide(1, Y))), 2) case condition: ifThenElse if: Y > 0 then: round(degrees(atan(divide(1, Y))), 2) else: round(degrees(atan(divide(1, Y)) + pi()), 2) as: 'acotY' Condition type Then round(degrees(atan(divide(1, Y)) + pi()), 2) Conditional column step New column name if...then...else If Y > 0 'acotY' Else

...

YacotYasecYacscYatanYacosYasinY
-1.00-41.86180.00-90.00-45.00180.00-90.00
-0.75-49.99nullnull-37.00139.00-49.00
-0.50-60.29nullnull-27.00120.00-30.00
0.00nullnullnull0.0090.000.00
0.5063.44nullnull27.0060.0030.00
0.7553.13nullnull37.0041.0049.00
1.0045.000.0090.0045.000.0090.00

D s also
label example_trigonometry_arc_functions