Check out example codes for "unity c# sin". It will help you in understanding the concepts better.

Code Example 1

float a = Mathf.Sin(Mathf.PI/2f)
Debug.Log("Mathf.Sin(Mathf.PI/2f) = "a); // Mathf.Sin(Mathf.PI/2f) = 1

Learn ReactJs, React Native from akashmittal.com