cos function fixed (argument types were not defined)