Está en la página 1de 6

Cuerda vibrante

K = ORDEN DE LA SERIE

T= TIEMPO

L= LONGITUTD DE LA CUERDA

C=1

F= Posición inicial de la cuerda F=FUNCION LINEAL f(x)=(2X+1)

G=derivada parcial respecto al tiempo g(x)=2


APROXIMACION NUMERICA
Una vibración de una cuerda de longitud 6

L=6

Entonces an =

La función debe presentar la posición inicial

velocidad
public virtual void Fourier(double x, out double fou)
{
double an, bn, sumF;
double n;

sumF = 0;
n = 0;
do
{
//el 3 salio de la funcion x(6-x)/3
n = n + 1;
an = (1) * (0+4 * (3) * Math.Sin(n * Math.PI * 3) + 0 * (Math.Sin(n
* Math.PI*6)));
an = an * 1/3;
bn = (1) * (0+4 * 3 * (Math.Sin(n * Math.PI * 3))) + 6 * (Math.Sin(n
* Math.PI*6));
bn = (bn * 2) / (n * Math.PI * 1);
sumF = sumF + (an * Math.Cos((n * Math.PI* 1 * t)/6) + bn *
Math.Sin((n * Math.PI * 1 * t)/6)) * Math.Sin((n * Math.PI * x) / 6);

} while (n<=18);
fou = sumF;
}
public virtual void EncenderC(ref Bitmap bmp, PictureBox pict)
{
double t = 0;
double dt = 0.01;
vector v = new vector();
do
{
v.x0 = t;
Fourier(t,out double fou);
v.y0 = fou;
v.col0 = col0;
v.proceso_encender(ref bmp);
t += dt;

} while (t <= 6);


}
}
}

Se hace 0 por la funcion

G(x)=2

También podría gustarte