示例#1
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Sqrt(PreciseDouble value) => Math.Sqrt(value.DoubleValue);
示例#2
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Tan(PreciseDouble value) => Math.Tan(value.DoubleValue);
示例#3
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Pow(PreciseDouble x, PreciseDouble y) => Math.Pow(x.DoubleValue, y.DoubleValue);
示例#4
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Sin(PreciseDouble value) => Math.Sin(value.DoubleValue);
示例#5
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Cos(PreciseDouble value) => Math.Cos(value.DoubleValue);
示例#6
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Round(PreciseDouble value) => Math.Round(value.DoubleValue);
示例#7
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Atan2(PreciseDouble x, PreciseDouble y) => Math.Atan2(x.DoubleValue, y.DoubleValue);
示例#8
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Ceiling(PreciseDouble value) => Math.Ceiling(value.DoubleValue);
示例#9
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Floor(PreciseDouble value) => Math.Floor(value.DoubleValue);
示例#10
0
文件: MathP.cs 项目: Polymaker/sigen
		public static PreciseDouble Abs(PreciseDouble value) => Math.Abs(value.DoubleValue);
示例#11
0
 public static bool EqualOrClose(this PreciseDouble n1, PreciseDouble n2, PreciseDouble tolerence)
 {
     return(MathP.Abs(n1 - n2) <= tolerence);
 }
示例#12
0
 public static bool EqualOrClose(this PreciseDouble n1, PreciseDouble n2)
 {
     return(EqualOrClose(n1, n2, double.Epsilon));
 }