Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Atan Function

Class

System.Math

Syntax

Dim result As Double = Math.Atan(d)

d (required; Double)

A number representing a tangent

Description

The Atan function returns the arctangent in radians of d, in the range p/2 to p/2.

Usage at a Glance

  • If d is out of range, the function returns System.Double.NaN.

  • This is a shared member of the System.Math class, so it can be used without an instance.

  • To convert radians to degrees, multiply radians by 180/p.

  • Arctangent is not the cotangent. Arctangent is the inverse trigonometric function of the tangent; cotangent is the reciprocal of the tangent.

Version Differences

In VB 6, Atan is an intrinsic VB function. In the .NET platform, it is a member of the System.Math class and not directly part of the VB language.

See Also

Acos Function, Asin Function, Atan2 Function

Категории