1
Answer

Calculating the root of a number of third and higher (Square root of a number)

Mohammadali

Mohammadali

13y
3.1k
1
Square root of 3 or higher with a number

This equation has two roots
sqrt(45);

Now if you
want the above 2

In what way
is calculated
How it should be written
Square root of a number

Radical calculated with different degrees

for example  :



Answers (1)
1
Vulpes

Vulpes

NA 96k 2.6m 13y
For square roots, you can use the Math.Sqrt method and, for higher roots, the Math.Pow method:


       double d1 = Math.Sqrt(45);
       double d2 = -d1;

       double d3 = Math.Pow(42, 1.0/6.0);
       double d4 = -d3;

       double d5 = Math.Pow(76, 1.0/20.0);
       double d6 = -d5;

       double d7 = Math.Pow(380, 1.0/1000.0);
       double d8 = -d7;

       double d9 = Math.Pow(548, 1.0/60.00);
       double d10 = -d9;  
Accepted