Groovy – tan()
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 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…
The method returns the base of the natural logarithms, e, to the power of the argument. Syntax double exp(double d) Parameters d - Any primitive data type. Return Value This…
The method gives the maximum of the two arguments. The argument can be int, float, long, double. Syntax double max(double arg1, double arg2) float max(float arg1, float arg2) int max(int…
The method gives the smaller of the two arguments. The argument can be int, float, long, double. Syntax double min(double arg1, double arg2) float min(float arg1, float arg2) int min(int…
The method round returns the closest long or int, as given by the methods return type. Syntax long round(double d) int round(float f) Parameters d - A double or float…