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); }
public static ComplexNumber Num(decimal a) => Number.Create(a);
/// <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));
public static Number Num(decimal a, decimal b) => Number.Create(a, b);