# Acos, Acot, Asin, Atan, Atan2, Cos, Cot, Degrees, Pi, Radians, Sin, and Tan functions in PowerApps

Calculates trigonometric values.

## Description

### Primary functions

The Cos function returns the cosine of its argument, an angle specified in radians.

The Cot function returns the cotangent of its argument, an angle specified in radians.

The Sin function returns the sine of its argument, an angle specified in radians.

The Tan function returns the tangent of its argument, an angle specified in radians.

### Inverse functions

The Acos function 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 π.

The Acot function 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 π.

The Asin function 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.

The Atan function 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.

The Atan2 function returns the arctangent, or inverse tangent, of the specified x and y coordinates as arguments. The arctangent is the angle from the x-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 the x-axis; a negative result represents a clockwise angle. Atan2( ab ) equals Atan( b/a ), except that a can equal 0 (zero) with the Atan2 function.

### Helper functions

The Degrees function converts radians to degrees. π radians equals 180 degrees.

The Pi function returns the transcendental number π, which begins 3.141592...

The Radians function converts degrees to radians.

If you pass a single number to these functions, the return value is a single result. If you pass a single-column table that contains numbers, the return value is a single-column table of results, one result for each record in the argument's table. If you have a multi-column table, you can shape it into a single-column table, as working with tables describes.

If an argument would result in an undefined value, the result is blank. This can happen, for example, when using inverse functions with arguments that are out of range.

## Syntax

### Primary Functions

Cos( Radians )
Cot( Radians )
Sin( Radians )
Tan( Radians )

• Radians - Required. Angle to operate on.

Cos( SingleColumnTable )
Cot( SingleColumnTable )
Sin( SingleColumnTable )
Tan( SingleColumnTable )

• SingleColumnTable - Required. A single-column table of angles to operate on.

### Inverse Functions

Acos( Number )
Acot( Number )
Asin( Number )
Atan( Number )

• Number - Required. Number to operate on.

Acos( SingleColumnTable )
Acot( SingleColumnTable )
Asin( SingleColumnTable )
Atan( SingleColumnTable )

• SingleColumnTable - Required. A single-column table of numbers to operate on.

Atan2( X, Y )

• X - Required. X-axis coordinate.
• Y - Required. Y-axis coordinate.

### Helper Functions

Degrees( Radians )

• Radians - Required. Angle in radians to convert to degrees.

Pi()

Radians( Degrees )

• Degrees - Required. Angle in degrees to convert to radians.

## Examples

### Single number

Formula Description Result
Cos( 1.047197 ) Returns the cosine of 1.047197 radians or 60 degrees. 0.5
Cot( Pi()/4 ) Returns the cotangent of 0.785398... radians or 45 degrees. 1
Sin( Pi()/2 ) Returns the sine of 1.570796... radians or 90 degrees. 1
Tan( Radians(60) ) Returns the tangent of 1.047197... radians or 60 degrees. 1.732050...
Acos( 0.5 ) Returns the arccosine of 0.5, in radians. 1.047197...
Acot( 1 ) Returns the arccotangent of 1, in radians. 0.785398...
Asin( 1 ) Returns the arcsine of 1, in radians. 1.570796...
Atan( 1.732050 ) Returns the arctangent of 1.732050, in radians. 1.047197...
Atan2( 5, 3 ) Returns the arctangent of the angle from the x-axis of the line that contains the origin (0,0) and the coordinate (5,3), which is approximately 31 degrees. 0.540419...
Atan2( 4, 4 ) Returns the arctangent of the angle from the x-axis of the line that contains the origin (0,0) and the coordinate (4,4), which is exactly π/4 radians or 45 degrees. 0.785398...
Degrees( 1.047197 ) Returns the equivalent number of degrees for 1.047197 radians. 60
Pi() Returns the transcendental number π. 3.141592...
Radians( 15 ) Returns the equivalent number of radians for 15 degrees. 0.261799...

### Single-column table

The examples in this section use a data source that's named ValueTable and that contains the following data. The last record in the table is π/2 radians or 90 degrees. Formula Description Result
Cos( ValueTable ) Returns the cosine of each number in the table. Cot( ValueTable ) Returns the cotangent of each number in the table. Sin( ValueTable ) Returns the sine of each number in the table. Tan( ValueTable ) Returns the tangent of each number in the table. Acos( ValueTable ) Returns the arccosine of each number in the table. Acot( ValueTable ) Returns the arccotangent of each number in the table. Asin( ValueTable ) Returns the arcsine of each number in the table. Atan( ValueTable ) Returns the arctangent of each number in the table. Degrees( ValueTable ) Returns the equivalent number of degrees for each number in the table, assumed to be angles in radians. Radians( ValueTable ) Returns the equivalent number of radians for each number in the table, assumed to be angles in degrees.
{"ft_lang_label":"__label__en","ft_lang_prob":0.62085867,"math_prob":0.9874396,"size":5790,"snap":"2019-13-2019-22","text_gpt3_token_len":1503,"char_repetition_ratio":0.19771864,"word_repetition_ratio":0.20952381,"special_character_ratio":0.27236614,"punctuation_ratio":0.16829053,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99729764,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],"im_url_duplicate_count":[null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-22T07:00:07Z\",\"WARC-Record-ID\":\"<urn:uuid:e5f1e27a-9db0-43e9-9499-cd1877bacfde>\",\"Content-Length\":\"41732\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5d53a9d6-c9f3-47ad-8811-81ecca377f0b>\",\"WARC-Concurrent-To\":\"<urn:uuid:caa68aa3-5254-4073-9074-d330f7a3c1ff>\",\"WARC-IP-Address\":\"23.218.140.208\",\"WARC-Target-URI\":\"https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-trig\",\"WARC-Payload-Digest\":\"sha1:CEAJLGFSUKV5KHGVQQ67DMC6FVA7RQ27\",\"WARC-Block-Digest\":\"sha1:XYAYMGDJ72HTWKKD6J4DSZSJGGLKF65M\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232256764.75_warc_CC-MAIN-20190522063112-20190522085112-00436.warc.gz\"}"}