Esempio n. 1
0
 public static double Spherical(Func <double, double, double, double> f, Integral1 integral1, Integral2 integral2, Integral3 integral3)
 {
     return(Integration.Integrate((r, theta, phi) => r * r * Math.Sin(theta) * f(r, theta, phi), integral1, integral2, integral3));
 }
Esempio n. 2
0
 public static double Cylindrical(Func <double, double, double, double> f, Integral1 integral1, Integral2 integral2, Integral3 integral3)
 {
     return(Integration.Integrate((r, theta, z) => r * f(r, theta, z), integral1, integral2, integral3));
 }
Esempio n. 3
0
 public static double Integrate(Func <double, double, double, double> f, Integral1 integral1, Integral2 integral2, Integral3 integral3)
 {
     return(Integration.Integrate(
                (x, y) => Integration.Integrate(z => f(x, y, z),
                                                new Integral1(
                                                    () => integral3.Lower(x, y),
                                                    () => integral3.Upper(x, y),
                                                    integral3.Steps)),
                integral1, integral2));
 }
Esempio n. 4
0
 public static double Polar(Func <double, double, double> f, Integral1 integral1, Integral2 integral2)
 {
     return(Integration.Integrate((r, theta) => r * f(r, theta), integral1, integral2));
 }
Esempio n. 5
0
 public static double Integrate(Func <double, double, double> f, Integral1 integral1, Integral2 integral2)
 {
     return(Integration.Integrate(x => Integration.Integrate(y => f(x, y),
                                                             new Integral1(
                                                                 () => integral2.Lower(x),
                                                                 () => integral2.Upper(x),
                                                                 integral2.Steps)),
                                  integral1));
 }