Calculate cubic root

Asked

Viewed 1,270 times

6

I’m having trouble creating the following Root and LN buttons. I have buttons that should be very similar as for example the normal square root and the log.

I tried to create the following for the cubic root:

   private void btn_raizcub_Click(object sender, RoutedEventArgs e)
    {
        primeiro += double.Parse(janela.Text);
        resutado = Convert.ToSingle(Math.Sqrt(primeiro/3.0));
        janela.Text = resutado.ToString();
    }
  • 3

    And what is the doubt?

  • 1

    At least the cubic root is not working properly that way. Although it works

  • 1

    It doesn’t suit me with Sqrt or Pow

1 answer

8


Browser other questions tagged

You are not signed in. Login or sign up in order to post.