[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 | ;;
|
---|
[533] | 30 | "$LEX" "$GRLEX" "$GREVLEX" "$INVLEX" "$RING_OF_INTEGERS"
|
---|
[228] | 31 | "$POLY_ELIMINATION_ORDER" "$POLY_MONOMIAL_ORDER"
|
---|
| 32 | "$POLY_MONOMIAL_ORDER" "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
[246] | 33 | "$POLY_PRIMARY_ELIMINATION_ORDER" "$POLY_RETURN_TERM_LIST"
|
---|
[534] | 34 | "$POLY_SECONDARY_ELIMINATION_ORDER"
|
---|
| 35 | "$POLY_COEFFICIENT_RING"
|
---|
| 36 | ;;
|
---|
| 37 | ;; Global variables
|
---|
| 38 | ;;
|
---|
| 39 | "*EXPRESSION-RING*"
|
---|
[235] | 40 | "*ELIMINATION-ORDER*" "*MONOMIAL-ORDER*"
|
---|
[228] | 41 | "*PRIMARY-ELIMINATION-ORDER*" "*SECONDARY-ELIMINATION-ORDER*"
|
---|
[534] | 42 | "*RATDISREP-FUN*"
|
---|
| 43 | ;;
|
---|
[535] | 44 | ;; Polynomial ring operations
|
---|
[534] | 45 | ;;
|
---|
| 46 | "POLY-ADD" "POLY-MUL" "POLY-NORMALIZE" "POLY-NORMALIZE-LIST"
|
---|
| 47 | "POLY-ZEROP" "POLY-EXPT" "POLY-LCM" "POLY-LM" "POLY-LT"
|
---|
[535] | 48 | "POLY-PSEUDO-DIVIDE" "POLY-SUB" "POLY-UMINUS"
|
---|
[534] | 49 | ;;
|
---|
| 50 | ;; High-level Groebner Basis related functions
|
---|
| 51 | ;;
|
---|
| 52 | "NORMAL-FORM"
|
---|
| 53 | "POLY-EXACT-DIVIDE"
|
---|
| 54 | "COLON-IDEAL" "ELIMINATION-IDEAL"
|
---|
[535] | 55 | "GROBNER"
|
---|
| 56 | "REDUCED-GROBNER"
|
---|
| 57 | "FIND-ORDER" "FIND-RING"
|
---|
[226] | 58 | "GROBNER-EQUAL" "GROBNER-MEMBER" "GROBNER-SUBSETP"
|
---|
| 59 | "IDEAL-INTERSECTION" "IDEAL-POLYSATURATION"
|
---|
| 60 | "IDEAL-POLYSATURATION-1" "IDEAL-SATURATION" "IDEAL-SATURATION-1"
|
---|
[535] | 61 | "MINIMIZATION" "REDUCTION"
|
---|
| 62 |
|
---|
[534] | 63 | ;;
|
---|
| 64 | ;; Low-level functions
|
---|
| 65 | ;;
|
---|
| 66 | "COERCE-COEFF" "MAKE-POLY-FROM-TERMLIST" "MAKE-POLY-ZERO" "MAKE-RING" "MAKE-TERM"
|
---|
| 67 | "MAKE-VARIABLE"
|
---|
[246] | 68 | "MONOM-EXPONENTS" "POLY-CONTENT" "POLY-DEPENDS-P"
|
---|
[535] | 69 | "POLY-PRIMITIVE-PART"
|
---|
[534] | 70 | "POLYSATURATION-EXTENSION" "POLY-TERMLIST"
|
---|
[535] | 71 | "RING-UNIT" "SATURATION-EXTENSION"
|
---|
[534] | 72 | "SPOLY" "$POLY_ELIMINATION_ORDER"
|
---|
[306] | 73 | "TERM-COEFF" "TERM-MONOM" "$POLY_GROBNER_DEBUG" "MAKELIST-1" "MAKELIST"
|
---|
[348] | 74 | "MAKE-MONOM" "LEX>" "GRLEX>" "GREVLEX>" "REVLEX>" "INVLEX>"
|
---|
[350] | 75 | "ELIMINATION-ORDER" "ELIMINATION-ORDER-1"
|
---|
[351] | 76 | "*PRIMARY-ELIMINATION-ORDER*"
|
---|
| 77 | "*SECONDARY-ELIMINATION-ORDER*"
|
---|
[533] | 78 | "*ELIMINATION-ORDER*"
|
---|
[225] | 79 | ))
|
---|
[324] | 80 |
|
---|
| 81 | (in-package :ngrobner)
|
---|
| 82 |
|
---|
| 83 | (defun compile-ngrobner ()
|
---|
[325] | 84 | "Compile/load NGROBNER package files without ASDF. The order of files is
|
---|
[324] | 85 | important!"
|
---|
| 86 | (dolist (file '("ngrobner-package" "utils" "ngrobner" "monomial"
|
---|
[442] | 87 | "order" "term" "termlist" "polynomial" "priority-queue"
|
---|
[324] | 88 | "pair-queue" "division" "criterion" "buchberger" "gebauer-moeller"
|
---|
| 89 | "gb-postprocessing" "ideal"))
|
---|
[327] | 90 | (compile-file file :verbose t :print t)))
|
---|
[324] | 91 |
|
---|