k012345
|
|
|
|
|
|
|
Xk
|
0
|
0.2
|
0.4
|
0.6
|
0.8
|
1
|
Yk
|
-1
|
-.784
|
-.529
|
-.242
|
0.069
|
0.399
|
Заключение
В результате выполнения курсовой работы было произведено
математическое описания задачи решения дифференциального уравнения
модифицированным методом Эйлера, разработана схема алгоритма и написана
программа решения на языке программирования С#. В программе предусмотрена
обработка большого количества ошибок ввода пользователя, проведенное
тестирование показало правильность результатов вычисления. Разработанная
программа может использоваться для решения дифференциального уравнения
модифицированным методом Эйлера.
Список
литературы
1. Мышенков
В.И., Мышенков Е.В. Численные методы. Часть вторая. Решение обыкновенных
дифференциальных уравнений 109с.
2. Методические
указания и задания к курсовому проектированию для студентов специальности
140607 "Электрооборудование автомобилей и тракторов". Могилев 2009г.
Сост. В.Н. Абабурко, К.В. Овсянников - Могилев: Белорус. - Рос. ун-т, 2005. -
25 с.
Приложение А
Программный код
AssemblyInfo. cs
using System. Reflection;System.runtime.compilerServices;System.runtime.
InteropServices;
[assembly: AssemblyTitle ("Test_solution")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("Test_solution")]
[assembly: AssemblyCopyright ("")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
[assembly: ComVisible (false)]
[assembly: AssemblyVersion ("1.0. *")]
MainForm. cs
using System;System. Collections. Generic;System.
Drawing;System. Windows. Forms;System. IO;Test_solution
{partial class MainForm: Form
{static void Main (string [] args)
{. EnableVisualStyles ();.
SetCompatibleTextRenderingDefault (false);.run (new MainForm ());
}MainForm ()
}A, B, C, s1, s2, Yo, Xo, E, b, h, n,f,g;[] X =
new double [100];[] Y = new double [100];[] str_k = new string [100];[] str_X =
new string [100];[] str_Y = new string [100];Button1Click (object sender,
EventArgs e)
{
{= Convert. ToDouble (textBox1. Text);= Convert.
ToDouble (textBox2. Text);= Convert. ToDouble (textBox3. Text);= Convert.
ToDouble (textBox4. Text);= Convert. ToDouble (textBox10. Text);= Convert.
ToDouble (textBox5. Text);= Convert. ToDouble (textBox6. Text);= Convert.
ToDouble (textBox7. Text);= Convert. ToDouble (textBox9. Text);= Convert.
ToDouble (textBox11. Text);= Convert. ToDouble (textBox12. Text);= Math. Pow
(E,0.333);= Math. Round ( (b - Xo) /h);(int k = 0; k <= n; k ++)
{(k! = 0)
{[k] = Math. Round (X [k - 1] + h, 1);[k] =Math.
Round (Y [k-1] + h/2 * ( (A*Math. Pow (X [k-1],s1) /f+B*Math. Pow (Y [k-1],s2)
/g+C) + (A * Math. Pow (X [k-1], s1) /f + B * Math. Pow (Y [k-1], s2) /g +
C)),3);
}
{[k] = Yo + h * ( (A * Math. Pow (X [k], s1) /f +
B * Math. Pow (Y [k], s2) /g + C));
}_k [k] = k. ToString ();_X [k] = X [k]. ToString
();_Y [k] = Y [k]. ToString ();
}. Lines = str_k;. Lines = str_X;. Lines = str_Y;
}(System. Exception exception_text)
{exception_form = new ThreadExceptionDialog
(exception_text);_form. Show ();
}
}TextBox6TextChanged (object sender, EventArgs e)
{. Text = textBox6. Text;
}button2_Click (object sender, EventArgs e)
{
{= Convert. ToDouble (textBox1. Text);= Convert.
ToDouble (textBox2. Text);= Convert. ToDouble (textBox3. Text);= Convert.
ToDouble (textBox4. Text);= Convert. ToDouble (textBox10. Text);= Convert.
ToDouble (textBox5. Text);= Convert. ToDouble (textBox6. Text);= Convert.
ToDouble (textBox7. Text);= Convert. ToDouble (textBox9. Text);= Convert.
ToDouble (textBox11. Text);= Convert. ToDouble (textBox12. Text);Save = new
Save ();. ShowDialog ();sw = File. CreateText ("Эйлер-Коши (вводимые
данные). txt");. WriteLine (A + "");. WriteLine (s1 +
"");. WriteLine (b + "");. WriteLine (s2 + "");.
WriteLine (C + "");. WriteLine (Yo + "");. WriteLine (Xo +
"");. WriteLine (E + "");. WriteLine (b + "");.
WriteLine (f + "");. WriteLine (g + "");. Close ();sw1 =
File. CreateText ("Эйлер-Коши (выводимые данные). txt");. WriteLine
(richTextBox1. Text + "");. WriteLine (richTextBox2. Text +
"");. WriteLine (richTextBox3. Text + "");. Close ();
}(System. Exception exception_text)
{exception_form = new ThreadExceptionDialog
(exception_text);_form. Show ();
}
}void button3_Click (object sender, EventArgs e)
{Form_exit = new Form_exit ();_exit. ShowDialog
();. Close ();
}
}
}
MainForm. Designer. cs
namespace Test_solution
{class MainForm
{System.componentModel. IContainer components =
null;override void Dispose (bool disposing)
{(disposing) {(components! = null) {. Dispose ();
}
}. Dispose (disposing);
}void InitializeComponent ()
{.componentModel.componentResourceManager
resources = new System.componentModel.componentResourceManager (typeof
(MainForm));. textBox1 = new System. Windows. Forms. TextBox ();. label1 = new
System. Windows. Forms. Label ();. textBox2 = new System. Windows. Forms.
TextBox ();. textBox3 = new System. Windows. Forms. TextBox ();. label2 = new
System. Windows. Forms. Label ();. label3 = new System. Windows. Forms. Label
();. textBox4 = new System. Windows. Forms. TextBox ();. label4 = new System.
Windows. Forms. Label ();. textBox5 = new System. Windows. Forms. TextBox ();.
label5 = new System. Windows. Forms. Label ();. textBox6 = new System. Windows.
Forms. TextBox ();. label6 = new System. Windows. Forms. Label ();. textBox7 =
new System. Windows. Forms. TextBox ();. textBox8 = new System. Windows. Forms.
TextBox ();. textBox9 = new System. Windows. Forms. TextBox ();. label7 = new
System. Windows. Forms. Label ();. label8 = new System. Windows. Forms. Label
();. label9 = new System. Windows. Forms. Label ();. button1 = new System.
Windows. Forms. Button ();. label10 = new System. Windows. Forms. Label ();.
label11 = new System. Windows. Forms. Label ();. label12 = new System. Windows.
Forms. Label ();. textBox10 = new System. Windows. Forms. TextBox ();. label13
= new System. Windows. Forms. Label ();. richTextBox1 = new System. Windows.
Forms. RichTextBox ();. richTextBox2 = new System. Windows. Forms. RichTextBox
();. richTextBox3 = new System. Windows. Forms. RichTextBox ();. label14 = new
System. Windows. Forms. Label ();. label15 = new System. Windows. Forms. Label
();. label16 = new System. Windows. Forms. Label ();. textBox11 = new System.
Windows. Forms. TextBox ();. textBox12 = new System. Windows. Forms. TextBox
();. label17 = new System. Windows. Forms. Label ();. label18 = new System.
Windows. Forms. Label ();. label19 = new System. Windows. Forms. Label ();.
label20 = new System. Windows. Forms. Label ();. label21 = new System. Windows.
Forms. Label ();. label22 = new System. Windows. Forms. Label ();. label23 =
new System. Windows. Forms. Label ();. button2 = new System. Windows. Forms.
Button ();. button3 = new System. Windows. Forms. Button ();. SuspendLayout ();
//
// textBox1
// . textBox1. Location = new System. Drawing.
Point (164,12);. textBox1. Name = "textBox1";. textBox1. Size = new
System. Drawing. Size (40, 20);. textBox1. TabIndex = 1;. textBox1. Text =
"2";
//
// label1
// . label1. Font = new System. Drawing. Font
("Tahoma", 8.25F, System. Drawing. FontStyle. Regular, System.
Drawing. GraphicsUnit. Point, ( (byte) (204)));. label1. Location = new System.
Drawing. Point (210, 15);. label1. Name = "label1";. label1. Size =
new System. Drawing. Size (10, 20);. label1. TabIndex = 2;. label1. Text =
"";. label1. TextAlign = System. Drawing. ContentAlignment.
TopCenter;
//
// textBox2
// . textBox2. Location = new System. Drawing.
Point (242,2);. textBox2. Multiline = true;. textBox2. Name =
"textBox2";. textBox2. Size = new System. Drawing. Size (15, 20);.
textBox2. TabIndex = 2;. textBox2. Text = "1";
//
// textBox3
// . textBox3. Location = new System. Drawing.
Point (313, 13);. textBox3. Name = "textBox3";. textBox3. Size = new
System. Drawing. Size (40, 20);. textBox3. TabIndex = 3;. textBox3. Text =
"-1";
//
// label2
// . label2. Font = new System. Drawing. Font
("Tahoma", 8.25F, System. Drawing. FontStyle. Regular, System.
Drawing. GraphicsUnit. Point, ( (byte) (204)));. label2. Location = new System.
Drawing. Point (359, 13);. label2. Name = "label2";. label2. Size =
new System. Drawing. Size (10, 20);. label2. TabIndex = 2;. label2. Text =
"";. label2. TextAlign = System. Drawing. ContentAlignment.
TopCenter;
//
// label3
// . label3. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label3. Location = new
System. Drawing. Point (118,12);. label3. Name = "label3";. label3.
Size = new System. Drawing. Size (40, 20);. label3. TabIndex = 4;. label3. Text
= "Y\' = ";. label3. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// textBox4
// . textBox4. Location = new System. Drawing.
Point (391,2);. textBox4. Multiline = true;. textBox4. Name =
"textBox4";. textBox4. Size = new System. Drawing. Size (15, 20);.
textBox4. TabIndex = 4;. textBox4. Text = "1";
//
// label4
// . label4. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label4. Location = new
System. Drawing. Point (8, 75);. label4. Name = "label4";. label4.
Size = new System. Drawing. Size (40, 20);. label4. TabIndex = 4;. label4. Text
= "Yo = ";. label4. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// textBox5
// . textBox5. Location = new System. Drawing.
Point (54, 76);. textBox5. Name = "textBox5";. textBox5. Size = new
System. Drawing. Size (40, 20);. textBox5. TabIndex = 5;. textBox5. Text =
"-1";
//
// label5
// . label5. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label5. Location = new
System. Drawing. Point (8, 102);. label5. Name = "label5";. label5.
Size = new System. Drawing. Size (40, 20);. label5. TabIndex = 4;. label5. Text
= "Xo = ";. label5. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// textBox6
// . textBox6. Location = new System. Drawing.
Point (54, 102);. textBox6. Name = "textBox6";. textBox6. Size = new
System. Drawing. Size (40, 20);. textBox6. TabIndex = 6;. textBox6. Text =
"0";. textBox6. TextChanged += new System. EventHandler (this.
TextBox6TextChanged);
//
// label6
// . label6. Font = new System. Drawing. Font
("Microsoft Sans Serif", 12F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label6. Location = new
System. Drawing. Point (225, 74);. label6. Name = "label6";. label6.
Size = new System. Drawing. Size (40, 20);. label6. TabIndex = 4;. label6. Text
= "ɛ = ";.
label6. TextAlign = System. Drawing. ContentAlignment. MiddleCenter;
// textBox7
// . textBox7. Location = new System. Drawing.
Point (271, 75);. textBox7. Name = "textBox7";. textBox7. Size = new
System. Drawing. Size (40, 20);. textBox7. TabIndex = 7;. textBox7. Text =
"0,01";
//
// textBox8
// . textBox8. Location = new System. Drawing.
Point (28, 163);. textBox8. Name = "textBox8";. textBox8. ReadOnly =
true;. textBox8. Size = new System. Drawing. Size (20, 20);. textBox8. TabIndex
= 0;. textBox8. TabStop = false;. textBox8. Text = "0";
//
// textBox9
// . textBox9. Location = new System. Drawing.
Point (64, 163);. textBox9. Name = "textBox9";. textBox9. Size = new
System. Drawing. Size (20, 20);. textBox9. TabIndex = 8;. textBox9. Text =
"1";
//
// label7
// . label7. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label7. Location = new
System. Drawing. Point (12, 162);. label7. Name = "label7";. label7.
Size = new System. Drawing. Size (10, 20);. label7. TabIndex = 4;. label7. Text
= " [";. label7. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// label8
// . label8. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label8. Location = new
System. Drawing. Point (51, 163);. label8. Name = "label8";. label8.
Size = new System. Drawing. Size (10, 20);. label8. TabIndex = 4;. label8. Text
= ",";. label8. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// label9
// . label9. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label9. Location = new
System. Drawing. Point (91, 162);. label9. Name = "label9";. label9.
Size = new System. Drawing. Size (10, 20);. label9. TabIndex = 4;. label9. Text
= "] ";. label9. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// button1
// . button1. Location = new System. Drawing.
Point (11, 305);. button1. Name = "button1";. button1. Size = new
System. Drawing. Size (94, 23);. button1. TabIndex = 9;. button1. Text =
"Расчет";. button1. UseVisualStyleBackColor = true;. button1. Click
+= new System. EventHandler (this. Button1Click);
//
// label10
// . label10. Font = new System. Drawing. Font
("Microsoft Sans Serif", 12F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label10. Location =
new System. Drawing. Point (302, 13);. label10. Name = "label10";.
label10. Size = new System. Drawing. Size (10, 20);. label10. TabIndex = 4;.
label10. Text = "+";. label10. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// label11
// . label11. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label11. Location =
new System. Drawing. Point (375, 13);. label11. Name = "label11";.
label11. Size = new System. Drawing. Size (10, 20);. label11. TabIndex = 4;.
label11. Text = "Y";. label11. TextAlign = System. Drawing.
ContentAlignment. MiddleCenter;
//
// label12
// . label12. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label12. Location =
new System. Drawing. Point (226,12);. label12. Name = "label12";. label12.
Size = new System. Drawing. Size (10, 20);. label12. TabIndex = 4;. label12.
Text = "X";. label12. TextAlign = System. Drawing. ContentAlignment.
MiddleCenter;
//
// textBox10
// . textBox10. Location = new System. Drawing.
Point (469, 13);. textBox10. Name = "textBox10";. textBox10. Size =
new System. Drawing. Size (40, 20);. textBox10. TabIndex = 3;. textBox10. Text
= "0";
//
// label13
// . label13. Font = new System. Drawing. Font
("Microsoft Sans Serif", 12F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label13. Location =
new System. Drawing. Point (453, 15);. label13. Name = "label13";.
label13. Size = new System. Drawing. Size (10, 20);. label13. TabIndex = 4;.
label13. Text = "+";. label13. TextAlign = System. Drawing.
ContentAlignment. MiddleCenter;
//
// richTextBox1
// . richTextBox1. Location = new System.
Drawing. Point (148, 284);. richTextBox1. Name = "richTextBox1";.
richTextBox1. ReadOnly = true;. richTextBox1. ScrollBars = System. Windows.
Forms. RichTextBoxScrollBars. ForcedVertical;. richTextBox1. Size = new System.
Drawing. Size (70, 155);. richTextBox1. TabIndex = 10;. richTextBox1. Text =
"";
//
// richTextBox2
// . richTextBox2. Location = new System.
Drawing. Point (224, 284);. richTextBox2. Name = "richTextBox2";.
richTextBox2. ReadOnly = true;. richTextBox2. ScrollBars = System. Windows.
Forms. RichTextBoxScrollBars. ForcedVertical;. richTextBox2. Size = new System.
Drawing. Size (138, 155);. richTextBox2. TabIndex = 10;. richTextBox2. Text =
"";
//
// richTextBox3
// . richTextBox3. Location = new System.
Drawing. Point (368, 284);. richTextBox3. Name = "richTextBox3";.
richTextBox3. ReadOnly = true;. richTextBox3. ScrollBars = System. Windows.
Forms. RichTextBoxScrollBars. ForcedVertical;. richTextBox3. Size = new System.
Drawing. Size (149, 155);. richTextBox3. TabIndex = 10;. richTextBox3. Text =
"";
//
// label14
// . label14. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label14. Location =
new System. Drawing. Point (180, 261);. label14. Name = "label14";.
label14. Size = new System. Drawing. Size (10, 20);. label14. TabIndex = 4;.
label14. Text = "k";. label14. TextAlign = System. Drawing.
ContentAlignment. MiddleCenter;
//
// label15
// . label15. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label15. Location =
new System. Drawing. Point (276, 261);. label15. Name = "label15";.
label15. Size = new System. Drawing. Size (20, 20);. label15. TabIndex = 4;.
label15. Text = "Xk";. label15. TextAlign = System. Drawing.
ContentAlignment. MiddleCenter;
//
// label16
// . label16. Font = new System. Drawing. Font
("Microsoft Sans Serif", 8.25F, System. Drawing. FontStyle. Regular,
System. Drawing. GraphicsUnit. Point, ( (byte) (204)));. label16. Location =
new System. Drawing. Point (433, 261);. label16. Name = "label16";.
label16. Size = new System. Drawing. Size (20, 20);. label16. TabIndex = 4;.
label16. Text = "Yk";. label16. TextAlign = System. Drawing.
ContentAlignment. MiddleCenter;
//
// textBox11
// . textBox11. Location = new System. Drawing.
Point (279, 13);. textBox11. Name = "textBox11";. textBox11. Size =
new System. Drawing. Size (15, 20);. textBox11. TabIndex = 11;. textBox11. Text
= "1";
//
// textBox12
// . textBox12. Location = new System. Drawing.
Point (426, 14);. textBox12. Name = "textBox12";. textBox12. Size =
new System. Drawing. Size (15, 20);. textBox12. TabIndex = 12;. textBox12. Text
= "1";
//
// label17
// . label17. AutoSize = true;. label17. Location
= new System. Drawing. Point (262, 16);. label17. Name = "label17";.
label17. Size = new System. Drawing. Size (11, 13);. label17. TabIndex = 13;.
label17. Text = "/";
//
// label18
// . label18. AutoSize = true;. label18. Location
= new System. Drawing. Point (411, 18);. label18. Name = "label18";.
label18. Size = new System. Drawing. Size (11, 13);. label18. TabIndex = 14;.
label18. Text = "/";
//
// label19
// . label19. AutoSize = true;. label19. Location
= new System. Drawing. Point (5, 14);. label19. Name = "label19";.
label19. Size = new System. Drawing. Size (107, 13);. label19. TabIndex = 15;.
label19. Text = "Введите уравнение";
//
// label20
//
// label21
// . label21. AutoSize = true;. label21. Location
= new System. Drawing. Point (226, 50);. label21. Name = "label21";.
label21. Size = new System. Drawing. Size (150, 13);. label21. TabIndex = 17;.
label21. Text = "Введите порядок точности: ";
//
// label22
// . label22. AutoSize = true;. label22. Location
= new System. Drawing. Point (12, 139);. label22. Name = "label22";.
label22. Size = new System. Drawing. Size (293, 13);. label22. TabIndex = 18;.
label22. Text = "Введите отрезок на котором будет произведен расчет:
";
//
// label23
// . label23. AutoSize = true;. label23. Location
= new System. Drawing. Point (148, 233);. label23. Name = "label23";.
label23. Size = new System. Drawing. Size (56, 13);. label23. TabIndex = 19;.
label23. Text = "Таблица: ";
//
// button2
// . button2. Location = new System. Drawing.
Point (11, 334);. button2. Name = "button2";. button2. Size = new
System. Drawing. Size (94, 23);. button2. TabIndex = 20;. button2. Text =
"Сохранить";. button2. UseVisualStyleBackColor = true;. button2.
Click += new System. EventHandler (this. button2_Click);
//
// button3
// . button3. Location = new System. Drawing.
Point (11, 364);. button3. Name = "button3";. button3. Size = new
System. Drawing. Size (94, 23);. button3. TabIndex = 21;. button3. Text =
"Выход";. button3. UseVisualStyleBackColor = true;. button3. Click +=
new System. EventHandler (this. button3_Click);
//
// MainForm
// . AutoScaleDimensions = new System. Drawing.
SizeF (6F, 13F);. AutoScaleMode = System. Windows. Forms. AutoScaleMode. Font;.
ClientSize = new System. Drawing. Size (529, 462);. Controls. Add (this.
button3);. Controls. Add (this. button2);. Controls. Add (this. label23);.
Controls. Add (this. label22);. Controls. Add (this. label21);. Controls. Add
(this. label20);. Controls. Add (this. label19);. Controls. Add (this.
label18);. Controls. Add (this. label17);. Controls. Add (this. textBox12);.
Controls. Add (this. textBox11);. Controls. Add (this. richTextBox3);.
Controls. Add (this. richTextBox2);. Controls. Add (this. richTextBox1);.
Controls. Add (this. button1);. Controls. Add (this. label8);. Controls. Add
(this. label9);. Controls. Add (this. label12);. Controls. Add (this.
label16);. Controls. Add (this. label15);. Controls. Add (this. label14);.
Controls. Add (this. label11);. Controls. Add (this. label13);. Controls. Add
(this. label10);. Controls. Add (this. label7);. Controls. Add (this. label6);.
Controls. Add (this. label5);. Controls. Add (this. label4);. Controls. Add
(this. label3);. Controls. Add (this. textBox4);. Controls. Add (this.
textBox2);. Controls. Add (this. label2);. Controls. Add (this. label1);.
Controls. Add (this. textBox9);. Controls. Add (this. textBox8);. Controls. Add
(this. textBox7);. Controls. Add (this. textBox6);. Controls. Add (this.
textBox5);. Controls. Add (this. textBox10);. Controls. Add (this. textBox3);.
Controls. Add (this. textBox1);. FormBorderStyle = System. Windows. Forms.
FormBorderStyle. FixedSingle;. Icon = ( (System. Drawing. Icon) (resources.
GetObject ("$this. Icon")));. MaximizeBox = false;. Name =
"MainForm";. StartPosition = System. Windows. Forms. FormStartPosition.
CenterScreen;. Text = "Эйлер-Коши";. ResumeLayout (false);.
PerformLayout ();
}System. Windows. Forms. Label label16;System.
Windows. Forms. Label label15;System. Windows. Forms. Label label14;System.
Windows. Forms. RichTextBox richTextBox3;System. Windows. Forms. RichTextBox
richTextBox2;System. Windows. Forms. RichTextBox richTextBox1;System. Windows.
Forms. Label label13;System. Windows. Forms. TextBox textBox10;System. Windows.
Forms. Label label12;System. Windows. Forms. TextBox textBox5;System. Windows.
Forms. TextBox textBox6;System. Windows. Forms. Label label11;System. Windows.
Forms. Label label10;System. Windows. Forms. Button button1;System. Windows.
Forms. Label label9;System. Windows. Forms. Label label8;System. Windows.
Forms. Label label7;System. Windows. Forms. TextBox textBox9;System. Windows.
Forms. Label label6;System. Windows. Forms. TextBox textBox8;System. Windows.
Forms. Label label5;System. Windows. Forms. TextBox textBox7;System. Windows.
Forms. Label label4;System. Windows. Forms. Label label3;System. Windows.
Forms. Label label2;System. Windows. Forms. TextBox textBox4;System. Windows.
Forms. TextBox textBox3;System. Windows. Forms. Label label1;System. Windows.
Forms. TextBox textBox2;System. Windows. Forms. TextBox textBox1;System.
Windows. Forms. TextBox textBox11;System. Windows. Forms. TextBox
textBox12;System. Windows. Forms. Label label17;System. Windows. Forms. Label
label18;System. Windows. Forms. Label label19;System. Windows. Forms. Label
label20;System. Windows. Forms. Label label21;System. Windows. Forms. Label
label22;System. Windows. Forms. Label label23;System. Windows. Forms. Button
button2;System. Windows. Forms. Button button3;
}
}exit. cs
using System. Text;System. Windows.
Forms;Test_solution
{partial class Form_exit: Form
{Form_exit ()
{();
}void button1_Click (object sender, EventArgs e)
{. Close ();
}
}
}
Form exit. Designer. cs
namespace Test_solution
{class Form_exit
{System.componentModel. IContainer components =
null;override void Dispose (bool disposing)
{(disposing && (components! = null))
{. Dispose ();
}. Dispose (disposing);
}
#region Windows Form Designer generated codevoid
InitializeComponent ()
{. button1 = new System. Windows. Forms. Button
();. label1 = new System. Windows. Forms. Label ();. SuspendLayout ();
//
// button1
// . button1. Location = new System. Drawing.
Point (67, 88);. button1. Name = "button1";. button1. Size = new
System. Drawing. Size (79, 32);. button1. TabIndex = 0;. button1. Text =
"Ок";. button1. UseVisualStyleBackColor = true;. button1. Click +=
new System. EventHandler (this. button1_Click);
//
// label1
// . label1. AutoSize = true;. label1. Font = new
System. Drawing. Font ("Tahoma", 12F);. label1. Location = new
System. Drawing. Point (27, 40);. label1. Name = "label1";. label1.
Size = new System. Drawing. Size (163, 19);. label1. TabIndex = 2;. label1.
Text = "Выход из программы";
//
// Form_exit
// . AutoScaleDimensions = new System. Drawing.
SizeF (6F, 13F);. AutoScaleMode = System. Windows. Forms. AutoScaleMode. Font;.
ClientSize = new System. Drawing. Size (216, 133);. Controls. Add (this.
label1);. Controls. Add (this. button1);. Name = "Form_exit";. Text =
"Form_exit";. Load += new System. EventHandler (this. Form_exit_Load);.
ResumeLayout (false);. PerformLayout ();
}
#endregionSystem. Windows. Forms. Button
button1;System. Windows. Forms. Label label1;
}
}
Save. cs
using System. Text;System. Windows.
Forms;Test_solution
{partial class Save: Form
{Save ()
{();
}void button1_Click (object sender, EventArgs e)
{. Close ();
}
}
}
Save. Designer. cs
namespace Test_solution
{class Save
{System.componentModel. IContainer components =
null;override void Dispose (bool disposing)
{(disposing && (components! = null))
{. Dispose ();
}. Dispose (disposing);
#region Windows Form Designer generated codevoid
InitializeComponent ()
{. label1 = new System. Windows. Forms. Label
();. label2 = new System. Windows. Forms. Label ();. button1 = new System.
Windows. Forms. Button ();. SuspendLayout ();
//
// label1
// . label1. AutoSize = true;. label1. Location =
new System. Drawing. Point (0, 0);. label1. Name = "label1";. label1.
Size = new System. Drawing. Size (0, 13);. label1. TabIndex = 0;
//
// label2
// . label2. AutoSize = true;. label2. Font = new
System. Drawing. Font ("Tahoma", 12F);. label2. Location = new
System. Drawing. Point (33, 37);. label2. Name = "label2";. label2.
Size = new System. Drawing. Size (225, 19);. label2. TabIndex = 1;. label2.
Text = "Сохранение прошло успешно";
//
// button1
// . button1. Location = new System. Drawing.
Point (90, 88);. button1. Name = "button1";. button1. Size = new
System. Drawing. Size (98, 36);. button1. TabIndex = 2;. button1. Text =
"закрыть";. button1. UseVisualStyleBackColor = true;. button1. Click
+= new System. EventHandler (this. button1_Click);
//
// Save
// . AutoScaleDimensions = new System. Drawing.
SizeF (6F, 13F);. AutoScaleMode = System. Windows. Forms. AutoScaleMode. Font;.
ClientSize = new System. Drawing. Size (283, 136);. Controls. Add (this.
button1);. Controls. Add (this. label2);. Controls. Add (this. label1);. Name =
"Save";. Text = "Save";. ResumeLayout (false);.
PerformLayout ();
}
#endregionSystem. Windows. Forms. Label
label1;System. Windows. Forms. Label label2;System. Windows. Forms. Button
button1; }}