totn MariaDB Functions

MariaDB: TAN Function

This MariaDB tutorial explains how to use the MariaDB TAN function with syntax and examples.

Description

The MariaDB TAN function returns the tangent of a number.

Syntax

The syntax for the TAN function in MariaDB is:

TAN( number )

Parameters or Arguments

number
The number used to calculate the tangent. It is expressed in radians.

Applies To

The TAN function can be used in the following versions of MariaDB:

  • MariaDB 10

Example

Let's look at some MariaDB TAN function examples and explore how to use the TAN function in MariaDB.

For example:

SELECT TAN(0.5);
Result: 0.5463024898437905

SELECT TAN(-3);
Result: 0.1425465430742778

SELECT TAN(0);
Result: 0