The Standard LibrarymathMethodscosOn this pagecosComputes the cosine. cos(1); Syntax cos(value) Returns The computation as a double. Notes Input as radians. Output as radians.