Documente Academic
Documente Profesional
Documente Cultură
-25
-20
-15
-10
-5
-5
0
5
10
15
15
20
25
30
35
40
0.003917
0.003917
0.003917
0.003917
0.003917
0.003917
0.018598
0.003917
0.003917
0.003917
0.003917
0.0081
0.003917
0.003917
0.003917
0.003917
0.003917
-10.18942
413.0742
-10.89316
413.0742
-11.59689
413.0742
-12.30062
413.0742
-13.00436
413.0742
-13.70809
413.0742
-13.70809
9312.226
-14.41183
413.0742
-15.11556
413.0742
-15.81929
413.0742
-16.52303
413.0742
-16.52303
1766.408
-17.22676
413.0742
-17.9305
413.0742
-18.63423
413.0742
-19.33797
413.0742
-20.0417
413.0742
5.183465
5.084377
4.990344
4.900337
4.814678
4.73297
17.32317
4.65473
4.579368
4.50791
4.439148
8.416092
4.372797
4.309289
4.248838
4.190117
4.133645
8.109211
8.26725
8.423029
8.57774
8.730349
8.881064
11.52084
9.030344
9.178956
9.324457
9.468892
10.32808
9.612569
9.754234
9.893014
10.03166
10.1687
1785.185
1751.059
1718.674
1687.676
1658.175
1630.035
5966.099
1603.089
1577.134
1552.524
1528.843
2898.502
1505.991
1484.119
1463.3
1443.076
1423.627
using
using
using
using
using
using
using
System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Text;
System.Windows.Forms;
namespace TDEE___Tabel_de_montaj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public
public
public
public
public
public
public
public
public
public
public
public
float
float
float
float
float
float
float
float
float
float
float
float
a1;
a2;
a3;
a4;
a5;
a6;
a7;
a8;
a9;
an,bn, va, vb;
min, max, mx;
eroare;
float a9 = float.Parse(textBox9.Text); // d0
an = a6 - a8 / 24 * (a9 * a9 * a4 * a4) / (a6 * a6) + a7 * a8 * (a2 - a1);
bn = a8 / 24 * a9 * a9 * a3 * a3;
textBox10.Text = an + "";
textBox11.Text = bn + "";
min = 0; max = 0;
for (int i = -1; i <= 20; i++)
{
if ((i * i * i - i * i * an - bn) * ((i + 1) * (i + 1) * (i + 1) - (i +
1) * (i + 1) * an - bn) < 1)
{
min = i ;
max = i+1;
break;
}
}
mx = (min + max) / 2;
eroare = 100;
while (Math.Abs(eroare) >
{
eroare = mx * mx * mx
if (eroare > 0) max =
if (eroare < 0) min =
mx = (min + max) / 2;
}
float.Parse(textBox19.Text))
- an * mx * mx - bn;
(max + mx) / 2;
(min + mx) / 2;
textBox12.Text = mx + "";
textBox13.Text = a9 * a9 * a3 / (8 * mx) + "";
textBox14.Text = mx * float.Parse(textBox15.Text) + "";
}
else MessageBox.Show("Completati toate valorile!");
}
private void button2_Click(object sender, EventArgs e)
{
richTextBox1.Text = richTextBox1.Text + " " + textBox1.Text + "
textBox3.Text + "
" + textBox10.Text + "
" + textBox11.Text + "
" + textBox12.Text + "
" + textBox13.Text + "
textBox14.Text;
richTextBox1.Text += Environment.NewLine;
}
private void iesireToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
" +
" +
// iesireToolStripMenuItem
//
this.iesireToolStripMenuItem.Name = "iesireToolStripMenuItem";
this.iesireToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
this.iesireToolStripMenuItem.Text = "Iesire";
this.iesireToolStripMenuItem.Click += new
System.EventHandler(this.iesireToolStripMenuItem_Click);
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(13, 28);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(609, 372);
this.tabControl1.TabIndex = 1;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.button1);
this.tabPage1.Controls.Add(this.textBox19);
this.tabPage1.Controls.Add(this.label16);
this.tabPage1.Controls.Add(this.textBox15);
this.tabPage1.Controls.Add(this.label15);
this.tabPage1.Controls.Add(this.textBox9);
this.tabPage1.Controls.Add(this.label9);
this.tabPage1.Controls.Add(this.textBox8);
this.tabPage1.Controls.Add(this.label8);
this.tabPage1.Controls.Add(this.textBox7);
this.tabPage1.Controls.Add(this.label7);
this.tabPage1.Controls.Add(this.textBox6);
this.tabPage1.Controls.Add(this.label6);
this.tabPage1.Controls.Add(this.textBox4);
this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Controls.Add(this.textBox3);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.textBox2);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.textBox1);
this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(601, 346);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Date de intrare";
this.tabPage1.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(496, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(99, 30);
this.button1.TabIndex = 2;
this.button1.Text = "Calculeaza";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox19
//
this.textBox19.Location = new System.Drawing.Point(484, 81);
this.textBox19.Name = "textBox19";
this.textBox19.Size = new System.Drawing.Size(100, 20);
this.textBox19.TabIndex = 1;
this.textBox19.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(457, 82);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(16, 16);
this.label16.TabIndex = 0;
this.label16.Text = "";
//
// textBox15
//
this.textBox15.Location = new System.Drawing.Point(276, 166);
this.textBox15.Name = "textBox15";
this.textBox15.Size = new System.Drawing.Size(100, 20);
this.textBox15.TabIndex = 1;
this.textBox15.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label15.Location = new System.Drawing.Point(239, 170);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(16, 16);
this.label15.TabIndex = 0;
this.label15.Text = "s";
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(276, 121);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(100, 20);
this.textBox9.TabIndex = 1;
this.textBox9.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(30, 85);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(24, 16);
this.label2.TabIndex = 0;
this.label2.Text = "tm";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(65, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 1;
this.textBox1.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(30, 44);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(20, 16);
this.label1.TabIndex = 0;
this.label1.Text = "tn";
//
// tabPage2
//
this.tabPage2.Controls.Add(this.button2);
this.tabPage2.Controls.Add(this.textBox14);
this.tabPage2.Controls.Add(this.textBox13);
this.tabPage2.Controls.Add(this.textBox12);
this.tabPage2.Controls.Add(this.label14);
this.tabPage2.Controls.Add(this.textBox11);
this.tabPage2.Controls.Add(this.label13);
this.tabPage2.Controls.Add(this.textBox10);
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Controls.Add(this.label11);
this.tabPage2.Controls.Add(this.label10);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(601, 346);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Calcule";
this.tabPage2.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(494, 6);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(101, 23);
this.button2.TabIndex = 4;
this.button2.Text = "Afiseaza";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// textBox14
//
this.textBox14.Location = new System.Drawing.Point(90, 214);
this.textBox14.Name = "textBox14";
this.textBox14.Size = new System.Drawing.Size(100, 20);
this.textBox14.TabIndex = 3;
//
// textBox13
//
this.textBox13.Location = new System.Drawing.Point(90, 169);
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(100, 20);
this.textBox13.TabIndex = 3;
//
// textBox12
//
this.textBox12.Location = new System.Drawing.Point(90, 126);
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(100, 20);
this.textBox12.TabIndex = 3;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.Location = new System.Drawing.Point(33, 218);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(26, 16);
this.label14.TabIndex = 2;
this.label14.Text = "Tn";
//
// textBox11
//
this.textBox11.Location = new System.Drawing.Point(90, 78);
this.textBox11.Name = "textBox11";
this.textBox11.Size = new System.Drawing.Size(100, 20);
this.textBox11.TabIndex = 3;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.Location = new System.Drawing.Point(33, 173);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(56, 16);
this.label13.TabIndex = 2;
this.label13.Text = "max,n";
//
// textBox10
//
this.textBox10.Location = new System.Drawing.Point(90, 36);
this.textBox10.Name = "textBox10";
this.textBox10.Size = new System.Drawing.Size(100, 20);
this.textBox10.TabIndex = 3;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.Location = new System.Drawing.Point(33, 130);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(25, 16);
this.label12.TabIndex = 2;
this.label12.Text = "n";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(33, 82);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(26, 16);
this.label11.TabIndex = 2;
this.label11.Text = "Bn";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(33, 40);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(26, 16);
this.label10.TabIndex = 2;
this.label10.Text = "An";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.label30);
this.tabPage3.Controls.Add(this.label28);
this.tabPage3.Controls.Add(this.label29);
this.tabPage3.Controls.Add(this.label26);
this.tabPage3.Controls.Add(this.label27);
this.tabPage3.Controls.Add(this.label32);
this.tabPage3.Controls.Add(this.label22);
this.tabPage3.Controls.Add(this.label25);
this.tabPage3.Controls.Add(this.label31);
this.tabPage3.Controls.Add(this.label20);
this.tabPage3.Controls.Add(this.label21);
this.tabPage3.Controls.Add(this.label24);
this.tabPage3.Controls.Add(this.label23);
this.tabPage3.Controls.Add(this.label19);
this.tabPage3.Controls.Add(this.richTextBox1);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(601, 346);
this.tabPage3.TabIndex = 2;
9F,
9F,
11.25F,
9F,
11.25F,
// label32
//
this.label32.AutoSize = true;
this.label32.Font = new System.Drawing.Font("Microsoft Sans Serif",
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label32.Location = new System.Drawing.Point(42, 39);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(77, 15);
this.label32.TabIndex = 1;
this.label32.Text = "[daN/mm2]";
//
// label22
//
this.label22.AutoSize = true;
this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif",
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label22.Location = new System.Drawing.Point(46, 39);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(84, 16);
this.label22.TabIndex = 1;
this.label22.Text = "[daN/mm2]";
//
// label25
//
this.label25.AutoSize = true;
this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif",
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label25.Location = new System.Drawing.Point(318, 9);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(27, 18);
this.label25.TabIndex = 1;
this.label25.Text = "n";
//
// label31
//
this.label31.AutoSize = true;
this.label31.Font = new System.Drawing.Font("Microsoft Sans Serif",
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label31.Location = new System.Drawing.Point(69, 9);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(25, 18);
this.label31.TabIndex = 1;
this.label31.Text = "n";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif",
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label20.Location = new System.Drawing.Point(3, 39);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(30, 15);
this.label20.TabIndex = 1;
this.label20.Text = "[C]";
//
// label21
//
this.label21.AutoSize = true;
9F,
9.75F,
11.25F,
11.25F,
9F,
this.MainMenuStrip = this.menuStrip1;
this.Name = "Form1";
this.Text = "Tabel de montaj";
this.Load += new System.EventHandler(this.Form1_Load);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
System.Windows.Forms.MenuStrip menuStrip1;
System.Windows.Forms.ToolStripMenuItem despreToolStripMenuItem;
System.Windows.Forms.TabControl tabControl1;
System.Windows.Forms.TabPage tabPage1;
System.Windows.Forms.TextBox textBox1;
System.Windows.Forms.Label label1;
System.Windows.Forms.TabPage tabPage2;
System.Windows.Forms.TextBox textBox9;
System.Windows.Forms.Label label9;
System.Windows.Forms.TextBox textBox8;
System.Windows.Forms.Label label8;
System.Windows.Forms.TextBox textBox7;
System.Windows.Forms.Label label7;
System.Windows.Forms.TextBox textBox6;
System.Windows.Forms.Label label6;
System.Windows.Forms.TextBox textBox4;
System.Windows.Forms.Label label4;
System.Windows.Forms.TextBox textBox3;
System.Windows.Forms.Label label3;
System.Windows.Forms.TextBox textBox2;
System.Windows.Forms.Label label2;
System.Windows.Forms.TextBox textBox11;
System.Windows.Forms.TextBox textBox10;
System.Windows.Forms.Label label11;
System.Windows.Forms.Label label10;
System.Windows.Forms.Button button1;
System.Windows.Forms.TabPage tabPage3;
System.Windows.Forms.Button button2;
System.Windows.Forms.TextBox textBox14;
System.Windows.Forms.TextBox textBox13;
System.Windows.Forms.TextBox textBox12;
System.Windows.Forms.Label label14;
System.Windows.Forms.Label label13;
System.Windows.Forms.Label label12;
System.Windows.Forms.TextBox textBox15;
System.Windows.Forms.Label label15;
System.Windows.Forms.ToolStripMenuItem iesireToolStripMenuItem;
System.Windows.Forms.TextBox textBox19;
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
}
}
System.Windows.Forms.Label label16;
System.Windows.Forms.RichTextBox richTextBox1;
System.Windows.Forms.Label label30;
System.Windows.Forms.Label label28;
System.Windows.Forms.Label label29;
System.Windows.Forms.Label label26;
System.Windows.Forms.Label label27;
System.Windows.Forms.Label label32;
System.Windows.Forms.Label label22;
System.Windows.Forms.Label label25;
System.Windows.Forms.Label label31;
System.Windows.Forms.Label label20;
System.Windows.Forms.Label label21;
System.Windows.Forms.Label label24;
System.Windows.Forms.Label label23;
System.Windows.Forms.Label label19;