y=lab.cos(x) returns the cosine of the elements of x.