import { NodeStatus } from "../node/NodeStatus"; /** * Given a node, will check if it's in the form of a quadratic equation * `ax^2 + bx + c`, and * if it is, will factor it using one of the following rules: * - Factor out the symbol e.g. x^2 + 2x -> x(x + 2) * - Difference of squares e.g. x^2 - 4 -> (x+2)(x-2) * - Perfect square e.g. x^2 + 2x + 1 -> (x+1)^2 * - Sum/product rule e.g. x^2 + 3x + 2 -> (x+1)(x+2) * - TODO: quadratic formula * requires us simplify the following only within the parens: * a(x - (-b + sqrt(b^2 - 4ac)) / 2a)(x - (-b - sqrt(b^2 - 4ac)) / 2a) * */ export declare function factorQuadratic(node: any): NodeStatus;