New to Telerik Document Processing? Start a free 30-day trial

Sec

Class

Calculates the secant of an angle specified in radians, returning 1/cos(angle).

Definition

Constructors

Initializes a new SEC function that calculates the secant of a radian angle.

C#
public Sec()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing the function signature, category, and argument requirements.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name "SEC" as it appears in spreadsheet formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the SEC function and returns the secant of the angle, checking for values that would cause numerical overflow.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)