Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Cuerda Vibrante
Cuerda Vibrante
K = ORDEN DE LA SERIE
T= TIEMPO
L= LONGITUTD DE LA CUERDA
C=1
L=6
Entonces an =
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;
G(x)=2