.


:




:

































 

 

 

 





. , , . , , . , . . , . Show , ShowDialog - . - , , .

 

1. +=0

=0 b<>0 .

=0 b=0 .

<>0 =- b/.

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

 

namespace WindowsFormsApplication3

{

public partial class Form1: Form

{

public Form1()

{

InitializeComponent();

}

 

private void button1_Click(object sender, EventArgs e)

{

double a, b, x;

a = double.Parse(textBox1.Text);

b = double.Parse(textBox2.Text);

b = double.Parse(textBox2.Text);

if (a == 0 && b!=0) label3.Text = " ";

if (a == 0 && b == 0) label3.Text = " ";

if (a!= 0)

{

x = -b / a;

label3.Text = ": = " + x.ToString();

}

}

private void button2_Click(object sender, EventArgs e)

{

textBox1.Text = "";

textBox2.Text="";

label3.Text="";

}

}

}

2. y = [a,b] h.

 

Private void button1_Click(object sender, EventArgs e)

{

Double a, b, h, x, y;

a = double.Parse(textBox1.Text);

b = double.Parse(textBox2.Text);

h = double.Parse(textBox3.Text);

x = a;

label4.Text ="| x | y |"+(char)13;

while (x <= b)

{

y = (x * Math.Sin(3 * x) + x * x * x + 5 * Math.Cos(x)) / Math.Sqrt(x * x + 3);

y = Math.Round(y, 3);

x = x + h;

label4.Text = label4.Text + "| " + x.ToString() + "| " + y.ToString() + "|" + (char)13;

}

}

Private void button2_Click(object sender, EventArgs e)

{

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

label4.Text = "";

}

:

1. :

2. .

3. .

4. y= [a,b] h.

5. s = e.

 





:


: 2017-03-11; !; : 438 |


:

:

- - , .
==> ...

1492 - | 1487 -


© 2015-2024 lektsii.org - -

: 0.012 .