Tag Archives: roots

Calculate Nth roots in C#

To calculate Nth roots, you can simply use the formula: root = K1/N The example program uses the following code to calculate roots. // Calculate the root. private void btnCalculate_Click(object sender, EventArgs e) { double number = double.Parse(txtNumber.Text); double root … Continue reading

Posted in mathematics | Tagged , , , , , , , , , , , | 2 Comments

Use Newton’s method to find the roots of equations in C#

Newton’s method calculates the roots of equations. In other words, it finds the values of x for which F(x) = 0. This program graphs the equation X3 / 3 – 2 * X + 5. (Because Y coordinates on the … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , | 3 Comments