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