コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Bond.cs プロジェクト: ppoulsen/FinancialCalculator
 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);
 }