Wednesday, August 18, 2010

Visual Basic Math Function : Cos

Purpose : Return the cosine of a numeric expression.

Syntax :
Cos ( dblAngle )

dblAngle : Numeric expression for which you want to return the cosine

A! = Cos ( 4.93 )

The Cos function determines the cosine of an angle. the function expects the angle to be expressed in radians ; if the angle is in degrees, ti must first be converted using the formula

Radians = Degrees X pi/180

If the angle is supplied as an integer of a single-precision value. Cos returns a single-precision value ; otherwise, it returns a double-precision value.

Visual Basic has four trigonometric function: Tan, Atn, Sin, Cos

No comments:

Post a Comment