totn MariaDB Functions

MariaDB: COT Function

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

Description

The MariaDB COT function returns the cotangent of a number.

Syntax

The syntax for the COT function in MariaDB is:

COT( number )

Parameters or Arguments

number
The number used to calculate the cotangent.

Note

  • The COT function will return an error, if number is 0.

Applies To

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

  • MariaDB 10

Example

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

For example:

SELECT COT(3);
Result: -7.015252551434534

SELECT COT(-2);
Result: 0.45765755436028577

SELECT COT(1.3);
Result: 0.27761564654112514