import { Decimal } from 'decimal.js'; import * as TypeOfComplex from './ComplexInterface'; import { Evaluator } from './Evaluator'; /** * # `ComplexDecimal` * * An arbitrary precision complex number library. * * ## References * * https://mathworld.wolfram.com/ComplexNumber.html */ declare class ComplexDecimal implements TypeOfComplex.ComplexInterface { static readonly LOGICAL: number; static readonly REAL: number; static readonly COMPLEX: number; static readonly defaultSettings: TypeOfComplex.ComplexConfig; static readonly settings: TypeOfComplex.ComplexConfig; static readonly isInstanceOf: TypeOfComplex.IsInstanceOfComplexHandler; static readonly set: TypeOfComplex.SetComplexHandler; re: Decimal; im: Decimal; type: number; parent: any; static readonly setNumberType: TypeOfComplex.OneArgNoReturnComplexHandler; constructor(re?: TypeOfComplex.NumLike, im?: TypeOfComplex.NumLike, type?: TypeOfComplex.NumType, parent?: TypeOfComplex.NumParent); static readonly create: TypeOfComplex.CreateComplexHandler; static readonly realSet: TypeOfComplex.PartSetComplexHandler; static readonly imagSet: TypeOfComplex.PartSetComplexHandler; static readonly realApply: TypeOfComplex.PartApplyComplexHandler; static readonly imagApply: TypeOfComplex.PartApplyComplexHandler; static readonly from: (obj: ComplexDecimal) => ComplexDecimal; static readonly real: (z: ComplexDecimal) => ComplexDecimal; static readonly imag: (z: ComplexDecimal) => ComplexDecimal; static readonly isComplexValue: (z: ComplexDecimal) => boolean; static readonly isRealValue: (z: ComplexDecimal) => boolean; static readonly realIsInteger: (z: ComplexDecimal) => boolean; static readonly imagIsInteger: (z: ComplexDecimal) => boolean; static readonly realIsFinite: (z: ComplexDecimal) => boolean; static readonly imagIsFinite: (z: ComplexDecimal) => boolean; static readonly realIsNaN: (z: ComplexDecimal) => boolean; static readonly imagIsNaN: (z: ComplexDecimal) => boolean; static readonly realIsNegative: (z: ComplexDecimal) => boolean; static readonly imagIsNegative: (z: ComplexDecimal) => boolean; static readonly realIsZero: (z: ComplexDecimal) => boolean; static readonly imagIsZero: (z: ComplexDecimal) => boolean; static readonly realIsPositive: (z: ComplexDecimal) => boolean; static readonly imagIsPositive: (z: ComplexDecimal) => boolean; static readonly realToNumber: (z: ComplexDecimal) => number; static readonly toBoolean: (z: ComplexDecimal) => boolean; static readonly imagToNumber: (z: ComplexDecimal) => number; static readonly realLessThan: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly imagLessThan: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly realLessThanOrEqualTo: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly imagLessThanOrEqualTo: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly realEquals: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly imagEquals: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly realGreaterThanOrEqualTo: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly imagGreaterThanOrEqualTo: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly realGreaterThan: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly imagGreaterThan: (z: ComplexDecimal, value: Decimal.Value) => boolean; static readonly parse: TypeOfComplex.ParseComplexHandler; static readonly precedence: TypeOfComplex.PrecedenceComplexHandler; static readonly unparseValue: TypeOfComplex.UnparseValueComplexHandler; static readonly unparse: TypeOfComplex.UnparseComplexHandler; static readonly toString: TypeOfComplex.ToStringComplexHandler; toString(): string; static readonly unparseMathMLValue: TypeOfComplex.UnparseValueComplexHandler; static readonly unparseMathML: TypeOfComplex.UnparseComplexHandler; static copy: TypeOfComplex.OneArgComplexHandler; copy: () => ComplexDecimal; static toMaxPrecisionValue: TypeOfComplex.OneArgValueComplexHandler; static toMaxPrecision: TypeOfComplex.OneArgComplexHandler; static epsilonValue: () => Decimal; static epsilon: TypeOfComplex.NoArgComplexHandler; static random: TypeOfComplex.RandomComplexHandler; static eq: TypeOfComplex.TwoArgComplexHandler; static ne: TypeOfComplex.TwoArgComplexHandler; static compareValue: TypeOfComplex.CompareValueComplexHandler; static cmp: TypeOfComplex.CmpComplexHandler; static minMaxArrayReal: TypeOfComplex.MinMaxArrayComplexHandler; static minMaxArrayRealWithIndex: TypeOfComplex.MinMaxArrayWithIndexComplexHandler; static minMaxArrayComplex: TypeOfComplex.MinMaxArrayComplexHandler; static minMaxArrayComplexWithIndex: TypeOfComplex.MinMaxArrayWithIndexComplexHandler; static min: TypeOfComplex.TwoArgComplexHandler; static minWise: TypeOfComplex.TwoArgComplexHandler; static max: TypeOfComplex.TwoArgComplexHandler; static maxWise: TypeOfComplex.TwoArgComplexHandler; static lt: TypeOfComplex.TwoArgComplexHandler; static le: TypeOfComplex.TwoArgComplexHandler; static gt: TypeOfComplex.TwoArgComplexHandler; static ge: TypeOfComplex.TwoArgComplexHandler; static false: TypeOfComplex.NoArgComplexHandler; static true: TypeOfComplex.NoArgComplexHandler; static logical: TypeOfComplex.OneArgComplexHandler; static toLogical: TypeOfComplex.OneArgComplexHandler; toLogical: TypeOfComplex.NoArgComplexHandler; static and: TypeOfComplex.TwoArgComplexHandler; static or: TypeOfComplex.TwoArgComplexHandler; static xor: TypeOfComplex.TwoArgComplexHandler; static not: TypeOfComplex.OneArgComplexHandler; static zero: TypeOfComplex.NoArgComplexHandler; static one: TypeOfComplex.NoArgComplexHandler; static onediv2: TypeOfComplex.NoArgComplexHandler; static minusonediv2: TypeOfComplex.NoArgComplexHandler; static minusone: TypeOfComplex.NoArgComplexHandler; static pi: TypeOfComplex.NoArgComplexHandler; static pidiv2: TypeOfComplex.NoArgComplexHandler; static onei: TypeOfComplex.NoArgComplexHandler; static onediv2i: TypeOfComplex.NoArgComplexHandler; static minusonediv2i: TypeOfComplex.NoArgComplexHandler; static minusonei: TypeOfComplex.NoArgComplexHandler; static two: TypeOfComplex.NoArgComplexHandler; static sqrt2pi: TypeOfComplex.NoArgComplexHandler; static e: TypeOfComplex.NoArgComplexHandler; static NaN_0: TypeOfComplex.NoArgComplexHandler; static inf_0: TypeOfComplex.NoArgComplexHandler; static add: TypeOfComplex.TwoArgComplexHandler; static sub: TypeOfComplex.TwoArgComplexHandler; static neg: TypeOfComplex.OneArgComplexHandler; static mul: TypeOfComplex.TwoArgComplexHandler; static mulAndSumTo: TypeOfComplex.ThreeArgComplexHandler; static rdiv: TypeOfComplex.TwoArgComplexHandler; static ldiv: TypeOfComplex.TwoArgComplexHandler; static inv: TypeOfComplex.OneArgComplexHandler; static power: TypeOfComplex.TwoArgComplexHandler; static root: TypeOfComplex.TwoArgComplexHandler; static absValue: TypeOfComplex.AbsoluteValueComplexHandler; static abs2Value: TypeOfComplex.AbsoluteValueComplexHandler; static abs: TypeOfComplex.OneArgComplexHandler; static abs2: TypeOfComplex.OneArgComplexHandler; static hypot: TypeOfComplex.TwoArgComplexHandler; static arg: TypeOfComplex.OneArgComplexHandler; static conj: TypeOfComplex.OneArgComplexHandler; static mod: TypeOfComplex.TwoArgComplexHandler; static rem: TypeOfComplex.TwoArgComplexHandler; static fix: TypeOfComplex.OneArgComplexHandler; static ceil: TypeOfComplex.OneArgComplexHandler; static floor: TypeOfComplex.OneArgComplexHandler; static round: TypeOfComplex.OneArgComplexHandler; static sign: TypeOfComplex.OneArgComplexHandler; static sqrt: TypeOfComplex.OneArgComplexHandler; static exp: TypeOfComplex.OneArgComplexHandler; static log: TypeOfComplex.OneArgComplexHandler; static logb: TypeOfComplex.TwoArgComplexHandler; static log2: TypeOfComplex.OneArgComplexHandler; static log10: TypeOfComplex.OneArgComplexHandler; static deg2rad: TypeOfComplex.OneArgComplexHandler; static rad2deg: TypeOfComplex.OneArgComplexHandler; static sin: TypeOfComplex.OneArgComplexHandler; static sind: TypeOfComplex.OneArgComplexHandler; static cos: TypeOfComplex.OneArgComplexHandler; static cosd: TypeOfComplex.OneArgComplexHandler; static tan: TypeOfComplex.OneArgComplexHandler; static tand: TypeOfComplex.OneArgComplexHandler; static csc: TypeOfComplex.OneArgComplexHandler; static cscd: TypeOfComplex.OneArgComplexHandler; static sec: TypeOfComplex.OneArgComplexHandler; static secd: TypeOfComplex.OneArgComplexHandler; static cot: TypeOfComplex.OneArgComplexHandler; static cotd: TypeOfComplex.OneArgComplexHandler; static asin: TypeOfComplex.OneArgComplexHandler; static asind: TypeOfComplex.OneArgComplexHandler; static acos: TypeOfComplex.OneArgComplexHandler; static acosd: TypeOfComplex.OneArgComplexHandler; static atan: TypeOfComplex.OneArgComplexHandler; static atan2: TypeOfComplex.TwoArgComplexHandler; static atand: TypeOfComplex.OneArgComplexHandler; static acsc: TypeOfComplex.OneArgComplexHandler; static acscd: TypeOfComplex.OneArgComplexHandler; static asec: TypeOfComplex.OneArgComplexHandler; static asecd: TypeOfComplex.OneArgComplexHandler; static acot: TypeOfComplex.OneArgComplexHandler; static acotd: TypeOfComplex.OneArgComplexHandler; static sinh: TypeOfComplex.OneArgComplexHandler; static cosh: TypeOfComplex.OneArgComplexHandler; static tanh: TypeOfComplex.OneArgComplexHandler; static csch: TypeOfComplex.OneArgComplexHandler; static sech: TypeOfComplex.OneArgComplexHandler; static coth: TypeOfComplex.OneArgComplexHandler; static asinh: TypeOfComplex.OneArgComplexHandler; static acosh: TypeOfComplex.OneArgComplexHandler; static atanh: TypeOfComplex.OneArgComplexHandler; static acsch: TypeOfComplex.OneArgComplexHandler; static asech: TypeOfComplex.OneArgComplexHandler; static acoth: TypeOfComplex.OneArgComplexHandler; static gamma: TypeOfComplex.OneArgComplexHandler; static factorial: TypeOfComplex.OneArgComplexHandler; static readonly applyFunction: TypeOfComplex.PartApplyComplexHandlerTable; static mapFunction: Record ComplexDecimal>; static twoArgFunction: Record ComplexDecimal>; } /** * The static type ensures compatibility with the contract (TypeOfComplex.ComplexInterface). */ type ComplexDecimalStatic = typeof ComplexDecimal extends TypeOfComplex.ComplexInterfaceStatic ? typeof ComplexDecimal : never; export { Decimal, type ComplexDecimalStatic, ComplexDecimal }; declare const _default: { ComplexDecimal: typeof ComplexDecimal; }; export default _default;