Math.Sqrt : Math « System « VB.Net by API






Math.Sqrt

  


Public Class Tester
    Public Shared Sub Main
        Dim magnitude As Single
        Dim radians As Single

        magnitude = CSng(Math.Sqrt(100 ^ 2 + 120 ^ 2))
        radians = CSng(Math.Atan2(100, 123))


        Console.WriteLine(magnitude)
        Console.WriteLine(radians)
        
    End Sub

End Class

   
    
  








Related examples in the same category

1.Math.Acos
2.Math.Asin
3.Math.Atan
4.Math.Atan2
5.Math.Cos
6.Math.Floor
7.Math.Max
8.Math.PI
9.Math.Pow
10.Math.Round
11.Math.Sign
12.Math.Sin