user_guide:tutorials:polynomials_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:polynomials_tutorial [2017/07/06 15:42] – rewrote first part. oroehriguser_guide:tutorials:polynomials_tutorial [2019/01/25 09:38] – ↷ Page moved from user_guide:polynomials_tutorial to user_guide:tutorials:polynomials_tutorial oroehrig
Line 4: Line 4:
 </code> </code>
  
-===== Basic Usage of Polynomials in Perl =====+===== Usage of Polynomials in Perl =====
 ===Constructors=== ===Constructors===
 The easiest way to create a simple [[https://polymake.org/release_docs/master/common.html#common__Polynomial__339 | Polynomial]] object is through a string: The easiest way to create a simple [[https://polymake.org/release_docs/master/common.html#common__Polynomial__339 | Polynomial]] object is through a string:
Line 46: Line 46:
 </code> </code>
  
-===Newton Polynomials===+===Example: Newton Polynomials===
 Here is one way to produce polytopes from polynomials (as the convex hull of the exponent vectors of all terms). Here is one way to produce polytopes from polynomials (as the convex hull of the exponent vectors of all terms).
 <code> <code>
Line 60: Line 60:
 The final "1" means "true": The Newton polytope of the product of two polynomials always equals the Minkowski sum of the Newton polytopes of the factors. The final "1" means "true": The Newton polytope of the product of two polynomials always equals the Minkowski sum of the Newton polytopes of the factors.
  
-===== Example: Toric Degeneration =====+=== Example: Toric Degeneration ===
  
 The following describes how to construct the polynomial which describes the toric deformation with respect to a point configuration and a height function.  This is the input data: The following describes how to construct the polynomial which describes the toric deformation with respect to a point configuration and a height function.  This is the input data:
Line 73: Line 73:
  
 <code> <code>
-polytope > @vars = ( "s", map { "x$_" } (1..$points->rows()) ); +polytope > $p = new Polynomial($coefficients,$height|$points);
-polytope > $R = new Ring(@vars); +
-polytope > $p = new Polynomial($height|$points,$coefficients,$R);+
 </code> </code>
  
  • user_guide/tutorials/polynomials_tutorial.txt
  • Last modified: 2019/02/04 22:55
  • by 127.0.0.1