Singular in Sage. MCS 507 Lecture 40 Mathematical, Statistical and Scientific Software Jan Verschelde, 23 November 2011

Similar documents
Prologue: General Remarks on Computer Algebra Systems

Rewriting Polynomials

MCS 563 Spring 2014 Analytic Symbolic Computation Monday 27 January. Gröbner bases

Anatomy of SINGULAR talk at p. 1

Computation of the Minimal Associated Primes

An Introduction to Computer Algebra System SINGULAR. Part I

Gröbner Bases. eliminating the leading term Buchberger s criterion and algorithm. construct wavelet filters

Rational Univariate Representation

SINGULAR. SINGULAR and Applications SINGULAR SINGULAR

Introduction to Computational Algebraic Geometry. Jan Verschelde

Polynomials and Gröbner Bases

arxiv: v1 [math.ac] 14 Sep 2016

SOLVING VIA MODULAR METHODS

NAME DATE PERIOD. A negative exponent is the result of repeated division. Extending the pattern below shows that 4 1 = 1 4 or 1. Example: 6 4 = 1 6 4

,,, SUDOKUS AND GRÖBNER BASES: NOT ONLY A DIVERTIMENTO

strings, dictionaries, and files

Sparse Polynomial Multiplication and Division in Maple 14

higher arithmetic with PARI/GP

SINGULAR: Using and Programming

higher arithmetic with PARI/GP

1.2. Indices. Introduction. Prerequisites. Learning Outcomes

New developments in Singular

Polynomial multiplication and division using heap.

MCS 563 Spring 2014 Analytic Symbolic Computation Friday 31 January. Quotient Rings

Polynomials, Ideals, and Gröbner Bases

Sudokus and Gröbner bases: not only a Divertimento

Algebraic Varieties. Notes by Mateusz Micha lek for the lecture on April 17, 2018, in the IMPRS Ringvorlesung Introduction to Nonlinear Algebra

New Gröbner Bases for formal verification and cryptography


Abstract Algebra for Polynomial Operations. Maya Mohsin Ahmed

QR Decomposition. When solving an overdetermined system by projection (or a least squares solution) often the following method is used:

16.41 NCPOLY: Non commutative polynomial ideals

On a class of squarefree monomial ideals of linear type

Computing Minimal Polynomial of Matrices over Algebraic Extension Fields

Modular Algorithms for Computing Minimal Associated Primes and Radicals of Polynomial Ideals. Masayuki Noro. Toru Aoyama

Algebraic Equations for Blocking Probabilities in Asymmetric Networks

Polynomial Rings. i=0. i=0. n+m. i=0. k=0

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions

FastTrack - MA109. Exponents and Review of Polynomials

UNIT 4 NOTES: PROPERTIES & EXPRESSIONS

MATHEMATICS Lecture. 4 Chapter.8 TECHNIQUES OF INTEGRATION By Dr. Mohammed Ramidh

MA 180 Lecture. Chapter 0. College Algebra and Calculus by Larson/Hodgkins. Fundamental Concepts of Algebra

Permutations and Polynomials Sarah Kitchen February 7, 2006

Monomial orderings, rewriting systems, and Gröbner bases for the commutator ideal of a free algebra

SECTION 1-5 Integer Exponents

MCS 563 Spring 2014 Analytic Symbolic Computation Monday 14 April. Binomial Ideals

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. College Algebra for STEM

27 Wyner Math 2 Spring 2019

Section 2.1: Reduce Rational Expressions

Depth and Stanley depth of the canonical form of a factor of monomial ideals

2.3 Solving Equations Containing Fractions and Decimals

Noncommutative Extensions of SINGULAR

Chapter 9: Systems of Equations and Inequalities

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

Indices Learning Outcomes

Tropical Algebraic Geometry 3

Lecture 2: Gröbner Basis and SAGBI Basis

1.2. Indices. Introduction. Prerequisites. Learning Outcomes

REVIEW Chapter 1 The Real Number System

Factoring and Algebraic Fractions

Groebner Bases and Applications

MAC 1105 Lecture Outlines for Ms. Blackwelder s lecture classes

CHAPTER 8A- RATIONAL FUNCTIONS AND RADICAL FUNCTIONS Section Multiplying and Dividing Rational Expressions

Prentice Hall Mathematics Common Core Course

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

GRÖBNER BASES AND POLYNOMIAL EQUATIONS. 1. Introduction and preliminaries on Gróbner bases

15. Polynomial rings Definition-Lemma Let R be a ring and let x be an indeterminate.

Arithmetic Operations. The real numbers have the following properties: In particular, putting a 1 in the Distributive Law, we get

correlated to the Utah 2007 Secondary Math Core Curriculum Algebra 1

Linear Equations & Inequalities Definitions

Chapter 1: Foundations for Algebra

Week 12: Optimisation and Course Review.

Adding and Subtracting Terms

Essentials of Intermediate Algebra

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

