This function is used to calculate cosine of a VALUE or $_ if VALUE is omitted. The VALUE should be expressed in radians.
VALUE in the form of radians
Returns: Function returns cosine of VALUE.
cos value of 5 is 0.283662185463226
cos value of 9 is -0.911130261884677
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.