Login     Register

        Contact Us     Search

XLeratorDB/math Documentation

SQL Server SEC function


SEC
 
Updated: 17 August 2010
Use SEC to calculate the secant of the given angle.
Syntax
SELECT [westclintech].[wct].[SEC] (
   <@Number, float,>)
Arguments
@Number
is the angle in radians. @Number is an expression of type float or of a type that can be implicitly converted to float
Return Types
float
Remarks
·         SEC = 1 / Cos(@Number)
Example
 
SELECT wct.SEC(PI())
Here is the result set
----------------------
-1
 
(1 row(s) affected)


Copyright 2008-2024 Westclintech LLC         Privacy Policy        Terms of Service