[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/calc/calc-poly.el
From: |
Colin Walters |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/calc/calc-poly.el |
Date: |
Mon, 19 Nov 2001 02:37:20 -0500 |
Index: emacs/lisp/calc/calc-poly.el
diff -u emacs/lisp/calc/calc-poly.el:1.2 emacs/lisp/calc/calc-poly.el:1.3
--- emacs/lisp/calc/calc-poly.el:1.2 Wed Nov 14 04:06:36 2001
+++ emacs/lisp/calc/calc-poly.el Mon Nov 19 02:37:19 2001
@@ -1,6 +1,9 @@
-;; Calculator for GNU Emacs, part II [calc-poly.el]
+;;; calc-poly.el --- polynomial functions for Calc
+
;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
-;; Written by Dave Gillespie, address@hidden
+
+;; Author: David Gillespie <address@hidden>
+;; Maintainer: Colin Walters <address@hidden>
;; This file is part of GNU Emacs.
@@ -19,7 +22,9 @@
;; file named COPYING. Among other things, the copyright notice
;; and this notice must be preserved on all copies.
+;;; Commentary:
+;;; Code:
;; This file is autoloaded from calc-ext.el.
(require 'calc-ext)
@@ -133,7 +138,7 @@
;;; Originally by Ove Ewerlid (address@hidden).
;;; Modifications and simplifications by daveg.
-(setq math-poly-modulus 1)
+(defvar math-poly-modulus 1)
;;; Return gcd of two polynomials
(defun calcFunc-pgcd (pn pd)
@@ -233,11 +238,11 @@
;;; Divide two polynomials. Return (quotient . remainder).
+(defvar math-poly-div-base nil)
(defun math-poly-div (u v &optional math-poly-div-base)
(if math-poly-div-base
(math-do-poly-div u v)
(math-do-poly-div (calcFunc-expand u) (calcFunc-expand v))))
-(setq math-poly-div-base nil)
(defun math-poly-div-exact (u v &optional base)
(let ((res (math-poly-div u v base)))