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

Sqrt

Class

Calculates the square root of a positive number, returning an error for negative values.

Definition

Constructors

Initializes a new SQRT function that calculates square roots of non-negative numbers.

C#
public Sqrt()

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 "SQRT" as it appears in spreadsheet formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the SQRT function and returns the square root of the number, checking for negative inputs.

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>)