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 WindowsFormsApp18
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- private void label4_Click(object sender, EventArgs e)
- {
- }
- private void label3_Click(object sender, EventArgs e)
- {
- }
- private void textBox6_TextChanged(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- double X0 = double.Parse(textBox1.Text);
- double Xk = double.Parse(textBox2.Text);
- double dx = double.Parse(textBox3.Text);
- double b = double.Parse(textBox5.Text);
- double y = 0, x;
- for (x = X0; x <= Xk; x = x + dx)
- {
- y = (Math.Pow(x, 5 / 2) - b) * Math.Log(Math.Pow(x, 2) + 12.7);
- textBox6.Text = textBox6.Text + "x=" + x.ToString() + "; " + "y=" + y.ToString() + Environment.NewLine;
- }
- }
- private void textBox3_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox5_TextChanged(object sender, EventArgs e)
- {
- }
- private void label5_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment