Groovy – atan2()
The method Converts rectangular coordinates (x, y) to polar coordinate (r, theta) and returns theta. Syntax double atan2(double y, double x) Parameters X - X co-ordinate in double data typeY…
The method Converts rectangular coordinates (x, y) to polar coordinate (r, theta) and returns theta. Syntax double atan2(double y, double x) Parameters X - X co-ordinate in double data typeY…
The method returns the arctangent of the specified double value. Syntax double atan(double d) Parameters d - This method accepts a value of double data type. Return Value This method…
The method returns the arccosine of the specified double value. Syntax double acos(double d) Parameters d - This method accepts a value of double data type. Return Value This method…
The method returns the arcsine of the specified double value. Syntax double asin(double d) Parameters d - This method accepts a value of double data type. Return Value This method…
The method returns the tangent of the specified double value. Syntax double tan(double d) Parameters d - This method accepts a value of double data type. Return Value This method…
The method returns the cosine of the specified double value. Syntax double cos(double d) Parameters d - This method accepts a value of double data type. Return Value This method…
The method returns the sine of the specified double value. Syntax double sin(double d) Parameters d - A double data type. Return Value This method Returns the sine of the…
The method returns the square root of the argument. Syntax double sqrt(double d) Parameters d - Any primitive data type. Return Value This method Returns the square root of the…
The method returns the value of the first argument raised to the power of the second argument. Syntax double pow(double base, double exponent) Parameters base - Any primitive data typeexponent…
The method returns the natural logarithm of the argument. Syntax double log(double d) Parameters d - Any primitive data type. Return Value This method Returns the natural logarithm of the…