256 references to Sqrt
Microsoft.Build (1)
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Graphics (3)
Microsoft.Maui.Maps (2)
Microsoft.ML.AutoML (11)
Microsoft.ML.Core (21)
Microsoft.ML.CpuMath (7)
Microsoft.ML.Data (16)
Microsoft.ML.FastTree (18)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.Mkl.Components (3)
Microsoft.ML.StandardTrainers (8)
Microsoft.ML.Sweeper (10)
Microsoft.ML.Tests (1)
Microsoft.ML.TimeSeries (15)
Microsoft.ML.TorchSharp (7)
Microsoft.ML.Transforms (2)
PresentationCore (30)
PresentationFramework (9)
ReachFramework (10)
System.Collections (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (1)
System.Data.Common (20)
System.Numerics.Tensors (1)
System.Private.CoreLib (11)
System.Reflection.MetadataLoadContext (1)
System.Runtime.Numerics (11)
System.Runtime.Serialization.Formatters (1)
System.Windows.Forms (1)
System.Windows.Input.Manipulations (2)
WindowsBase.Tests (9)
System\Windows\VectorTests.cs (9)
50yield return new object[] { 1, 2, Math.Sqrt(5) };
51yield return new object[] { 1.1, 2.2, Math.Sqrt(6.05) };
52yield return new object[] { -1.1, -2.2, Math.Sqrt(6.05) };
53yield return new object[] { double.MaxValue, double.MaxValue, Math.Sqrt(double.PositiveInfinity) };
62Assert.Equal(Math.Sqrt(vector.LengthSquared), vector.Length, precision: 5);
323Assert.Equal(1 / Math.Sqrt(5), vector.X, precision: 5);
324Assert.Equal(2 / Math.Sqrt(5), vector.Y, precision: 5);
334Assert.Equal(-1 / Math.Sqrt(5), vector.X, precision: 5);
335Assert.Equal(-2 / Math.Sqrt(5), vector.Y, precision: 5);