Acos Function

   
Acos Function

Class

System.Math

Syntax

 Math.Acos(   d   ) 
d (required; Double or any valid numeric expression)

A cosine, which is a number greater than or equal to -1 and less than or equal to 1

Return Value

A Double between 0 and pi that is the arccosine of d in radians

Description

Returns the arccosine of d in radians

Rules at a Glance

  • If d is out of range (less than -1 or greater than 1), Acos returns NaN .

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

Programming Tips and Gotchas

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

VB.NET/VB 6 Differences

The Acos function did not exist in VB 6.

See Also

Asin Function, Atan Function, Atan2 Function

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net