Beispiel #1
0
        public void PruebaIntegracion()
        {
            Laboratorio1.Integral.Integracion integral = new Laboratorio1.Integral.Integracion();

            double valorA = 5;
            double VAlorB = 10;
            double valorK = 1;
            double valorN=2;
            int tipo = 1;
            double res = 5;

            Assert.IsTrue(res== integral.ResolverIntegral(valorA, VAlorB, valorK, valorN, tipo));
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Integracion integra = new Integracion();

               double valorA = 5.0;
               double VAlorB = 10.0;
               double valorK = 450.0;
               double valorN = 10.0;
               int tipo = 7;
               double res = 0.0;

               double result = Math.Sin(40);
            res = integra.ResolverIntegral(valorA, VAlorB, valorK, valorN, tipo);
            double numero = Math.Round(res, 4);
            double resuktado = 1.3;
            double resuktad = 1.3;
        }
Beispiel #3
0
 public double ResolverIntegral(double valorA, double valorB, double valorK, double valorN, int tipo)
 {
     Integracion integral = new Integracion(valorA, valorB, valorK, valorN, tipo);
     integral.ResolverIntegral(valorA, valorB, valorK, valorN, tipo);
     return (integral.valorResultado);
 }