This example illustrates to use the DEGREES and RADIANS functions to convert values from one unit of measure to the other.
In this example, the source data contains information about a set of isosceles triangles. Each triangle is listed in a separate row, with the listed value as the size of the non-congruent angle in the triangle in degrees.
You must calculate the measurement of all three angles of each isosceles triangle in radians.
You can convert the value for the non-congruent angle to radians using the following:
derive type:single value: ROUND(RADIANS(a01), 4) as: 'r01'
Now, calculate the value in degrees of the remaining two angles, which are congruent. Since the sum of all angles in a triangle is 180, the following formula can be applied to compute the size in degrees of each of these angles:
derive type:single value: (180 - a01) / 2 as: 'a02'
Convert the above to radians:
derive type:single value: ROUND(RADIANS(a02), 4) as: 'r02'
Create a second column for the other congruent angle:
derive type:single value: ROUND(RADIANS(a02), 4) as: 'r03'
To check accuracy, you sum all three columns and convert to degrees:
derive type:single value: ROUND(DEGREES(r01 + r02 + r03), 4) as: 'checksum'
After you delete the intermediate columns, you see the following results and determine the error in the checksum is acceptable: