public static double AnnuityWithPandCandN(double P, double C, long N) { IEnumerable<Object> otherParams = new object[] { P, C, N }; var func = new CommonMethods.MyYieldFunction(FindYieldN); return CommonMethods.UseBisectionMethod(func, 1E-10, 100.0, otherParams); }
public static double BondWithPandCandMm(double F, double P, double C, long M, long littleM) { IEnumerable<Object> otherParams = new object[] { F, P, C, M, littleM }; var func = new CommonMethods.MyYieldFunction(FindYieldMm); return CommonMethods.UseBisectionMethod(func, 1E-10, 100.0, otherParams); }