Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]


5.87 pricing_npv

Function File: [npv MacDur Convexity MonDur Convexity_alt] = pricing_npv(valuation_date, cashflow_dates, cashflow_values, spread_constant, discount_nodes, discount_rates, basis, comp_type, comp_freq, interp_discount, comp_type_curve, basis_curve, comp_freq_curve, sensi_flag)

Compute the net present value, Macaulay Duration, Convexity and Monetary duration of a given cash flow pattern according to a given discount curve and day count convention etc.
Pre-requirements:

Input and output variables:

See also: timefactor, discount_factor, interpolate_curve, convert_curve_rates.


Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]