private void button4_Click(object sender, EventArgs e)
        {
            double Avs, Vcc, Av1, Av2, Rth, Res1, Res2, e0, ein, beta1, beta2, rbb1, rbb2, rd1, rd2, rin1, rin2, Rin1, Rin2, Rb3, rc1, Rb4, Rb1, re1, re2, rc2, rl, rs;

            try
            {
                Rb1 = Convert.ToDouble(txtciftkatlidevre1rb1.Text) * 1000;
                Rb3 = Convert.ToDouble(txtciftkatlidevre1rb3.Text) * 1000;
                Rb4 = Convert.ToDouble(txtciftkatlidevre1rb4.Text) * 1000;
                rl  = Convert.ToDouble(txtciftkatlidevre1rl.Text) * 1000;
                re1 = Convert.ToDouble(txtciftkatlidevre1re1.Text) * 1000;
                re2 = Convert.ToDouble(txtciftkatlidevre1re2.Text) * 1000;
                rs  = Convert.ToDouble(txtciftkatlidevre1Rs.Text) * 1000;
                rc2 = Convert.ToDouble(txtciftkatlidevre1Rc2.Text) * 1000;
                rc1 = Convert.ToDouble(txtciftkatlidevre1rc1.Text) * 1000;

                Vcc   = Convert.ToDouble(txtciftkatlidevre1vcc.Text);
                beta1 = Convert.ToDouble(txtciftkatlidevre1beta1.Text);
                beta2 = Convert.ToDouble(txtciftkatlidevre1beta2.Text);
                rd1   = Convert.ToDouble(txtciftkatlidevre1rd1.Text) * 1000;
                rd2   = Convert.ToDouble(txtciftkatlidevre1rd2.Text) * 1000;
                rbb1  = Convert.ToDouble(txtciftkatlidevrerbb1.Text) * 1000;
                rbb2  = Convert.ToDouble(txtciftkatlidevrerbb2.Text) * 1000;
                ein   = Convert.ToDouble(txtciftkatlidevre1ein.Text);

                Rth  = Rb3 * Rb4 / (Rb4 + Rb3);
                rin1 = rbb1 + (beta1 + 1) * (rd1 + re1);
                rin2 = rbb2 + (beta2 + 1) * rd2;
                Rin1 = (Rb1 * rin1) / (Rb1 + rin1);
                Rin2 = (Rth * rin2) / (Rth + rin2);
                Res1 = (rc1 * Rin2) / (rc1 + Rin2);
                Res2 = (rc2 * rl) / (rc2 + rl);
                Av1  = -beta1 * Res1 / rin1;
                Av2  = -beta2 * Res2 / rin2;
                Avs  = Av2 * Av1 * Rin1 / (Rin1 + rs);
                e0   = ein * Avs;



                lblacciftkatlidevre1res1.Text  = "res1=" + (Math.Pow(10, -3) * Res1).ToString() + "kOhm";
                lblacciftkatlidevre1res2.Text  = "res2=" + (Math.Pow(10, -3) * Res2).ToString() + "kOhm";
                lblacciftkatlidevre1rin1.Text  = "rin1=" + (Math.Pow(10, -3) * rin1).ToString() + "kOhm";
                lblacciftkatlidevre1rin2.Text  = "rin2=" + (Math.Pow(10, -3) * rin2).ToString() + "kOhm";
                lblacciftkatlidevre1RİNN1.Text = "Rin1=" + (Math.Pow(10, -3) * Rin1).ToString() + "kOhm";
                lblacciftkatlidevre1RİNN2.Text = "Rin2=" + (Math.Pow(10, -3) * Rin2).ToString() + "kOhm";
                lblciftkatlidevre1a1.Text      = " = " + Av1.ToString();
                lblciftkatlidevre1a2.Text      = " = " + Av2.ToString();
                lblciftkatlidevre1Avs.Text     = " = " + Avs.ToString();
                lblciftkatlidevre1e0.Text      = " = " + e0.ToString() + "mVolt";
            }
            catch (Exception)
            {
                Form1.HataMesaji();
            }
        }
        private void button5_Click(object sender, EventArgs e)
        {
            double Avs, Vcc, Av1, Av2, Rth1, Rth2, Rth3, Res1, Res2, e0, ein, beta1, beta2, rbb1, rbb2, rd1, rd2, rin1, rin2, Rin1, Rin2, Rb3, rc1, Rb4, Rb1, re1, re2, rc2, rl, Rb2;

            try
            {
                Rb1 = Convert.ToDouble(txtciftkatlidevre2rb1.Text) * 1000;
                Rb3 = Convert.ToDouble(txtciftkatlidevre2rb3.Text) * 1000;
                Rb4 = Convert.ToDouble(txtciftkatlidevre2rb4.Text) * 1000;
                rl  = Convert.ToDouble(txtciftkatlidevre2rL.Text) * 1000;
                re1 = Convert.ToDouble(txtciftkatlidevre2re1.Text) * 1000;
                re2 = Convert.ToDouble(txtciftkatlidevre2re2.Text) * 1000;
                Rb2 = Convert.ToDouble(txtciftkatlidevre2rb2.Text) * 1000;
                rc2 = Convert.ToDouble(txtciftkatlidevre2rc2.Text) * 1000;
                rc1 = Convert.ToDouble(txtciftkatlidevre2rc1.Text) * 1000;

                Vcc   = Convert.ToDouble(txtciftkatlidevre2vcc.Text);
                beta1 = Convert.ToDouble(txtciftkatlidevre2beta1.Text);
                beta2 = Convert.ToDouble(txtciftkatlidevre2beta2.Text);
                rd1   = Convert.ToDouble(txtciftkatlidevre2rd1.Text) * 1000;
                rd2   = Convert.ToDouble(txtciftkatlidevre2rd2.Text) * 1000;
                rbb1  = Convert.ToDouble(txtciftkatlidevre2rbb1.Text) * 1000;
                rbb2  = Convert.ToDouble(txtciftkatlidevre2rbb2.Text) * 1000;
                ein   = Convert.ToDouble(txtciftkatlidevre2Ein.Text);
                Rth1  = Rb1 * Rb2 / (Rb2 + Rb1);
                Rth2  = Rb3 * Rb4 / (Rb4 + Rb3);
                Rth3  = rc1 * Rb3 / (rc1 + Rb3);
                rin1  = rbb1 + (beta1 + 1) * rd1;
                rin2  = rbb2 + (beta2 + 1) * (rd2 + re2);
                Rin1  = (Rth1 * rin1) / (Rth1 + rin1);
                Rin2  = (Rth2 * rin2) / (Rth2 + rin2);
                Res1  = (Rth3 * Rin2) / (Rth3 + Rin2);
                Res2  = (rc2 * rl) / (rc2 + rl);
                Av1   = -beta1 * Res1 / rin1;
                Av2   = -beta2 * Res2 / rin2;
                Avs   = Av2 * Av1;
                e0    = ein * Avs;



                lblciftkatlıdevre2Av1.Text = " = " + Av1.ToString();
                lblciftkatlıdevre2av2.Text = " = " + Av2.ToString();
                lblciftkatlıdevre2AVS.Text = " = " + Avs.ToString();
                lblciftkatlıdevre2E0.Text  = " = " + e0.ToString() + "mVolt";
            }
            catch (Exception)
            {
                Form1.HataMesaji();
            }
        }
        private void button6_Click(object sender, EventArgs e)
        {
            double Avs, Av1, Av2, Rth1, Rth2, Res1, Res2, e0, ein, beta1, beta2, rbb1, rbb2, rd1, rd2, rin1, rin2, Rin1, Rin2, Rb3, rc1, Rb1, re1, re2, rc2, rl, Rb2;

            try
            {
                Rb1 = Convert.ToDouble(txtciftkatlidevre3rb1.Text) * 1000;
                Rb3 = Convert.ToDouble(txtciftkatlidevre3RB3.Text) * 1000;

                rl  = Convert.ToDouble(txtciftkatlidevre3RL.Text) * 1000;
                re1 = Convert.ToDouble(txtciftkatlidevre3re1.Text) * 1000;
                re2 = Convert.ToDouble(txtciftkatlidevre3re2.Text) * 1000;
                Rb2 = Convert.ToDouble(txtciftkatlidevre3rb2.Text) * 1000;
                rc2 = Convert.ToDouble(txtciftkatlidevre3rc2.Text) * 1000;
                rc1 = Convert.ToDouble(txtciftkatlidevre3rc1.Text) * 1000;


                beta1 = Convert.ToDouble(txtciftkatlidevre3beta1.Text);
                beta2 = Convert.ToDouble(txtciftkatlidevre3beta2.Text);
                rd1   = Convert.ToDouble(txtciftkatlidevre3rd1.Text) * 1000;
                rd2   = Convert.ToDouble(txtciftkatlidevre3rd2.Text) * 1000;
                rbb1  = Convert.ToDouble(txtciftkatlidevre3rbb1.Text) * 1000;
                rbb2  = Convert.ToDouble(txtciftkatlidevre3rbb2.Text) * 1000;
                ein   = Convert.ToDouble(txtciftkatlidevre3ein.Text);
                Rth1  = Rb1 * Rb2 / (Rb2 + Rb1);

                rin1 = rbb1 + (beta1 + 1) * rd1;
                rin2 = rbb2 + (beta2 + 1) * (rd2 + re2);
                Rin1 = (Rth1 * rin1) / (Rth1 + rin1);
                Rin2 = (Rb3 * rin2) / (Rb3 + rin2);
                Res1 = (rc1 * Rin2) / (rc1 + Rin2);
                Res2 = (rc2 * rl) / (rc2 + rl);
                Av1  = -beta1 * Res1 / rin1;
                Av2  = -beta2 * Res2 / rin2;
                Avs  = Av2 * Av1;
                e0   = ein * Avs;



                lblciftkatlidevree3av1.Text = " Av1= " + Av1.ToString();
                lblciftkatlidevree3av2.Text = " Av2= " + Av2.ToString();
                lblciftkatlidevree3avs.Text = " Avs= " + Avs.ToString();
                lblciftkatlidevreee0.Text   = " e0= " + e0.ToString() + "mVolt";
            }
            catch (Exception)
            {
                Form1.HataMesaji();
            }
        }