Check out example codes for "math.sin java". It will help you in understanding the concepts better.

Code Example 1

double pi = Math.PI;
double ans = Math.sin(pi/2);  //Input is in radians
ans == 1;

Learn ReactJs, React Native from akashmittal.com