Logo

SECH

Updated 2023-10-13 14:50:32.573000

Syntax

SELECT [westclintech].[wct].[SECH] (
   <@Z, float,>)

Description

Use the scalar function SECH to calculate the hyperbolic secant of an angle specified in radians.

Arguments

@Z

The number of interest. @Z must be of type float or of a type that implicitly converts to float.

Return Type

float

Remarks

SECH is undefined at 0.

Examples

Example #1

SELECT wct.SECH(RADIANS(45e+0)) as SECH;

This produces the following result.

{"columns":[{"field":"SECH","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"SECH":"0.754939708714131"}]}

Example #2

The following SQL can be run and the results pasted into Excel to graph the results of the function in the range -10, 10.

SELECT SeriesValue as z,
       wct.SECH(Seriesvalue) as SECH
FROM wct.SERIESFLOAT(-10, 10, .01, NULL, NULL);

Here's the graph of the results.

http://westclintech.com/Portals/0/images/doc_math_SECH_img1.jpg

See Also

SEC - Calculate the secant of the given angle.