TAN¶
The TAN function is used to calculate the tangent of a number. It takes a single numeric argument (angle in radians) and returns the tangent of that angle.
Syntax¶
value: A numeric expression (angle in radians) for which the tangent is to be calculated.
Examples¶
Let's consider a table named SingleItem with the following schema:
Insert a row into the SingleItem table:
Example 1: Using TAN with float values¶
Result:
Example 2: Using TAN with NULL values¶
Result:
Errors¶
The TAN function requires a numeric value as its argument. Using non-numeric values or more than one argument will result in an error.
Example 3: Using TAN with non-numeric values¶
Error: Function requires a numeric value.
Example 4: Using TAN with multiple arguments¶
Error: Function expects 1 argument, but 2 were provided.