import * as TypeOfComplex from './ComplexInterface'; import { Evaluator } from './Evaluator'; /** * # ComplexNumber * * An native `number` type complex number library. * * ## References * * https://mathworld.wolfram.com/ComplexNumber.html */ declare class ComplexNumber 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: (config: Partial) => void; re: number; im: number; 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: (re?: TypeOfComplex.NumLike, im?: TypeOfComplex.NumLike, type?: TypeOfComplex.NumType, parent?: TypeOfComplex.NumParent) => ComplexNumber; static readonly realSet: (value: ComplexNumber, re: TypeOfComplex.NumLike) => void; static readonly imagSet: (value: ComplexNumber, im: TypeOfComplex.NumLike) => void; static readonly realApply: (value: ComplexNumber, func: (re: number) => number) => void; static readonly imagApply: (value: ComplexNumber, func: (im: number) => number) => void; static readonly from: (obj: ComplexNumber) => ComplexNumber; static readonly real: (z: ComplexNumber) => ComplexNumber; static readonly imag: (z: ComplexNumber) => ComplexNumber; static readonly isComplexValue: (z: ComplexNumber) => boolean; static readonly isRealValue: (z: ComplexNumber) => boolean; static readonly realIsInteger: (z: ComplexNumber) => boolean; static readonly imagIsInteger: (z: ComplexNumber) => boolean; static readonly realIsFinite: (z: ComplexNumber) => boolean; static readonly imagIsFinite: (z: ComplexNumber) => boolean; static readonly realIsNaN: (z: ComplexNumber) => boolean; static readonly imagIsNaN: (z: ComplexNumber) => boolean; static readonly realIsNegative: (z: ComplexNumber) => boolean; static readonly imagIsNegative: (z: ComplexNumber) => boolean; static readonly realIsZero: (z: ComplexNumber) => boolean; static readonly imagIsZero: (z: ComplexNumber) => boolean; static readonly realIsPositive: (z: ComplexNumber) => boolean; static readonly imagIsPositive: (z: ComplexNumber) => boolean; static readonly realToNumber: (z: ComplexNumber) => number; static readonly toBoolean: (z: ComplexNumber) => boolean; static readonly imagToNumber: (z: ComplexNumber) => number; static readonly realLessThan: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly imagLessThan: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly realLessThanOrEqualTo: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly imagLessThanOrEqualTo: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly realEquals: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly imagEquals: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly realGreaterThanOrEqualTo: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly imagGreaterThanOrEqualTo: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly realGreaterThan: (z: ComplexNumber, value: TypeOfComplex.NumLike) => boolean; static readonly imagGreaterThan: (z: ComplexNumber, value: TypeOfComplex.NumLike) => 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: () => ComplexNumber; static toMaxPrecisionValue: TypeOfComplex.OneArgValueComplexHandler; static toMaxPrecision: TypeOfComplex.OneArgComplexHandler; static epsilonValue(): number; 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 ComplexNumber>; static twoArgFunction: Record ComplexNumber>; } /** * The static type ensures compatibility with the contract (TypeOfComplex.ComplexInterface). */ type ComplexNumberStatic = typeof ComplexNumber extends TypeOfComplex.ComplexInterfaceStatic ? typeof ComplexNumber : never; export { type ComplexNumberStatic, ComplexNumber }; declare const _default: { ComplexNumber: typeof ComplexNumber; }; export default _default;