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.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApp2
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- { double a=-4.5;
- string stra = a.ToString("R");
- textBox1.Text = stra;
- double b = 0.75 * Math.Pow(10,-4);
- string strb = b.ToString("R");
- textBox2.Text = strb;
- double c = (0.845) * Math.Pow(10, 2);
- string strc = c.ToString("R");
- textBox3.Text = strc;
- }
- private void textBox1_TextChanged(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.Pow(8 + Math.Pow(Math.Abs(x - y), 2) + 1, 1 / 3)) / (x * x + y * y + 2);
- double b = Math.Exp(Math.Abs(x - y)) * Math.Pow((Math.Pow(Math.Tan(z), 2)+1), x);
- double u = a - b;
- textBox4.Text += Environment.NewLine + "Результат U=" + u.ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement