Returns the annual yield of a security that pays interest at
maturity.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Yieldmat(
DateTime settlement,
DateTime maturity,
DateTime issue,
double rate,
double price,
DayCountBasis basis
)
Public Shared Function Yieldmat (
settlement As DateTime,
maturity As DateTime,
issue As DateTime,
rate As Double,
price As Double,
basis As DayCountBasis
) As Double
public:
static double Yieldmat(
DateTime settlement,
DateTime maturity,
DateTime issue,
double rate,
double price,
DayCountBasis^ basis
)
static member Yieldmat :
settlement : DateTime *
maturity : DateTime *
issue : DateTime *
rate : float *
price : float *
basis : DayCountBasis -> float
Parameters
- settlement
- Type: SystemDateTime
The DateTime settlement date of the security.
- maturity
- Type: SystemDateTime
The DateTime maturity date of the security.
- issue
- Type: SystemDateTime
The DateTime issue date of the security.
- rate
- Type: SystemDouble
A double which specifies the security's interest rate at date
of issue.
- price
- Type: SystemDouble
A double which specifies the security's price per $100 face
value.
- basis
- Type: Imsl.FinanceDayCountBasis
A DayCountBasis object which contains the type of day count
basis to use.
Return Value
Type:
Double
A
double which specifies the annual yield of a security that
pays interest at maturity.
Remarks
It is computed using the following:
In the equation above,

represents the
number of days in the period starting with the issue date and ending
with the maturity date.

represents the
number of days in the period starting with the settlement date and
ending with the maturity date.

represents the
number of days in the period starting with the issue date and ending
with the settlement date.

represents the
number of days in a year based on the annual basis.
See Also