COS()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the cosine of an angle, specified in radians.
USAGE
COS(radians)
Argument Name | Description |
---|---|
| The numeric argument expressed in radians |
DETAILS
COS()
is a trigonometric function that returns the cosine of the radians
argument.
The argument is an angle expressed in radians.
A NULL
is returned if the argument is NULL
.
EXAMPLES
SELECT COS(PI());
+-----------+
| COS(PI()) |
+-----------+
| -1 |
+-----------+