UNPKG

nerdamer-ts

Version:

javascript light-weight symbolic math expression evaluator

17 lines (16 loc) 495 B
/** * Gets called when the parser finds the ^ operator. See this.add * @param {Symbol} a * @param {Symbol} b * @returns {Symbol} */ export function pow(a: Symbol, b: Symbol): Symbol; /** * Calculates prime factors for a number. It first checks if the number * is a prime number. If it's not then it will calculate all the primes * for that number. * @param {int} num * @returns {Array} */ export function primeFactors(num: any): any[]; import { Symbol } from "../../../Types/Symbol";