VBS Tutorial: function-Atn Function

Source: Internet
Author: User

Atn Function

Returns the arc tangent of a value.

Atn (Number)

NumberThe parameter can be any valid numeric expression.

Description

AtnFunction compute the ratio of two sides of a right triangle (Number) And returns the radians of the corresponding angle. This ratio is the ratio of the length of the right side of the angle to the length of the adjacent side. The result ranges from-pi/2 to pi/2 radian.

The method to convert radians to degrees is to multiply radians by pi/180. Otherwise, the angle is converted to radians by multiplying the angle by 180/pi.

The following example usesAtnTo calculate the pi value:

Dim pipi = 4 *Atn (1)'ComputingPi.

Note: AtnYesTanReturns the inverse trigonometric function of a right triangle. Do not confuseAtnReturns the reciprocal (1/tangent) of the tangent.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.