コード例 #1
0
ファイル: Test.cs プロジェクト: czg1997/bitspersampleconv2
 public static void TestSqrt()
 {
     for (int i = 0; i <= 10; ++i)
     {
         Console.WriteLine("sqrt({0})={1}", i, WWDecimalMath.Sqrt(i));
     }
 }
コード例 #2
0
 public decimal Magnitude()
 {
     return(WWDecimalMath.Sqrt(real * real + imaginary * imaginary));
 }