private void button1_Click(object sender, EventArgs e) { double x = Convert.ToDouble(textBox1.Text); double y = Convert.ToDouble(textBox2.Text); double z = Convert.ToDouble(textBox3.Text); double upper = Funkcions.getmax(x, y, z) + Funkcions.getmax(x + y, x * y, 4 * z); double lower = Funkcions.getmax(Math.Pow(Funkcions.getmax(x + y, x * y, x * x), 2), 7, z * z); double answ = upper / lower; textBox4.Text = answ.ToString(); }
private void button2_Click(object sender, EventArgs e) { double x1 = Convert.ToDouble(x_1.Text); double y1 = Convert.ToDouble(y_1.Text); double x2 = Convert.ToDouble(x_2.Text); double y2 = Convert.ToDouble(y_2.Text); double x3 = Convert.ToDouble(x_3.Text); double y3 = Convert.ToDouble(y_3.Text); if (Funkcions.angle(x1, y1, x2, y2, x3, y3) < 90) { textBox8.Text = "гострокутний"; } else if (Funkcions.angle(x1, y1, x2, y2, x3, y3) == 90) { textBox8.Text = "прямокутний"; } else { textBox8.Text = "тупокутний"; } }