[198] | 1 | ;;; -*- Mode: Lisp; Package: Maxima; Syntax: Common-Lisp; Base: 10 -*-
|
---|
| 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 3 | ;;;
|
---|
| 4 | ;;; Copyright (C) 1999, 2002, 2009, 2015 Marek Rychlik <rychlik@u.arizona.edu>
|
---|
| 5 | ;;;
|
---|
| 6 | ;;; This program is free software; you can redistribute it and/or modify
|
---|
| 7 | ;;; it under the terms of the GNU General Public License as published by
|
---|
| 8 | ;;; the Free Software Foundation; either version 2 of the License, or
|
---|
| 9 | ;;; (at your option) any later version.
|
---|
| 10 | ;;;
|
---|
| 11 | ;;; This program is distributed in the hope that it will be useful,
|
---|
| 12 | ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | ;;; GNU General Public License for more details.
|
---|
| 15 | ;;;
|
---|
| 16 | ;;; You should have received a copy of the GNU General Public License
|
---|
| 17 | ;;; along with this program; if not, write to the Free Software
|
---|
| 18 | ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 19 | ;;;
|
---|
| 20 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 21 |
|
---|
| 22 | (defpackage "NGROBNER"
|
---|
[525] | 23 | (:use :cl :ring :monomial :order :term :polynomial :grobner-debug
|
---|
| 24 | :division :buchberger :gebauer-moeller :gb-postprocessing :ideal
|
---|
[529] | 25 | :utils :grobner-wrap)
|
---|
[212] | 26 | (:export
|
---|
[534] | 27 | ;;
|
---|
| 28 | ;; Global switches valid at maxima level
|
---|
| 29 | ;;
|
---|
[540] | 30 | "$LEX" "$GRLEX" "$GREVLEX" "$INVLEX" ;names of monomial orders
|
---|
| 31 | "$RING_OF_INTEGERS" ;name of ring of integers
|
---|
[537] | 32 | "$POLY_ELIMINATION_ORDER" "$POLY_MONOMIAL_ORDER"
|
---|
[228] | 33 | "$POLY_MONOMIAL_ORDER" "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
[537] | 34 | "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
[534] | 35 | "$POLY_SECONDARY_ELIMINATION_ORDER"
|
---|
[537] | 36 | "$POLY_RETURN_TERM_LIST"
|
---|
[534] | 37 | "$POLY_COEFFICIENT_RING"
|
---|
[538] | 38 | "$POLY_GROBNER_DEBUG" ;debugging switch
|
---|
[534] | 39 | ;;
|
---|
| 40 | ;; Global variables
|
---|
| 41 | ;;
|
---|
| 42 | "*EXPRESSION-RING*"
|
---|
[538] | 43 | "*ELIMINATION-ORDER*"
|
---|
| 44 | "*MONOMIAL-ORDER*"
|
---|
| 45 | "*PRIMARY-ELIMINATION-ORDER*"
|
---|
| 46 | "*SECONDARY-ELIMINATION-ORDER*"
|
---|
[534] | 47 | "*RATDISREP-FUN*"
|
---|
| 48 | ;;
|
---|
[535] | 49 | ;; Polynomial ring operations
|
---|
[556] | 50 | ;; Note that some require Groebner basis.
|
---|
[534] | 51 | ;;
|
---|
[539] | 52 | "POLY-ADD" "POLY-SUB" "POLY-UMINUS"
|
---|
| 53 | "POLY-MUL" "POLY-EXPT"
|
---|
| 54 | "POLY-ZEROP" "POLY-LM" "POLY-LT"
|
---|
| 55 | "POLY-PSEUDO-DIVIDE"
|
---|
| 56 | "POLY-NORMALIZE" "POLY-NORMALIZE-LIST"
|
---|
[534] | 57 | ;;
|
---|
| 58 | ;; High-level Groebner Basis related functions
|
---|
| 59 | ;;
|
---|
[539] | 60 | "FIND-ORDER" "FIND-RING"
|
---|
[534] | 61 | "NORMAL-FORM"
|
---|
| 62 | "POLY-EXACT-DIVIDE"
|
---|
| 63 | "COLON-IDEAL" "ELIMINATION-IDEAL"
|
---|
[535] | 64 | "GROBNER"
|
---|
| 65 | "REDUCED-GROBNER"
|
---|
[539] | 66 | "MINIMIZATION" "REDUCTION"
|
---|
| 67 | "POLY-LCM"
|
---|
[226] | 68 | "GROBNER-EQUAL" "GROBNER-MEMBER" "GROBNER-SUBSETP"
|
---|
| 69 | "IDEAL-INTERSECTION" "IDEAL-POLYSATURATION"
|
---|
| 70 | "IDEAL-POLYSATURATION-1" "IDEAL-SATURATION" "IDEAL-SATURATION-1"
|
---|
[554] | 71 | "BUCHBERGER" "BUCHBERGER-CRITERION"
|
---|
[534] | 72 | ;;
|
---|
| 73 | ;; Low-level functions
|
---|
| 74 | ;;
|
---|
[555] | 75 | "COERCE-COEFF" "MAKE-POLY-FROM-TERMLIST" "MAKE-POLY-ZERO"
|
---|
| 76 | "MAKE-RING" "MAKE-TERM" "MAKE-VARIABLE" "MONOM-EXPONENTS"
|
---|
| 77 | "POLY-CONTENT" "POLY-DEPENDS-P" "POLY-PRIMITIVE-PART"
|
---|
| 78 | "POLYSATURATION-EXTENSION" "POLY-TERMLIST" "RING-UNIT"
|
---|
| 79 | "SATURATION-EXTENSION" "SPOLY" "$POLY_ELIMINATION_ORDER" "TERM-COEFF"
|
---|
| 80 | "TERM-MONOM" "MAKELIST-1" "MAKELIST" "MAKE-MONOM" "LEX>" "GRLEX>"
|
---|
| 81 | "GREVLEX>" "REVLEX>" "INVLEX>" "ELIMINATION-ORDER"
|
---|
| 82 | "ELIMINATION-ORDER-1" "*PRIMARY-ELIMINATION-ORDER*"
|
---|
| 83 | "*SECONDARY-ELIMINATION-ORDER*" "*ELIMINATION-ORDER*"
|
---|
[225] | 84 | ))
|
---|
[324] | 85 |
|
---|
| 86 | (in-package :ngrobner)
|
---|
| 87 |
|
---|
| 88 |
|
---|