Java Math.sin() methodThe java.lang.Math.sin() is used to return the trigonometric sine of an angle. This method returns value between -1 to 1. SyntaxParameterReturn
Example 1Test it NowOutput: 0.8660254037844386 Example 2Test it NowOutput: 1.0 Example 3Test it NowOutput: NaN Example 4Test it NowOutput: -0.9285211870146288
Next TopicJava Math
|