internal static bool TryParse(string s, out IntegerNumber dst)
 {
     if (long.TryParse(s, out long res))
     {
         dst = Number.Create(res);
         return(true);
     }
     dst = null;
     return(false);
 }
Exemplo n.º 2
0
 public static ComplexNumber Num(decimal a) => Number.Create(a);
Exemplo n.º 3
0
 /// <summary>
 /// If you need an indefinite value of a complex number, e. g.
 /// Number.Create(RealNumber.UndefinedState.POSITIVE_INFINITY, RealNumber.UndefinedState.NEGATIVE_INFINITY)
 /// -> +oo + -ooi
 /// </summary>
 /// <returns></returns>
 public static ComplexNumber Create(RealNumber.UndefinedState realState, RealNumber.UndefinedState imaginaryState)
 => Number.Create(Number.Create(realState), Number.Create(imaginaryState));
Exemplo n.º 4
0
 public static Number Num(decimal a, decimal b) => Number.Create(a, b);