Common Core Algebra 2 Review Session 1

Class VIII Chapter 1 Rational Numbers Maths. Exercise 1.1

ALGEBRA I FORM I. Textbook: Algebra, Second Edition;Prentice Hall,2002

7.5 Rationalizing Denominators and Numerators of Radical Expressions

Computational methods in the study of symplectic quotients

What is a constant? A Constant is a number representing a quantity or value that does not change.

Core Mathematics 2 Algebra

Quadrics Defined by Skew-Symmetric Matrices

Section 1.1 Notes. Real Numbers

Chapter 7: Exponents

FOR GRASSMAN ALGEBRAS IN A MAPLE PACKAGE MR. TROY BRACHEY. Tennessee Tech University OCTOBER No

Properties of Real Numbers

Algebra 2 Early 1 st Quarter

From Gauss. to Gröbner Bases. John Perry. The University of Southern Mississippi. From Gauss to Gröbner Bases p.

P.1 Prerequisite skills Basic Algebra Skills

Linear Algebra. Min Yan

Welcome to Math Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013

P.1: Algebraic Expressions, Mathematical Models, and Real Numbers

Course Title: Algebra I Topic/Concept: Foundations of Algebra Time Allotment: 14 days Unit Sequence: 1 Major Concepts to be learned:

1. Algebra 1.5. Polynomial Rings

Common Core State Standards for Mathematics Bid Category

Theory of Computation

6 th grade 7 th grade Course 2 7 th grade - Accelerated 8 th grade Pre-Algebra 8 th grade Algebra

A brief introduction to computational algebraic geometry

Hilbert Polynomials. dimension and counting monomials. a Gröbner basis for I reduces to in > (I)

Transcription:

bases Singular in Sage 1 2 bases MCS 507 Lecture 40 Mathematical, Statistical Scientific Software Jan Verschelde, 23 November 2011

Singular in Sage bases 1 2 bases

bases Singular Singular is a computer algebra system for, with special emphasis on commutative non-commutative algebra, algebraic geometry, singularity theory, under the GNU General Public License. Singular s core algorithms hle factorization resultants characteristic sets numerical root finding, stard bases, free resolutions. Its development is directed by Wolfram Decker, Gert-Martin Greuel, Gerhard Pfister, Hans Schönemann, within the Dept. of Mathematics at the University of Kaiserslautern. page 3

bases Singular in Sage Advanced algorithms are contained in more than 90 libraries, written in a C-like programming language. For visualization of plane curves surfaces, the software surf surfex need to be installed. We run Singular explicitly in Sage via 1 the class Singular, do help(singular); or 2 opening a Terminal Session with Singular, type singular_console(); in a Sage terminal. page 4

Singular in Sage bases 1 2 bases

bases rings of s Before we enter a in Singular, we must first decide on 1 the type of the coefficients, 2 names order of the variables, 3 which order will be used for the monomials. In a Singular console, at the prompt > we type > ring r = 0, (x,y), Dp; We declared a ring r over the rational numbers (characteristic 0), for s in x y, in the degree lexicographic ordering (as in a dictionary). page 6

bases entering s > poly p = 4*y^2-4 + 4*x*y + x^2; > p; x2+4xy+4y2-4 We see p shown in the degree lexicographic order: first the highest degree monomials (x2 = x 2 ), with those with highest powers of x appearing first. Then we define a second q: > poly q = 4*x^2-4*x*y + y^2-4; The s p q define a system. page 7

bases > p; x2+4xy+4y2-4 > q; 4x2-4xy+y2-4 elimination with a resultant To eliminate x from the system p(x,y) = 0 = q(x,y): > poly rx = resultant(p,q,x); > rx; 625y4-1000y2+144 All values for y for which p(x,y) = 0 = q(x,y) also make resultant(p,q,x) zero. page 8

bases loading a library > LIB "solve.lib"; // ** loaded /usr/local/sage-4.7.1/local/share/\ singular/solve.lib (12231,2009-11-02) // **../singular/triang.lib (12231,2009-11-02) // **../singular/elim.lib (12231,2009-11-02) // **../singular/ring.lib (12231,2009-11-02) // **../singular/primdec.lib (12962,2010-07-09) // **../singular/absfact.lib (12231,2009-11-02) // **../singular/matrix.lib (12898,2010-06-23) // **../singular/nctools.lib (12790,2010-05-14) // **../singular/rom.lib (12827,2010-05-28) // **../singular/poly.lib (12443,2010-01-19) // **../singular/inout.lib (12541,2010-02-09) // **../singular/general.lib (12904,2010-06-24) page 9

bases We ask to compute all roots with 10 decimal places of precision: computing all roots > list L = laguerre_solve(rx,10); > L; [1]: -1.2 [2]: -0.4 [3]: 0.4 [4]: 1.2 page 10

