Function: calcFunc-factors

calcFunc-factors is an autoloaded and byte-compiled function defined in calc-poly.el.gz.

Signature

(calcFunc-factors EXPR &optional VAR)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-poly.el.gz
(defun calcFunc-factors (expr &optional var)
  (let ((math-factored-vars (if var t nil))
	(math-to-list t)
	(calc-prefer-frac t))
    (or var
	(setq var (math-polynomial-base expr)))
    (let ((res (math-factor-finish
		(or (catch 'factor
                      (let ((math-fact-expr expr)) (math-factor-expr-try var)))
		    expr))))
      (math-simplify (if (math-vectorp res)
			 res
		       (list 'vec (list 'vec res 1)))))))