ASIN(), ACOS() and ATAN() Function in MariaDB
Last Updated :
01 Oct, 2020
1. ASIN Function :
In MariaDB, the ASIN function is used for finding arc sine of a number. In this function, a number will be passed as a parameter and this function will return the arcsine of that number. The function will return valid output only if the number is in the range of -1 to 1, otherwise, it will return NULL as output.
Syntax :
ASIN(number)
Parameter : Required. A numeric value.
number : A number used to calculate the arcsine. The range of number must in the range -1 to 1.
Example-1 :
SELECT ASIN(1);
Output :
1.5707963267948966
Example-2 :
SELECT ASIN(2.3);
Output :
NULL
Example-3 :
SELECT ASIN(0.41);
Output :
0.42245406218675574
2. ACOS Function :
In MariaDB, the ACOS function is used for finding arc cosine of a number. In this function, a number will be passed as a parameter and this function will return the arc cosine of that number. The function will return valid output only if the number is in the range of -1 to 1, otherwise, it will return NULL as output.
Syntax :
ACOS(number)
Parameter : Required. A numeric value.
number : A number used to calculate the arc cosine. The range of number must in the range -1 to 1.
Example-1 :
SELECT ACOS(-0.6);
Output :
2.214297435588181
Example-2 :
SELECT ACOS(1);
Output :
0
Example-3 :
SELECT ACOS(1.9);
Output :
NULL
3. ATAN Function :
In MariaDB, the ATAN function is used for finding arc tangent of a number or arc tangent of n and m. In this function, a number will be passed as a parameter or n and m will be passed for the second type of syntax. this function will return the arc tangent of that number. When the second type of syntax is used then the sign of m, n is used for deciding the quadrant for the result.
Syntax-1 :
ATAN(number)
Parameter : Required. A numeric value.
number : A number used to calculate the arc tangent.
Syntax-2 :
ATAN(n, m)
Parameters : Required. Two numeric values.
n, m : Two values used to calculate the arc tangent.
Example-1 :
SELECT ATAN(-1.4);
Output :
-0.9505468408120751
Example-2 :
SELECT ATAN(1, 3);
Output :
0.3217505543966422
Example-3 :
SELECT ATAN(0.6);
Output :
0.5404195002705842
Similar Reads
MariaDB COUNT Functions MariaDB is an open-source and relational database to operates available data and displays the required value. the count, max, min, and other functions used to get particular information or count of the database data. the mariaDB count() function is used to get a COUNT of the row or available informa
4 min read
MariaDB Function MariaDB is an open-source relational database management system that stores organize and manipulate data very efficiently. It is considered a replacement for MySQL. It offers various features like multi-master replication, enhanced storage engines, and so on. In this article, we will learn about the
6 min read
Unique Constraint in MariaDB MariaDB uses relational databases similar to SQL. SQL is the precedence of MariaDB similar to the SQL mariaDB also uses some of the querying language to process through the databases. The main advantage of the MariaDB is that it runs on various operating systems and supports many programming languag
7 min read
MariaDB MAX Function In MariaDB MAX() Functions, We'll explore the MariaDB MAX() function â a powerful tool for finding the highest values in different data types. We'll break down its simple syntax and practical uses, showing how it helps uncover key insights from numeric, date, and string datasets. Join us on a journe
6 min read
MariaDB SUM() Function MariaDB is an open-source database that comes under the Relational DataBase Management System(RDBMS). It was bought by Oracle in 2009. MariaDB is highly Compatible with MySQL. It offers exceptional performance and scalability which is optimized for the performance and efficient handling of large dat
4 min read
MariaDB MIN Functions MariaDB is a relational database language that is similar to SQL. We know that in a relational database language, the data is stored in the form of relations which are nothing but the tables. Similar to SQL which has aggregate functions such as MIN(), MAX(), AVG(), and LEAST() functions. These aggre
5 min read