bases Root finding is related to factorization: factorization > LIB "factor.lib"; // ** loaded /usr/local/sage-4.7.1/local/share/\ singular/factor.lib (12231,2009-11-02) > factorize(rx); [1]: _[1]=1 _[2]=5y+2 _[3]=5y-2 _[4]=5y-6 _[5]=5y+6 [2]: 1,1,1,1,1 The factors give the exact roots: ± 2 5, ± 6 5. page 11

bases > solve([p,q]); [1]: [1]: 0.4 [2]: -1.2 [2]: [1]: -1.2 [2]: -0.4 [3]: [1]: 1.2 [2]: 0.4 [4]: [1]: -0.4 [2]: 1.2 solving a system The four solutions are (+0.4, 1.2), ( 1.2, 0.4), ( 0, 4, +1.2), (+1.2, +0.4). page 12

bases an explanation // solve created a ring, in which a list SOL // of numbers (the complex solutions) is stored. // To access the list of complex solutions, // type (if the name R was assigned // to the return value): setring R; SOL; // characteristic : 0 (complex:8 digits, // additional 8 digits) // 1 parameter : i // minpoly : (i^2+1) // number of vars : 2 // block 1 : ordering lp // : names x y // block 2 : ordering C page 13

Singular in Sage bases 1 2 bases

bases bases for ideals Given a set S of s, we call the set of all combinations of the s in S an ideal. For p q (as before), we define the ideal I as > ideal I = p,q; A basis solves the membership problem: Given any f, does f belong to I? > ideal g = groebner(i); > g; g[1]=20xy+15y2-12 g[2]=4x2-4xy+y2-4 g[3]=125y3+48x-164y page 15

bases changing rings A lexicographic monomial order eliminates variables the resulting basis has a triangular form. A lexicographic monomial order in Singular is lp: > ring s = 0, (x,y), lp; After this ring definition, the current ring becomes s the ideal I does not exist in this ring. To return to the original ring r, we type > setring r; page 16

bases reduced stard basis After returning to the ring r, we have > I; I[1]=x2+4xy+4y2-4 I[2]=4x2-4xy+y2-4 Before converting to a lexicographic order, we must force the computation of a reduced stard basis: > option(redsb); > I = std(i); > I; I[1]=20xy+15y2-12 I[2]=5x2+5y2-8 I[3]=125y3+48x-164y page 17

bases converting to lex order Instead of computing a basis in the ring s from scratch, we convert with the FGLM Algorithm: > setring s; > ideal J = fglm(r,i); > J; J[1]=625y4-1000y2+144 J[2]=48x+125y3-164y We see that after conversion we get a triangular form. page 18

Singular in Sage bases 1 2 bases

> setring r; > g; g[1]=20xy+15y2-12 g[2]=4x2-4xy+y2-4 g[3]=125y3+48x-164y normal forms bases With a basis g we can rewrite any modulo the ideal into a unique normal form: > reduce(x^2,g); -y2+8/5 > reduce(x*y,g); -3/4y2+3/5 > reduce(x*y^2,g); 36/125x-48/125y Monomials returned by reduce are 1, x, y, y 2. page 20

bases the library rootsmr.lib For a system with finitely many solutions, say N, the number of different monomials that can appear in the outcome of reduce equals N. > LIB "rootsmr.lib"; // ** loaded /usr/local/sage-4.7.1/local/share/\ singular/rootsmr.lib // **../singular/rootsur.lib // **../singular/linalg.lib (12258,2009-11-09) With the rootsmr.lib written by Enrique A. Tobis, we can compute the generalization of a companion matrix for several variables. page 21

bases the quotient ring A basis for the quotient ring is computed as > ideal B = qbase(i); > B; B[1]=y2 B[2]=x B[3]=y B[4]=1 Because the system defined by p q has four solutions, the computation modulo p q defines a four dimensional quotient ring. page 22

bases > matrix m = matmult(x,b,i); > print(m); 0, -1, -3/4,0, 36/125, 0, 0, 1, -48/125,0, 0, 0, 0, 8/5,3/5, 0 a matrix The columns of the matrix m contain the normal forms of the multiples of the basis elements in B with x. Recall > reduce(x*y^2,g); 36/125x-48/125y We constructed the eigenvalue problem x B = m B. page 23

bases eigenvalues of m The eigenvalues of the matrix give the values for the x coordinate of the solutions. > eigenvals(m); [1]: _[1]=-6/5 _[2]=-2/5 _[3]=2/5 _[4]=6/5 [2]: 1,1,1,1 To avoid introducing multiplicities, one should take a rom linear form instead of multiplying with x. page 24

bases Summary + Exercises In addition to the online manual, there is A Singular Introduction to Commutative Algebra by Gert-Martin Greuel Gerhard Pfister, 2nd edition, Springer-Verlag, 2008. 1 Compute a resultant from within a Sage session. 2 Install the software surf surfex explore the plotting of algebraic plane curves surfaces. Final Project due Friday 9 December at 10:30AM. page 25