SQL Server and PostgreSQL provide TAN function that returns the trigonometric tangent.
SQL Server:
-- Get tangent SELECT TAN(35.17); # 0.702617939267074
PostgreSQL:
-- Get tangent SELECT TAN(35.17); # 0.7026179392670738
For more information, see SQL Server to PostgreSQL Migration.