GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — Java Math sin() method with Examples - GeeksforGeeks Java Math sin() method with ExamplesLast Updated : 11 Jul, 2025 The java.lang.Math.sin() returns the trigonometry sine of an angle in between 0.0 and pi. If the argument is NaN or infinity, then the result is NaN. If the argument is zero, then the result is a zero with the same sign as the argument. The value returned will be between -1 and 1. Syntax : public static double sin(double a) ; Parameter: The value whose sine is to be returned. Return type: This method returns the sine value of the argument. Implementation: Here we will be proposing 2 examples one in which we will simply be showcasing the working of Math.sin() method of java.lang package method and secondary be edge case of the first example specific taken where argument is NaN or infinity. Example 1
Output: 0.49999999999999994 0.7071067811865475 0.8660254037844386 1.0 Example 2
Output: NaN NaN NaN Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |