Trig

Trigonometry
Six trignometric functions are available. The input for SIN, COS, and TAN must be expressed in radians. The return from ACS, ASN, and ATN is expressed in radians.

Syntax: ACS(x) - Arccosine of x ASN(x) - Arcsine of (x) ATN(x) - Arctangent of (x) COS(x) - Cosine of x SIN(x) - Sine of x TAN(x) - Tangent of x

This function returns the arc cosine of the number or numeric expression n. The return value is expressed in radians. Usage: print "The arc cosine of 0.2 is "; acs(0.2)
 * ACS( n )**

This function returns the arc sine of the number or numeric expression n. The return value is expressed in radians. Usage: print "The arc sine of 0.2 is "; asn(0.2)
 * ASN( n )**

This function returns the arc tangent of the number or numeric expression n. The return value is expressed in radians. Usage: print "The arc tangent of 0.2 is "; atn(0.2)
 * ATN( n )**

This function returns the cosine of the angle n. The angle n should be expressed in radians. Usage: for c = 1 to 45 print "The cosine of "; c; " is "; cos(c) next c
 * COS( n )**

This function returns the sine of the angle n. The angle n should be expressed in radians. Usage: for t = 1 to 45 print "The sine of "; t; " is "; sin(t) next t
 * SIN( n )**

This function returns the tangent of the angle n. The angle n should be expressed in radians Usage: for t = 1 to 45 print "The tangent of "; t; " is "; tan(t) next t
 * TAN( n )**

The following demo prints the results of the six trigonometric functions.

code format="vbnet" print "Sine of 1 radian is ";sin(1) print "Cosine of 1 radian is ";cos(1) print "Tangent of 1 radian is ";tan(1)

print "Sine of 2 radians is ";sin(2) print "Cosine of 2 radians is ";cos(2) print "Tangent of 2 radians is ";tan(2)

print "Arcsine of .8 is ";asn(.8);" radians." print "Arccosine of .8 is ";acs(.8);" radians." print "Arcstangent of .8 is ";atn(.8);" radians." code