We will learn to calculate trigonometric values using Power FX formulas in Power Apps. Before we start, make sure to subscribe to CRM Crate so that you can stay up to date in the field of Power Apps.

**What is Power FX?**

Microsoft’s Power Fx is the low-code language that will be used across Power Platform. It’s a strong-typed, general-purpose, declarative, and functional programming language. Power Fx is expressed in user-friendly text. It’s a low-code language that citizen developers & makers can work with directly in an Excel-like formula bar or Visual Studio Code text window.

It enables a complete range of development from no-code for those who have never programmed before to “pro-code” for the seasoned professional, with no learning or rewriting cliffs in between, enabling diverse teams to collaborate and save time and expense.

**Understanding Cos () function**

The

Cos (Radians )Cosfunction returns the cosine of its argument, an angle specified in radians.

Returns the cosine of 1.047197 radians or 60 degrees. The result is “0.5”.

Cos( 1.047197 )

**Understanding Cot() function**

The

Cot( Radians )Cotfunction returns the cotangent of its argument, an angle specified in radians.

Returns the cotangent of 0.785398… radians or 45 degrees. The result is “1”.

Cot( Pi()/4 )

**Understanding Sin() function**

The

Sin( Radians )Sinfunction returns the sine of its argument, an angle specified in radians.

Returns the sine of 1.570796… radians or 90 degrees. The result is “1”.

Sin( Pi()/2 )

**Understanding Tan() function**

The

Tan( Radians )Tanfunction returns the tangent of its argument, an angle specified in radians.

Returns the tangent of 1.047197… radians or 60 degrees. The result is “1.732050…”.

Tan( Radians(60) )

**Understanding Acos () function**

The

Acos( Number )Acosfunction returns the arccosine, or inverse cosine, of its argument. The arccosine is the angle whose cosine is the argument. The returned angle is given in radians in the range 0 (zero) to π.

Returns the arccosine of 0.5, in radians. The result is “1.047197…”.

Acos( 0.5 )

**Understanding Acot () function**

The

Acot( Number )Acotfunction returns the principal value of the arccotangent, or inverse cotangent, of its argument. The returned angle is given in radians in the range 0 (zero) to π.

Returns the arccotangent of 1, in radians. The result is “0.785398…”.

Acot( 1 )

**Understanding Asin () function**

The

Asin( Number )Asinfunction returns the arcsine, or inverse sine, of its argument. The arcsine is the angle whose sine is the argument. The returned angle is given in radians in the range -π/2 to π/2.

Returns the arcsine of 1, in radians. The result is “1.570796…”.

Asin( 1 )

**Understanding Atan () function**

The

Atan( Number )Atanfunction returns the arctangent, or inverse tangent, of its argument. The arctangent is the angle whose tangent is the argument. The returned angle is given in radians in the range -π/2 to π/2.

Returns the arctangent of 1.732050, in radians. The result is “1.047197…”.

Atan( 1.732050 )

**Understanding Atan2 () function**

The

Atan2 ( Number )Atan2function returns the arctangent, or inverse tangent, of the specifiedxandycoordinates as arguments. The arctangent is the angle from thex-axis to a line that contains the origin (0, 0) and a point with coordinates (x,y). The angle is given in radians between -π and π, excluding -π. A positive result represents a counterclockwise angle from thex-axis; a negative result represents a clockwise angle.Atan2(equalsa,b)Atan(, except thatb/a)can equal 0 (zero) with theaAtan2function.

Returns the arctangent of the angle from the

Atan2( 5, 3 )x-axis of the line that contains the origin (0,0) and the coordinate (5,3), which is approximately 31 degrees. The result is “0.540419…”.

**Understanding Degree () function**

The

Degrees( Radians )Degreesfunction converts radians to degrees. π radians equals 180 degrees.

Returns the equivalent number of degrees for 1.047197 radians. The result is “60”.

Degrees( 1.047197 )

**Understanding Pi() function**

This function provides a value equivalent to π.

Pi()

Returns the transcendental number π. The result is “3.141592…”.

Pi()

**Understanding ****Radians** **() function**

**Radians**

The

Radians( Degrees )Radiansfunction converts degrees to radians.

Returns the equivalent number of radians for 15 degrees. The result is “0.261799…”.

Radians( 15 )

**Implementation of the above given Power FX formulas in Power Apps**

The above Power FX formula implementation is demonstrated in the below given animation.