The Standard LibrarymathMethodstanOn this pagetanComputes the tangent. tan(1); Syntax tan(value) Returns The computation as a double. Notes Input as radians. Output as radians.