@@ -32,7 +32,7 @@ public abstract class PowerAndRootTests<TAccelerator>
3232 public void IsSqrtCorrect ( double x )
3333 {
3434 double y = double . Sqrt ( x ) ;
35- AssertX . NearlyEqual ( y , Float128 < TAccelerator > . Sqrt ( x ) , Precision . NearestThousandth ) ;
35+ AssertX . NearlyEqual ( y , Float128 < TAccelerator > . Sqrt ( x ) , Precision . NearestTenThousandth ) ;
3636 }
3737
3838 [ Theory ]
@@ -42,7 +42,7 @@ public void IsSqrtCorrect(double x)
4242 public void IsCbrtCorrect ( double x )
4343 {
4444 double y = double . Cbrt ( x ) ;
45- AssertX . NearlyEqual ( y , Float128 < TAccelerator > . Cbrt ( x ) , Precision . NearestThousandth ) ;
45+ AssertX . NearlyEqual ( y , Float128 < TAccelerator > . Cbrt ( x ) , Precision . NearestTenThousandth ) ;
4646 }
4747
4848 [ Theory ]
@@ -58,7 +58,7 @@ public void IsCbrtCorrect(double x)
5858 public void IsRootNCorrect ( double x , int n )
5959 {
6060 double y = double . RootN ( x , n ) ;
61- AssertX . NearlyEqual ( y , Float128 < TAccelerator > . RootN ( x , n ) , Precision . NearestThousandth ) ;
61+ AssertX . NearlyEqual ( y , Float128 < TAccelerator > . RootN ( x , n ) , Precision . NearestTenThousandth ) ;
6262 }
6363
6464 [ Theory ]
@@ -75,7 +75,7 @@ public void IsRootNEqualToPow(double x, int n)
7575 {
7676 Float128 < TAccelerator > y0 = Float128 < TAccelerator > . RootN ( x , n ) ;
7777 Float128 < TAccelerator > y1 = Float128 < TAccelerator > . Pow ( x , Float128 < TAccelerator > . One / n ) ;
78- AssertX . NearlyEqual ( y0 , y1 , Precision . NearestThousandth ) ;
78+ AssertX . NearlyEqual ( y0 , y1 , Precision . NearestTenThousandth ) ;
7979 }
8080
8181 [ Theory ]
@@ -94,7 +94,7 @@ public void IsRootNEqualToPow(double x, int n)
9494 public void IsPowCorrect ( double x , double y )
9595 {
9696 double z = double . Pow ( x , y ) ;
97- AssertX . NearlyEqual ( z , Float128 < TAccelerator > . Pow ( x , y ) , Precision . NearestThousandth ) ;
97+ AssertX . NearlyEqual ( z , Float128 < TAccelerator > . Pow ( x , y ) , Precision . NearestTenThousandth ) ;
9898 }
9999
100100 [ Theory ]
@@ -103,7 +103,7 @@ public void IsPowCorrect(double x, double y)
103103 [ InlineData ( 3.676 ) ]
104104 public void IsPowZeroEqualToOne ( double x )
105105 {
106- AssertX . NearlyEqual ( Float128 < TAccelerator > . One , Float128 < TAccelerator > . Pow ( x , 0 ) , Precision . NearestThousandth ) ;
106+ AssertX . NearlyEqual ( Float128 < TAccelerator > . One , Float128 < TAccelerator > . Pow ( x , 0 ) , Precision . NearestTenThousandth ) ;
107107 }
108108
109109 [ Theory ]
@@ -122,7 +122,7 @@ public void IsPowZeroEqualToNaN(double x)
122122 [ InlineData ( 3.676 ) ]
123123 public void IsPowOneIdentity ( double x )
124124 {
125- AssertX . NearlyEqual ( x , Float128 < TAccelerator > . Pow ( x , Float128 < TAccelerator > . One ) , Precision . NearestThousandth ) ;
125+ AssertX . NearlyEqual ( x , Float128 < TAccelerator > . Pow ( x , Float128 < TAccelerator > . One ) , Precision . NearestTenThousandth ) ;
126126 }
127127
128128 [ Theory ]
@@ -131,7 +131,7 @@ public void IsPowOneIdentity(double x)
131131 [ InlineData ( 3.676 ) ]
132132 public void IsPowNegativeOneReciprocal ( double x )
133133 {
134- AssertX . NearlyEqual ( Float128 < TAccelerator > . One / x , Float128 < TAccelerator > . Pow ( x , Float128 < TAccelerator > . NegativeOne ) , Precision . NearestThousandth ) ;
134+ AssertX . NearlyEqual ( Float128 < TAccelerator > . One / x , Float128 < TAccelerator > . Pow ( x , Float128 < TAccelerator > . NegativeOne ) , Precision . NearestTenThousandth ) ;
135135 }
136136 }
137137
0 commit comments