emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calc/calc-poly.el,v


From: David Kastrup
Subject: [Emacs-diffs] Changes to emacs/lisp/calc/calc-poly.el,v
Date: Mon, 25 Jun 2007 20:55:58 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     David Kastrup <dak>     07/06/25 20:55:57

Index: calc/calc-poly.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calc/calc-poly.el,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- calc/calc-poly.el   23 Apr 2007 21:24:44 -0000      1.20
+++ calc/calc-poly.el   25 Jun 2007 20:55:55 -0000      1.21
@@ -982,10 +982,16 @@
 
 
 (defun math-padded-polynomial (expr var deg)
+  "Return a polynomial as list of coefficients.
+If EXPR is of the form \"a + bx + cx^2 + ...\" in the variable VAR, return
+the list (a b c ...) with at least DEG elements, else return NIL."
   (let ((p (math-is-polynomial expr var deg)))
     (append p (make-list (- deg (length p)) 0))))
 
 (defun math-partial-fractions (r den var)
+  "Return R divided by DEN expressed in partial fractions of VAR.
+All whole factors of DEN have already been split off from R.
+If no partial fraction representation can be found, return nil."
   (let* ((fden (calcFunc-factors den var))
         (tdeg (math-polynomial-p den var))
         (fp fden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]