Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Laba2
- {
- public partial class UserControl1: UserControl
- {
- public UserControl1()
- {
- InitializeComponent();
- }
- private void Label1_Click(object sender, EventArgs e)
- {
- }
- private void Label2_Click(object sender, EventArgs e)
- {
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- double x = double.Parse(textBox1.Text);
- textBox4.Text += Environment.NewLine + "X = " + x.ToString();
- double y = double.Parse(textBox2.Text);
- textBox4.Text += Environment.NewLine + "Y = " + y.ToString();
- double z = double.Parse(textBox3.Text);
- textBox4.Text += Environment.NewLine + "Z = " + z.ToString();
- double a = Math.Sqrt(10d*(Math.Pow(x, 1.0/3.0)+ Math.Pow(x, (y+2.0))));
- double b = (Math.Pow(Math.Asin(z), 2.0) - Math.Abs(x - y));
- double c = a*b;
- textBox4.Text += Environment.NewLine + "Результат U = " + c.ToString();
- }
- private void Label4_Click(object sender, EventArgs e)
- {
- }
- private void UserControl1_Load(object sender, EventArgs e)
- {
- textBox4.Multiline = true;
- textBox1.Text = "0,01655";
- textBox2.Text = "-2,75";
- textBox3.Text = "0,15";
- }
- private void TextBox3_TextChanged(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement