Wie kann ich mit einem C# Programm die Nullstellen einer quadratischen Gleichung ausrechnen?

Ich hab es so versucht, jedoch treten ständig fehler auf (a soll a sein , b b und c c, d soll die diskriminante sein, e die LF bzw. Mitternachtsformel mit -b+... und f -b-...)

Ich hoffe ihr findet meinen Fehler. double nthRoot = Math.Pow(d) soll übrigens die Wurzel aus d sein, dies abe ich aus einem Bericht aus dem Internet, jedoch wird mir dies auch immer als Fehler angezeigt.

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 Quadratische_Gleichung_lösen_Jakob
{

  public partial class Form1 : Form
  {
    double a, b, c;
    double n = 2;

    private void button1_Click(object sender, EventArgs e)
    {
      a = Convert.ToDouble(textBox1.Text);
      b = Convert.ToDouble(textBox2.Text);
      c = Convert.ToDouble(textBox3.Text);
      d = (b * b) - (4 * a * c);
      e = (-b + (double nthRoot = Math.Pow(d)/ (2 * a));
      f = (-b - (double nthRoot = Math.Pow(d)/ (2 * a));
    }
     
    double d, e, f;
    public Form1()
    {
      InitializeComponent();
      label1.Text = "a=";
      label2.Text = "b=";
      label3.Text = "c=";
      label4.Text = "x1=";
      label6.Text = "x2=";
      label5.Text = e.ToString();
      label7.Text = f.ToString();
    }
  }
}
...zum Beitrag

Was für Fehler? (Bezeichnung)

e und f geht so ganz bestimmt nicht

...zur Antwort