Date: Sat, 1 Oct 2022 05:52:38 +0000 (UTC) Message-ID: <1934229221.5443.1664603558208@93e1396c9615> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_5442_554385942.1664603558208" ------=_Part_5442_554385942.1664603558208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html RADIANS Function

Computes the radians of an input value measuring degrees of= an angle. The value can be a Decimal or Integer literal or a reference to = a column containing numeric values.
• A unit of 1 radian identifies the angle of a circle wh= ere the radius of the circle equals the length of the arc on the circle for= that angle. This value corresponds to approximately 57.3 degrees.
• Input units are in degrees.
• You can convert from radians to degrees. For more information, see DEGREES Function.

Wrangle vs. SQL: This function is part of Wrangle , a proprietary data transformation languag= e. Wrangle is not SQL. For more information,= see Wrangle Language.

## Basic Usage<= /span>

=20

Numeric literal example:

=20

Ou= tput: Returns the computation in radians of `57.2728` rounded to four digits, which is `1.0000`.

Column reference example:

=20

Ou= tput: Generates the new ```myR= ads``` column containing the conversion of the values in `MyDegrees` column to radians.

## Syn= tax and Arguments

=20

=20

=20 =20 =20 =20 =20
Argument Required? Data Type Description
numeric_value Y string, decimal, or integer Name of column, Decimal or Integer literal, or f= unction returning those types to apply to the function

For more information on syntax standards, see Language Documentation Syntax Notes<= /a>.

### numeric_value

Name of the column, Integer or Decimal literal, or function returning th= at 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.

Usage Notes:

=20

=20 =20 =20 =20
Required? Data Type Example Value
Yes String (column reference) or Integer or Decimal = literal `10`

## Examples

=20
=20

### Example - DEG= REES and RADIANS functions

This example illustrates to convert values from one unit of measure to t= he other.

Functions:

=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Item Description
DEGREES Function Computes the degrees of an input value measurin= g the radians of an angle. The value can be a Decimal or Integer literal or= a reference to a column containing numeric values.
RADIANS Function Computes the radians of an input value measurin= g degrees of an angle. The value can be a Decimal or Integer literal or a r= eference to a column containing numeric values.
ROUND Function Rounds input value to the nearest integer. = ;Input can be an Integer, a Decimal, a column reference, or an express= ion. Optional second argument can be used to specify the number of dig= its to which to round.

Source:

In this example, the source data contains information about a set of iso= sceles triangles. Each triangle is listed in a separate row, with the liste= d value as the size of the non-congruent angle in the triangle in degrees.<= /p>

You must calculate the measurement of all three angles of each isosceles= triangle in radians.

=20 =20 =20
triangle a01
t01 30
t02 60
t03 90
t04 120
t05 150

Transformation:

You can convert the value for the non-congruent angle to radians using t= he following:

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Transformation Name <= code>New formula `Single row formula` `ROUND(RADIANS(a01), 4)` `'r01'`
=20

Now, calculate the value in degrees of the remaining two angles, which a= re congruent. Since the sum of all angles in a triangle is 180, the followi= ng formula can be applied to compute the size in degrees of each of these a= ngles:

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Transformation Name <= code>New formula `Single row formula` `(180 - a01) / 2` `'a02'`
=20

Convert the above to radians:

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Transformation Name <= code>New formula `Single row formula` `ROUND(RADIANS(a02), 4)` `'r02'`
=20

Create a second column for the other congruent angle:

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Transformation Name <= code>New formula `Single row formula` `ROUND(RADIANS(a02), 4)` `'r03'`
=20

To check accuracy, you sum all three columns and convert to degrees:

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
Transformation Name <= code>New formula `Single row formula` `ROUND(RADIANS(a02), 4)` `'checksum'`
=20

Results:

After you delete the intermediate columns, you see the following results= and determine the error in the checksum is acceptable:

=20 =20 =20 =20 =20 =20 =20
triangle a01 r03 r02 r01 checksum
t01 30 1.3095 1.3095 0.5238 179.9967
t02 60 1.0476 1.0476 1.0476 179.9967
t03 90 0.7857 0.7857 1.5714 179.9967
t04 120 0.5238 0.5238 2.0952 179.9967
t05 150 0.2619 0.2619 2.6190 179.9967

=20
=20

=20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
=20

=20
=20
=20

=20
=20

=20

=20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
• =20
Page:<= /span>=20
=20
• =20
=20

=20
=20
=20

------=_Part_5442_554385942.1664603558208--