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