Function: calcFunc-poly

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

Signature

(calcFunc-poly EXPR VAR &optional DEGREE)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calcalg2.el.gz
(defun calcFunc-poly (expr var &optional degree)
  (if degree
      (or (natnump degree) (math-reject-arg degree 'fixnatnump))
    (setq degree 50))
  (let ((p (math-is-polynomial expr var degree 'gen)))
    (if p
	(if (equal p '(0))
	    (list 'vec)
	  (cons 'vec p))
      (math-reject-arg expr "Expected a polynomial"))))