|
|
səhifə | 17/24 | tarix | 10.05.2023 | ölçüsü | 117,5 Kb. | | #110606 |
| dep-materiallar-varaq (1)
U = Gaus(1);
//U[3] -= 0.001; U[11] -= 0.001; U[19] -= 0.001;
//U[5] -= 0.006; U[13] -= 0.005; U[21] -= 0.005;
//U[7] -= 0.019; U[15] -= 0.019; U[23] -= 0.019;
s = "T/r\tU\tV\t"; listBox1.Items.Add(s);
for (int i =0; i< 2*n; i += 2)
{
s = "";
s += String.Format("{0}\t{1:f6}\t{2:f6}", i / 2 + 1, U[i], U[i + 1]);// / 133333.333);
listBox1.Items.Add(s);
}
for (int i = 0; i < 2 * n; i++)
{
S = "";
for (int j = 0; j < 2 * n; j++)
S += String.Format("{0:f0} ", K[i, j]); ;
S += String.Format(" = " + F[i] + " ");
// writer.WriteLine(S);
}
// S = "****************************************************************";
// writer.WriteLine(S);
// S = "\tU\t\tV\t"; writer.WriteLine(S);
for (int j = 0; j < 2 * n; j += 2)
{
S = String.Format("{0}\t{1}", U[j], U[j + 1]);
writer.WriteLine(S);
}
// S = "****************************************************************";
// writer.WriteLine(S);
// for (int j = 0; j < 2 * n; j += 2)
// {
// S = String.Format("{0} ", U[j]);
// writer.WriteLine(S);
// }
// //S = "****************************************************************";
//// writer.WriteLine(S);
// for (int j = 0; j < 2 * n; j += 2)
// {
// S = String.Format("{0}", U[j + 1]);
// writer.WriteLine(S);
// }
writer.Close();
}
public Double[] Gaus(int q)
{
Double[,] a;
Double[] b;
Double[] x;
Dostları ilə paylaş: |
|
|