159 references to Sqrt
mscorlib (1)
system\collections\hashtable.cs (1)
1705int limit = (int)Math.Sqrt (candidate);
PresentationCore (29)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (1)
463return Math.Sqrt((a * a) + (b * b));
Core\CSharp\MS\Internal\Ink\Bezier.cs (1)
537nPoints = (int)(Math.Sqrt(rCurv / tolerance)) + 3;
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (4)
122double distance = Math.Sqrt(distanceSquared); 143rad *= Math.Sqrt(1 - rSinSquared); 144spine *= Math.Sqrt(rSinSquared); 728double tmp = Math.Sqrt(B*B-4.0f * A * C);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (1)
512return Math.Sqrt(nearestOnFirst.LengthSquared / shortest.LengthSquared);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
1103closestIntersection = ((currClosest - edges[i]._p1Transformed).Length / Math.Sqrt(denom) *
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (3)
291maxvalue = Math.Sqrt(maxvalue); 340double root = Math.Sqrt(1+tau*tau); 343_c = 1/Math.Sqrt(1+t*t);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (4)
848weight += Math.Sqrt(da.Width*da.Width + da.Height*da.Height) / 2.0f; 853weight += Math.Sqrt(spine.LengthSquared) / 2.0f; 858weight += Math.Sqrt(da.Width*da.Width + da.Height*da.Height) / 2.0f; 863weight += Math.Sqrt(spine.LengthSquared) / 2.0f;
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
378return Math.Sqrt(spine.LengthSquared);
Core\CSharp\System\Windows\Ink\Stroke2.cs (2)
736double newWidth = Math.Sqrt(w.X * w.X + w.Y * w.Y); 737double newHeight = Math.Sqrt(h.X * h.X + h.Y * h.Y);
Core\CSharp\System\Windows\Media\Animation\CircleEase.cs (1)
17return 1.0 - Math.Sqrt(1.0 - normalizedTime * normalizedTime);
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1780_baseVectorX = Math.Sqrt(m11 * m11 + m12 * m12);
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
122int sqrt = (int) Math.Sqrt(number);
Core\CSharp\System\Windows\Media3D\Quaternion.cs (6)
166double msin = Math.Sqrt(_x*_x + _y*_y + _z*_z); 179msin = Math.Sqrt(x*x + y*y + z*z); 276double normInverse = 1.0 / Math.Sqrt(norm2); 459double smallLength = Math.Sqrt(x*x+y*y+z*z+w*w); 463return Math.Sqrt(norm2); 576double sinOmega = Math.Sqrt(1.0 - cosOmega*cosOmega);
Core\CSharp\System\Windows\Media3D\Vector3D.cs (2)
69return Math.Sqrt(_x * _x + _y * _y + _z * _z); 110double length = Math.Sqrt(_x * _x + _y * _y + _z * _z);
PresentationFramework (9)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (1)
92return Math.Sqrt(totalLength);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
1115textViewProximities[i] = Math.Sqrt(Math.Pow(horz, 2) + Math.Pow(vert, 2));
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
116double step = Math.Sqrt(MinDistanceSquared / distanceSquared);
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
305_rows = (int)Math.Sqrt(nonCollapsedCount);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
147double yScale = Math.Sqrt(mat.M12*mat.M12 + mat.M22*mat.M22); 148double xScale = Math.Sqrt(mat.M11 * mat.M11 + mat.M21 * mat.M21);
src\Framework\System\Windows\Documents\TextStore.cs (2)
2755double radSin = Math.Asin(tf.M12 / Math.Sqrt((tf.M11 * tf.M11) + (tf.M12 * tf.M12))); 2756double radCos = Math.Acos(tf.M11 / Math.Sqrt((tf.M11 * tf.M11) + (tf.M12 * tf.M12)));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2625return Math.Sqrt(deltaX * deltaX + deltaY * deltaY);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (1)
22return Math.Sqrt(Math.Pow(point2.X - point1.X, 2) + Math.Pow(point2.Y - point1.Y, 2));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1573return Math.Sqrt((y - c) / a);
System.Data (21)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1573return Math.Sqrt((y - c) / a);
fx\src\data\System\Data\Common\ByteStorage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\DecimalStorage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\DoubleStorage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\Int16Storage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\Int32Storage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\Int64Storage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\SByteStorage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\SingleStorage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
92return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
93return Math.Sqrt(var.Value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
116ulong stDev = (ulong)Math.Round(Math.Sqrt(varSum / (count - 1)));
fx\src\data\System\Data\Common\UInt16Storage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\UInt32Storage.cs (1)
90return Math.Sqrt(var);
fx\src\data\System\Data\Common\UInt64Storage.cs (1)
90return Math.Sqrt(var);
System.Numerics (39)
System\Numerics\Complex.cs (3)
166return c * Math.Sqrt(1.0 + r * r); 171return d * Math.Sqrt(1.0 + r * r); 368return Complex.FromPolarCoordinates(Math.Sqrt(value.Magnitude), value.Phase / 2.0);
System\Numerics\Matrix4x4.cs (2)
209zaxis = Vector3.Multiply(zaxis, 1.0f / (float)Math.Sqrt(norm)); 267faceDir = Vector3.Multiply(faceDir, (1.0f / (float)Math.Sqrt(norm)));
System\Numerics\Plane.cs (3)
99float invNorm = 1.0f / (float)Math.Sqrt((double)ls); 129float normalLength = (float)Math.Sqrt(normalLengthSquared); 143float fInv = 1.0f / (float)Math.Sqrt(f);
System\Numerics\Quaternion.cs (7)
83return (float)Math.Sqrt((double)ls); 106float invNorm = 1.0f / (float)Math.Sqrt((double)ls); 227float s = (float)Math.Sqrt(trace + 1.0f); 238float s = (float)Math.Sqrt(1.0f + matrix.M11 - matrix.M22 - matrix.M33); 247float s = (float)Math.Sqrt(1.0f + matrix.M22 - matrix.M11 - matrix.M33); 256float s = (float)Math.Sqrt(1.0f + matrix.M33 - matrix.M11 - matrix.M22); 369float invNorm = 1.0f / (float)Math.Sqrt((double)ls);
System\Numerics\Vector2.cs (5)
108return (float)Math.Sqrt(ls); 113return (float)Math.Sqrt((double)ls); 149return (float)System.Math.Sqrt(ls); 158return (float)Math.Sqrt((double)ls); 201float invNorm = 1.0f / (float)Math.Sqrt((double)ls);
System\Numerics\Vector2_Intrinsics.cs (2)
161return new Vector2((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y));
System\Numerics\Vector3.cs (5)
117return (float)System.Math.Sqrt(ls); 122return (float)System.Math.Sqrt(ls); 158return (float)System.Math.Sqrt(ls); 168return (float)System.Math.Sqrt((double)ls); 212float length = (float)System.Math.Sqrt(ls);
System\Numerics\Vector3_Intrinsics.cs (3)
180return new Vector3((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y), (Single)Math.Sqrt(value.Z));
System\Numerics\Vector4.cs (5)
124return (float)System.Math.Sqrt(ls); 130return (float)Math.Sqrt((double)ls); 166return (float)System.Math.Sqrt(ls); 177return (float)Math.Sqrt((double)ls); 222float invNorm = 1.0f / (float)Math.Sqrt((double)ls);
System\Numerics\Vector4_Intrinsics.cs (4)
214return new Vector4((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y), (Single)Math.Sqrt(value.Z), (Single)Math.Sqrt(value.W));
System.Runtime.Serialization (1)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
198int limit = (int)Math.Sqrt(candidate);
System.Web.DataVisualization (26)
Common\Annotation\ArrowAnnotation.cs (1)
398 float arrowLength = (float)Math.Sqrt(deltaX * deltaX + deltaY * deltaY);
Common\ChartTypes\BoxPlotChart.cs (2)
491 double brightness = Math.Sqrt(point.Color.R * point.Color.R + point.Color.G * point.Color.G + point.Color.B * point.Color.B); 1271 double brightness = Math.Sqrt(point.Color.R * point.Color.R + point.Color.G * point.Color.G + point.Color.B * point.Color.B);
Common\ChartTypes\ErrorBarChart.cs (2)
1727 errorAmount = param * Math.Sqrt(errorAmount/ ( pointNumber - 1 ) ); 1750 errorAmount = param * Math.Sqrt( errorAmount/( pointNumber * ( pointNumber - 1 ) ) ) / 2.0;
Common\ChartTypes\FunnelChart.cs (1)
2639 percentages[loop] = Math.Sqrt((2 * sumArea) / baseRatio);
Common\Formulas\PriceIndicators.cs (6)
757 outputValues[1][point] = average[point] + Math.Sqrt(sum / period) * deviation; 758 outputValues[2][point] = average[point] - Math.Sqrt(sum / period) * deviation; 788 outputValues[1][point] = average[point] + Math.Sqrt(sum / period) * deviation; 789 outputValues[2][point] = average[point] - Math.Sqrt(sum / period) * deviation; 1048 outputValues[outIndex] = Math.Sqrt( sum / period ); 1066 outputValues[outIndex] = Math.Sqrt( sum / period );
Common\Formulas\StatisticalAnalysis.cs (7)
375 double correl = covar / Math.Sqrt( varianceX * varianceY ); 659 double dev = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 812 T = ( mean1 - mean2 - HypothesizedMeanDifference ) / ( Math.Sqrt( s * ( 1.0 / inputValues[1].Length + 1.0 / inputValues[2].Length ) ) ); 824 s = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 977 variance = Math.Sqrt( Variance( difference, true ) ); 979 double T = ( Math.Sqrt( inputValues[1].Length ) * ( mean - HypothesizedMeanDifference ) ) / variance; 1984 result = NormalDistributionFunction(zValue)/Math.Sqrt(1.0+zValue*zValue);
Common\Formulas\TimeSeriesAndForecasting.cs (2)
256error = Math.Sqrt(error); 266dev = Math.Sqrt(dev);
Common\General\Chart.cs (1)
2178 int areaColumns = (int)Math.Floor(Math.Sqrt(areaNumber));
Common\General\ChartArea3D.cs (1)
1375 size = Math.Sqrt(
Common\General\DataManipulator.cs (1)
2995 Math.Sqrt(pointTempValues[functionInfo.outputIndex]);
Common\General\Matrix3D.cs (2)
1215 angle = Math.Acos( ( a.X * b.X + a.Y * b.Y + a.Z * b.Z ) / ( Math.Sqrt( a.X * a.X + a.Y * a.Y + a.Z * a.Z ) * Math.Sqrt( b.X * b.X + b.Y * b.Y + b.Z * b.Z ) ) );
System.Windows.Forms (2)
winforms\Managed\System\WinForms\NativeWindow.cs (1)
968int target = (int)Math.Sqrt(j);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2381double hypotenuse = Math.Sqrt(adjacentSide*adjacentSide + oppositeSide*oppositeSide);
System.Windows.Forms.DataVisualization (25)
Common\Annotation\ArrowAnnotation.cs (1)
398 float arrowLength = (float)Math.Sqrt(deltaX * deltaX + deltaY * deltaY);
Common\ChartTypes\BoxPlotChart.cs (2)
491 double brightness = Math.Sqrt(point.Color.R * point.Color.R + point.Color.G * point.Color.G + point.Color.B * point.Color.B); 1271 double brightness = Math.Sqrt(point.Color.R * point.Color.R + point.Color.G * point.Color.G + point.Color.B * point.Color.B);
Common\ChartTypes\ErrorBarChart.cs (2)
1727 errorAmount = param * Math.Sqrt(errorAmount/ ( pointNumber - 1 ) ); 1750 errorAmount = param * Math.Sqrt( errorAmount/( pointNumber * ( pointNumber - 1 ) ) ) / 2.0;
Common\ChartTypes\FunnelChart.cs (1)
2639 percentages[loop] = Math.Sqrt((2 * sumArea) / baseRatio);
Common\Formulas\PriceIndicators.cs (6)
757 outputValues[1][point] = average[point] + Math.Sqrt(sum / period) * deviation; 758 outputValues[2][point] = average[point] - Math.Sqrt(sum / period) * deviation; 788 outputValues[1][point] = average[point] + Math.Sqrt(sum / period) * deviation; 789 outputValues[2][point] = average[point] - Math.Sqrt(sum / period) * deviation; 1048 outputValues[outIndex] = Math.Sqrt( sum / period ); 1066 outputValues[outIndex] = Math.Sqrt( sum / period );
Common\Formulas\StatisticalAnalysis.cs (7)
375 double correl = covar / Math.Sqrt( varianceX * varianceY ); 659 double dev = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 812 T = ( mean1 - mean2 - HypothesizedMeanDifference ) / ( Math.Sqrt( s * ( 1.0 / inputValues[1].Length + 1.0 / inputValues[2].Length ) ) ); 824 s = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 977 variance = Math.Sqrt( Variance( difference, true ) ); 979 double T = ( Math.Sqrt( inputValues[1].Length ) * ( mean - HypothesizedMeanDifference ) ) / variance; 1984 result = NormalDistributionFunction(zValue)/Math.Sqrt(1.0+zValue*zValue);
Common\Formulas\TimeSeriesAndForecasting.cs (2)
256error = Math.Sqrt(error); 266dev = Math.Sqrt(dev);
Common\General\Chart.cs (1)
2178 int areaColumns = (int)Math.Floor(Math.Sqrt(areaNumber));
Common\General\DataManipulator.cs (1)
2995 Math.Sqrt(pointTempValues[functionInfo.outputIndex]);
Common\General\Matrix3D.cs (2)
1215 angle = Math.Acos( ( a.X * b.X + a.Y * b.Y + a.Z * b.Z ) / ( Math.Sqrt( a.X * a.X + a.Y * a.Y + a.Z * a.Z ) * Math.Sqrt( b.X * b.X + b.Y * b.Y + b.Z * b.Z ) ) );
System.Workflow.ComponentModel (3)
AuthoringOM\Design\Connector.cs (1)
2722return Math.Sqrt((double)(p.X - q.X) * (p.X - q.X) + (double)(p.Y - q.Y) * (p.Y - q.Y));
AuthoringOM\Design\DesignerHelpers.cs (2)
1939return Math.Sqrt(Math.Pow(area, 2) / (Math.Pow((line[1].X - line[0].X), 2) + Math.Pow((line[1].Y - line[0].Y), 2))); 1973double d = Math.Sqrt(Math.Pow(point2.X - point1.X, 2) + Math.Pow(point2.Y - point1.Y, 2));
WindowsBase (1)
Base\System\Windows\Vector.cs (1)
50return Math.Sqrt(_x*_x + _y*_y);