atan2 (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: trigonometric

Requires: MathScript RT Module

Syntax

c = atan2(z)

c = atan2(y, x)

Description

Computes the arctangent of y/x. This function can compute the arctangent for angles in any of the four quadrants of the x-y plane, whereas the atan function computes the arctangent in only two quadrants.

Examples

Inputs

Name Description
z Specifies a real or complex scalar, vector, or matrix. atan2(z) is equivalent to atan2(real(z), imag(z)).
y Specifies a real or complex scalar, vector, or matrix. If y is a complex matrix, LabVIEW ignores the imaginary part and uses only the real part to compute the arctangent.
x Specifies a real or complex scalar, vector, or matrix. If x is a complex matrix, LabVIEW ignores the imaginary part and uses only the real part to compute the arctangent. x must be the same size as y.

Outputs

Name Description
c Returns the arctangent, in radians, of the elements in x and y. c is a scalar, vector, or matrix of the same size as x and y.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes

Examples

C = atan2(3, 4)
C = atan2(3+4i)

Related Topics

atan

文章是否对您有帮助?

没有帮助