コード例 #1
0
 public IntegralTwoCoreEquationDiscretezer(int pointsNumber, DoubleCore <double> core1, DoubleCore <double> core2, Func <double, double> rightPartFunction)
 {
     PointsNumber      = pointsNumber;
     RightPartFunction = rightPartFunction;
     CoreFirst         = core1;
     CoreSecond        = core2;
 }
コード例 #2
0
        // for periodiс cores with smooth part f on [0, 2*PI]x[0, 2*PI]
        public static double CalculateWithWeakSingularCore(DoubleCore <double> f, int n)
        {
            n = DevideByTwo(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);
        }
コード例 #3
0
 public IntegralEquationDiscretezer(int pointsNumber, DoubleCore <double> core, Func <double, double> rightPartFunction)
 {
     PointsNumber      = pointsNumber;
     RightPartFunction = rightPartFunction;
     Core = core;
 }