The tangent function sin/cos; rare in ML papers, and not the same as tanh.
In ML papers
tanx=cosxsinx is the tangent of an angle. It is rare in ML papers. When it appears it is usually the inverse, arctan, turning a ratio back into an angle: a phase, a heading, the angle of a 2D vector.
The far more common function is tanh (Hyperbolic tangent), the hyperbolic tangent, an activation function. One letter apart, very different behaviour: tan shoots to infinity at ±2π, tanh stays between −1 and 1.
How to type it
LaTeX
Shows
\tan
tan
\arctaninverse tangent
arctan
A worked example
tan4π=1,arctan1=4π≈0.785
Compare tanh1≈0.762.
Common confusions
A "tangent space" or "tangent line" is a geometric idea, not this function.