/** * For storing term that have a base node, maybe an exponent, * and maybe a coefficient. * These expressions are Terms: * -- x^2, 2y, z, 3x/5 (PolynomialTerm) * -- nthRoot(4), 5*nthRoot(x) (NthRootTerm) * These expressions are not: 4, x^(3+4), 2+x, 3*7, x-z * Fields: * - coeff: either a constant node or a fraction of two constant nodes * (might be null if no coefficient) * - base: the base node (e.g. in x^2, the node x) * - exponent: a node that can take any form, e.g. x^(2+x^2) * (might be null if no exponent) */ export declare class Term { base: any; exponent: any; coeff: any; /** * Params: * -- node: The node from which to construct the Term * -- baseNodeFunc: A boolean function returning true if the base node * is of the right type * e.g., for PolynomialTerms, baseNodeFunc checks if the base is a symbol * for NthRootTerms, baseNodeFunc checks if the base node is an nth root * -- onlyImplicitMultiplication: If onlyImplicitMultiplication is true, * we throw an error if `node` is a term without implicit multiplication * (i.e. 2*x instead of 2x) and therefore isTerm will return false. * */ constructor(node: any, baseNodeFunc: any, onlyImplicitMultiplication?: boolean); getBaseNode(): any; getCoeffNode(defaultOne?: boolean): any; getCoeffValue(): any; getExponentNode(defaultOne?: boolean): any; /** * note: there is no exponent value getter function because the exponent * can be any expression and not necessarily a number. * * CHECKER FUNCTIONS (returns true / false for certain conditions) * * Returns true if the coefficient is a fraction * */ hasFractionCoeff(): boolean; hasCoeff(): boolean; /** * Returns if the node represents an expression that can be considered * a term with a coefficient. * */ static isTerm(node: any, baseNodeFunc: any, onlyImplicitMultiplication?: boolean): boolean; static parseNode(node: any, baseNodeFunc: any, onlyImplicitMultiplication: any): any; }