Mathematical Library Methods
Mathematical Library Methods
No. of
Function Use Syntax Argument Return Type Example
& type
To find the
Math.sin <Return data type><variable>
trigonometrical 1 double rad=(22.0/(7.0*180))*a;
Math.cos = <Function name ( angle in double
ratio, if the angle double double d=Math.cos(rad);
Math.tan radian)>;
is known
To find an angle, if
Math.asin <Return data type><variable>
the 1 double k=Math.asin(0.5);
Math.acos = <Function name ( value in double
trigonometrical double double d=(k*7.0*180.0)/22.0;
Math.atan radian)>;
ratio is known