New to Telerik Document ProcessingStart a free 30-day trial

Implements the YIELDMAT financial function, which calculates the annual yield for a security that pays interest at maturity.

Definition

Constructors

Initializes a new YIELDMAT function instance for calculating annual yield on securities that pay all interest at maturity.

C#
public YieldMat()

Fields

The name of the function.

C#
public static readonly string FunctionName

Methods

Evaluates the YIELDMAT function using the provided settlement date, maturity, issue date, interest rate, price, and optional basis, returning the annual yield as a numeric expression or an error.

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

Properties

Specifies the conversion rules applied to function arguments, excluding boolean-to-number conversions for financial calculations.

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

The argument conversion rules as ArgumentConversionRules.

Overrides: NumbersInFunction.ArgumentConversionRules

Provides metadata describing the function's category, arguments, and help documentation.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Returns the function name "YIELDMAT" used in formulas.

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

The name as String.

Overrides: FunctionBase.Name