コード例 #1
0
 private Func <double, double> gReal, gIm;   // реальна і уявна частина значень на границі Г
 public SystemOfIE(SmoothCore _H11, SmoothCore _H12, SmoothCore _H2, Func <double, double> _gReal, Func <double, double> _gIm)
 {
     H11   = _H11;
     H12   = _H12;
     H2    = _H2;
     gReal = _gReal;
     gIm   = _gIm;
 }
コード例 #2
0
        public static double CalculateWithWeakSingularCore(SmoothCore f, int n)
        {
            int    N    = 2 * n;
            double temp = 0;
            double h    = Math.PI / n;
            double sum  = 0;

            for (int i = 0; i < N; i++)
            {
                sum  += f.GetValue(temp) * CoefficientForWeakSingular(f.Param, n, temp);
                temp += h;
            }
            return(sum * 2.0 * Math.PI);
        }// for periodiс cores with smooth part f on [0, 2*PI]x[0, 2*PI]