O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Tan Function

Class

System.Math

Syntax

Tan(a)

a (required; Double)

An angle in radians

Return Value

A Double containing the tangent of an angle

Description

Returns the ratio of two sides of a right angle triangle

Rules at a Glance

  • The returned ratio is derived by dividing the length of the side opposite the angle by the length of the side adjacent to the angle.

  • This is a Shared member, so it can be used without creating any objects.

Programming Tips and Gotchas

  • You can convert degrees to radians using the following formula:

    radians = degrees * (pi/180)
  • You can convert radians to degrees using the following formula:

    degrees = radians * (180/pi)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required