Wuya Tutorial-JavaScript-ATAN2 Function

describe

The ATAN2 function returns the arctangent, or inverse tangent, of the specified x- and ycoordinates, in radians, between -π/2 and +π/2.

grammar

ATAN2 (x_num, y_num)

debate

Argument describe Required/Optional
X_num The x-coordinate of the point. Required
Y_num The y-coordinate of the point. Required

Notes

  • A positive output represents an Angular counterclockwise from the x-axis. Negative output means clockwise Angular.

  • If you wish to represent the Angular returned by the ATAN2 function as degrees, you can convert it,

    • Using the Excel Degrees Function (= DEGREES(radians))

    • , or multiply by 180/PI()

  • ATAN2(a,b) is equal to ATAN(b/a), except that a in aTAN2 can be equal to 0.

  • If x_num and y_num are both 0, ATAN2 returns the #DIV/0! error value.

  • If x_num or y_num is non-numeric, ATAN2 returns a #VALUE! error value.

applicability

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

ATAN2 Function

ATAN2 function in JavaScript - Wuya Tutorial Network Wuya Tutorial Network provides a description The ATAN2 function returns the arctangent, or inverse tangent, of the specif... https://www.learnfk.com/javascript/advanced-excel-math -trignometric-atan2-function.html

Guess you like

Origin blog.csdn.net/w116858389/article/details/132922316