©SQL :: Manager
HomeProgram InformationTechnical detailsFree downloadDonate for a cup of coffee
myway SQL Manager for MySQL and MariaDB, Download on Uptodown
SQL functionMySQLMariaDB

The SIN SQL Function in MySQL and MariaDB - Sine calculation

SINSyntax:SIN(Number)
Return value:FLOAT
Function type:Numeric function
Function Description

The SIN() function returns the sine value of "Number", where "Number" is in radians.

SIN() returns NULL if the value of "Number" is NULL.

The RADIANS() function can also be used to calculate a sine from an angle value.

SQL Examples for the SIN function

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

select radians(45);
select sin(0.7853981633974483);
select sin(radians(45));
select sin(radians(-45));

select sin(radians(90));
select round(sin(radians(180)),16);
select sin(radians(270));
select round(sin(radians(360)),16);

radians(45)
double(23)
0.7853981633974483
sin(0.7853981633974483)
double(23)
0.7071067811865476
sin(radians(45))
double(23)
0.7071067811865476
sin(radians(-45))
double(23)
-0.7071067811865476
sin(radians(90))
double(23)
1
round(sin(radians(180)),16)
double(33)
0.0000000000000001
sin(radians(270))
double(23)
-1
round(sin(radians(360)),16)
double(33)
-0.0000000000000002
The examples were created with the MyWAY SQL manager: Download

How to use the SIN() function in MySQL and MariaDB databases

The SIN() function in MySQL and MariaDB is used to find the sine of an angle in radians calculate. The sine of an angle is a mathematical trigonometric function that represents the ratio of the length of the side opposite the angle to the length of the hypotenuse in a right triangle. The function can be useful in various mathematical calculations, especially when dealing with angles and trigonometry. It is commonly used in scientific and engineering applications such as physics, geometry, signal processing, and more. This allows calculations with periodic or oscillating phenomena, waveforms and angles to be performed.
SHA1SHA2SIGNSINSLEEPSOUNDEXSPACE

Further MySQL und MariaDB SQL Numeric functions

BIT_COUNTBIT_COUNT(Integer)
More about BIT_COUNT Function

CEILCEIL(Number)
More about CEIL Function

CEILINGCEILING(Number)
More about CEILING Function

CRC32CRC32(String)
More about CRC32 Function

CRC32CCRC32C([Parameter], String)

FLOORFLOOR(Number)
More about FLOOR Function

SIGNSIGN(Number)
More about SIGN Function

ABSABS(Number)
More about ABS Function

ACOSACOS(Number)
More about ACOS Function

ASINASIN(Number)
More about ASIN Function

ATANATAN(Number [, Number2])
More about ATAN Function

ATAN2ATAN2(Number [, Number2])
More about ATAN2 Function

COSCOS(Number)
More about COS Function

COTCOT(Number)
More about COT Function

DEGREESDEGREES(Number)
More about DEGREES Function

EXPEXP(Number)
More about EXP Function

LNLN(Number)
More about LN Function

LOGLOG([Base], Number)
More about LOG Function

LOG10LOG10(Number)
More about LOG10 Function

LOG2LOG2(Number)
More about LOG2 Function

MODMOD(Number, Divider)
More about MOD Function

POWPOW(Number, Exponent)
More about POW Function

POWERPOWER(Number, Exponent)
More about POWER Function

PIPI()
More about PI Function

RADIANSRADIANS(Number)
More about RADIANS Function

RANDRAND([Number])
More about RAND Function

ROUNDROUND(Number [, Decimals])
More about ROUND Function

SQRTSQRT(Number)
More about SQRT Function

TANTAN(Number)
More about TAN Function

TRUNCATETRUNCATE(Number, Decimals)
More about TRUNCATE Function

Numeric functionsString functionsRegular ExpressionsDate and Time functions
Comparison functionsEncryption & CompressionConversion functionsNULL functions
Aggregate functionsWindow functionsJSON functionsGeometric functions
Sequence functionsInformation functionsDynamic ColumnsMiscellaneous functions
More information about the SIN SQL function: mysql.com and mariadb.com and w3schools.com
Updated: 2023-09-24ImprintContactTerms & conditionsPrivacy & CookiesUpdatesSitemapFacebookLinkedinTwitterStatistics©2020-2024 Heino Cunze-Fischer