Free Lessons Courses Seminars TechHelp Fast Tips Templates Topic Index Forum ABCD

 Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon More... What's New? Popular Links ------------ Access Courses Access Index Access TechHelp Access Forum ------------ Excel Courses Excel Index ------------ Code Vault Testimonials

 Glossary New Entries Added Almost Daily! Click here to get on our Mailing List
 Access    Excel    Word    Windows    HTML

# Atn

## Using the Atn Function

In this tutorial you will learn how to use the Atn Function.

The Atn function returns a Double specifying the arctangent of an angle.

=Atn( number )

number any valid number expression that expresses an angle in radians

The Atn function takes the ratio of two sides of a right triangle (number) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.

The range of the result is pi/2 to pi/2 radians.

To convert degrees to radians, multiply degrees by pi/180. To convert radians to degrees, multiply radians by 180/pi.

Atn is the inverse trigonometric function of Tan, which takes an angle as its argument and returns the ratio of two sides of a right triangle. Do not confuse Atn with the cotangent, which is the simple inverse of a tangent (1/tangent).

In this example we will use 1.

The result is 0.785398163397448.

Query

The results using a Query would be

```	SELECT Atn(1);
```

FORM

In a Form you could set the Default Value of a Textbox to

```	=Atn(1)
```
VBA

In a Form add a TEXTBOX control and rename it "txtAtn", then you could add the following in the Load Event.

```	Private Sub Form_Load()
txtAtn = Atn(1)
End Sub
```

Courses Search

You can find more about this by searching the website.

 Check out these other pages that may be of interest to you:
 12/1/2022 Load Faster 11/29/2022 Date Buttons 11/29/2022 Change Date Field 11/28/2022 Top X 11/27/2022 System Settings 11/25/2022 Application Title 11/24/2022 Full HTML Editor in Access 11/24/2022 Change Database Title 11/23/2022 Other Names 11/21/2022 Check Icon File