Escolar Documentos
Profissional Documentos
Cultura Documentos
METODOS NUMERICOS
REPORTE DE PRACTICA
Mtodos Numricos
Reporte de Practica
INTERPOLACION DE NEWTON
ALUMNOS:
Lome Carbajal Francisco Miguel
Ros Aguilar Luis Javier
MAESTRA
Adriana Chazaro S.
[ UN CIELO DE OPORTUNIDADES ]
COLON, QUERETARO
[ UN CIELO DE OPORTUNIDADES ]
COLON, QUERETARO
(2)
Desarrollo
El programa se realizo en c# obteniendo el sig Codigo.
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{//declaracion de variales
double[] vectorPoli = new double[100];
double[] vectorNewton = new double[100];
double[] vectorX = new double[100];
double[] vectorY = new double[100];
double[,] matriztabla = new double[100, 100];
double sumatoria = 0, multiplicatoria, resultado;
int n, i, j, k, grado;
double x;
System.Console.WriteLine("da el valor de x para hacer la aproximacion");
x=double.Parse(System.Console.ReadLine());
System.Console.WriteLine("grado del polinomio");
grado=int.Parse(System.Console.ReadLine());
System.Console.WriteLine("da el numero de datos que tienes");
n = int.Parse(System.Console.ReadLine());
for (i = 1; i <= n; i++)//creacion de vectores
{
System.Console.WriteLine("ingresa el valor del vector X del dato "
+ i);
vectorX[i] = double.Parse(System.Console.ReadLine());
System.Console.WriteLine("ingresa el valor del vector Y del dato "
+ i);
vectorY[i] = double.Parse(System.Console.ReadLine());
}
System.Console.Write("X= ");
for (i = 1; i <= n; i++)//imprimir vector x
{
System.Console.Write(vectorX[i] + "
");
[ UN CIELO DE OPORTUNIDADES ]
COLON, QUERETARO
[ UN CIELO DE OPORTUNIDADES ]
COLON, QUERETARO
[ UN CIELO DE OPORTUNIDADES ]
COLON, QUERETARO