159 references to Sqrt
mscorlib (1)
system\collections\hashtable.cs (1)
1705
int limit = (int)Math.
Sqrt
(candidate);
PresentationCore (29)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (1)
463
return Math.
Sqrt
((a * a) + (b * b));
Core\CSharp\MS\Internal\Ink\Bezier.cs (1)
537
nPoints = (int)(Math.
Sqrt
(rCurv / tolerance)) + 3;
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (4)
122
double distance = Math.
Sqrt
(distanceSquared);
143
rad *= Math.
Sqrt
(1 - rSinSquared);
144
spine *= Math.
Sqrt
(rSinSquared);
728
double tmp = Math.
Sqrt
(B*B-4.0f * A * C);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (1)
512
return Math.
Sqrt
(nearestOnFirst.LengthSquared / shortest.LengthSquared);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
1103
closestIntersection = ((currClosest - edges[i]._p1Transformed).Length / Math.
Sqrt
(denom) *
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (3)
291
maxvalue = Math.
Sqrt
(maxvalue);
340
double root = Math.
Sqrt
(1+tau*tau);
343
_c = 1/Math.
Sqrt
(1+t*t);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (4)
848
weight += Math.
Sqrt
(da.Width*da.Width + da.Height*da.Height) / 2.0f;
853
weight += Math.
Sqrt
(spine.LengthSquared) / 2.0f;
858
weight += Math.
Sqrt
(da.Width*da.Width + da.Height*da.Height) / 2.0f;
863
weight += Math.
Sqrt
(spine.LengthSquared) / 2.0f;
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
378
return Math.
Sqrt
(spine.LengthSquared);
Core\CSharp\System\Windows\Ink\Stroke2.cs (2)
736
double newWidth = Math.
Sqrt
(w.X * w.X + w.Y * w.Y);
737
double newHeight = Math.
Sqrt
(h.X * h.X + h.Y * h.Y);
Core\CSharp\System\Windows\Media\Animation\CircleEase.cs (1)
17
return 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)
122
int sqrt = (int) Math.
Sqrt
(number);
Core\CSharp\System\Windows\Media3D\Quaternion.cs (6)
166
double msin = Math.
Sqrt
(_x*_x + _y*_y + _z*_z);
179
msin = Math.
Sqrt
(x*x + y*y + z*z);
276
double normInverse = 1.0 / Math.
Sqrt
(norm2);
459
double smallLength = Math.
Sqrt
(x*x+y*y+z*z+w*w);
463
return Math.
Sqrt
(norm2);
576
double sinOmega = Math.
Sqrt
(1.0 - cosOmega*cosOmega);
Core\CSharp\System\Windows\Media3D\Vector3D.cs (2)
69
return Math.
Sqrt
(_x * _x + _y * _y + _z * _z);
110
double length = Math.
Sqrt
(_x * _x + _y * _y + _z * _z);
PresentationFramework (9)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (1)
92
return Math.
Sqrt
(totalLength);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
1115
textViewProximities[i] = Math.
Sqrt
(Math.Pow(horz, 2) + Math.Pow(vert, 2));
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
116
double 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)
147
double yScale = Math.
Sqrt
(mat.M12*mat.M12 + mat.M22*mat.M22);
148
double xScale = Math.
Sqrt
(mat.M11 * mat.M11 + mat.M21 * mat.M21);
src\Framework\System\Windows\Documents\TextStore.cs (2)
2755
double radSin = Math.Asin(tf.M12 / Math.
Sqrt
((tf.M11 * tf.M11) + (tf.M12 * tf.M12)));
2756
double radCos = Math.Acos(tf.M11 / Math.
Sqrt
((tf.M11 * tf.M11) + (tf.M12 * tf.M12)));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2625
return Math.
Sqrt
(deltaX * deltaX + deltaY * deltaY);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (1)
22
return 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)
1573
return Math.
Sqrt
((y - c) / a);
System.Data (21)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1573
return Math.
Sqrt
((y - c) / a);
fx\src\data\System\Data\Common\ByteStorage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\DecimalStorage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\DoubleStorage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\Int16Storage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\Int32Storage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\Int64Storage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\SByteStorage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\SingleStorage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
92
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
93
return Math.
Sqrt
(var.Value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
116
ulong stDev = (ulong)Math.Round(Math.
Sqrt
(varSum / (count - 1)));
fx\src\data\System\Data\Common\UInt16Storage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\UInt32Storage.cs (1)
90
return Math.
Sqrt
(var);
fx\src\data\System\Data\Common\UInt64Storage.cs (1)
90
return Math.
Sqrt
(var);
System.Numerics (39)
System\Numerics\Complex.cs (3)
166
return c * Math.
Sqrt
(1.0 + r * r);
171
return d * Math.
Sqrt
(1.0 + r * r);
368
return Complex.FromPolarCoordinates(Math.
Sqrt
(value.Magnitude), value.Phase / 2.0);
System\Numerics\Matrix4x4.cs (2)
209
zaxis = Vector3.Multiply(zaxis, 1.0f / (float)Math.
Sqrt
(norm));
267
faceDir = Vector3.Multiply(faceDir, (1.0f / (float)Math.
Sqrt
(norm)));
System\Numerics\Plane.cs (3)
99
float invNorm = 1.0f / (float)Math.
Sqrt
((double)ls);
129
float normalLength = (float)Math.
Sqrt
(normalLengthSquared);
143
float fInv = 1.0f / (float)Math.
Sqrt
(f);
System\Numerics\Quaternion.cs (7)
83
return (float)Math.
Sqrt
((double)ls);
106
float invNorm = 1.0f / (float)Math.
Sqrt
((double)ls);
227
float s = (float)Math.
Sqrt
(trace + 1.0f);
238
float s = (float)Math.
Sqrt
(1.0f + matrix.M11 - matrix.M22 - matrix.M33);
247
float s = (float)Math.
Sqrt
(1.0f + matrix.M22 - matrix.M11 - matrix.M33);
256
float s = (float)Math.
Sqrt
(1.0f + matrix.M33 - matrix.M11 - matrix.M22);
369
float invNorm = 1.0f / (float)Math.
Sqrt
((double)ls);
System\Numerics\Vector2.cs (5)
108
return (float)Math.
Sqrt
(ls);
113
return (float)Math.
Sqrt
((double)ls);
149
return (float)System.Math.
Sqrt
(ls);
158
return (float)Math.
Sqrt
((double)ls);
201
float invNorm = 1.0f / (float)Math.
Sqrt
((double)ls);
System\Numerics\Vector2_Intrinsics.cs (2)
161
return new Vector2((Single)Math.
Sqrt
(value.X), (Single)Math.
Sqrt
(value.Y));
System\Numerics\Vector3.cs (5)
117
return (float)System.Math.
Sqrt
(ls);
122
return (float)System.Math.
Sqrt
(ls);
158
return (float)System.Math.
Sqrt
(ls);
168
return (float)System.Math.
Sqrt
((double)ls);
212
float length = (float)System.Math.
Sqrt
(ls);
System\Numerics\Vector3_Intrinsics.cs (3)
180
return new Vector3((Single)Math.
Sqrt
(value.X), (Single)Math.
Sqrt
(value.Y), (Single)Math.
Sqrt
(value.Z));
System\Numerics\Vector4.cs (5)
124
return (float)System.Math.
Sqrt
(ls);
130
return (float)Math.
Sqrt
((double)ls);
166
return (float)System.Math.
Sqrt
(ls);
177
return (float)Math.
Sqrt
((double)ls);
222
float invNorm = 1.0f / (float)Math.
Sqrt
((double)ls);
System\Numerics\Vector4_Intrinsics.cs (4)
214
return 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)
198
int 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)
256
error = Math.
Sqrt
(error);
266
dev = 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)
968
int target = (int)Math.
Sqrt
(j);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2381
double 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)
256
error = Math.
Sqrt
(error);
266
dev = 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)
2722
return 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)
1939
return Math.
Sqrt
(Math.Pow(area, 2) / (Math.Pow((line[1].X - line[0].X), 2) + Math.Pow((line[1].Y - line[0].Y), 2)));
1973
double 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)
50
return Math.
Sqrt
(_x*_x + _y*_y);