Abatoor

Untitled

Mar 14th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApp18
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void Form1_Load(object sender, EventArgs e)
  21.         {
  22.  
  23.         }
  24.  
  25.         private void label1_Click(object sender, EventArgs e)
  26.         {
  27.  
  28.         }
  29.  
  30.         private void label4_Click(object sender, EventArgs e)
  31.         {
  32.  
  33.         }
  34.  
  35.         private void label3_Click(object sender, EventArgs e)
  36.         {
  37.  
  38.         }
  39.  
  40.         private void textBox6_TextChanged(object sender, EventArgs e)
  41.         {
  42.  
  43.         }
  44.  
  45.         private void button1_Click(object sender, EventArgs e)
  46.         {
  47.             double X0 = double.Parse(textBox1.Text);
  48.             double Xk = double.Parse(textBox2.Text);
  49.             double dx = double.Parse(textBox3.Text);
  50.             double b = double.Parse(textBox5.Text);
  51.             double y = 0, x;
  52.             for (x = X0; x <= Xk; x = x + dx)
  53.             {
  54.                 y = (Math.Pow(x, 5 / 2) - b) * Math.Log(Math.Pow(x, 2) + 12.7);
  55.                 textBox6.Text = textBox6.Text + "x=" + x.ToString() + "; " + "y=" + y.ToString() + Environment.NewLine;
  56.             }
  57.         }
  58.  
  59.         private void textBox3_TextChanged(object sender, EventArgs e)
  60.         {
  61.  
  62.         }
  63.  
  64.         private void textBox5_TextChanged(object sender, EventArgs e)
  65.         {
  66.  
  67.         }
  68.  
  69.         private void label5_Click(object sender, EventArgs e)
  70.         {
  71.  
  72.         }
  73.     }
  74. }
  75.  
Advertisement
Add Comment
Please, Sign In to add comment