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