Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  chap3.html   Sprache: HTML

 

 products/Sources/formale Sprachen/GAP/pkg/normalizinterface/doc/chap3.html


<?xml version<xml version="10 encoding="8?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (NormalizInterface) - Chapter 3: Examples</title>
<meta http"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict."
<java.lang.StringIndexOutOfBoundsException: Range [43, 5) out of bounds for length 47
<link rel="tylesheet ="/css m.css" /
<script src="manual.js" type="textPDoc2HTML" />
<script type="text/javascript">overwriteStyle();</script>
</head>
<< rel=stylesheet"css"hrefm. >


<scriptsrc"anual.s type=text/">/>

<div class="chlinkprevnexttop"> <a href="chap0.html">[Top of Book]</a>&java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 57

<p id="java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
<=java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62
<>3 <span">java.lang.StringIndexOutOfBoundsException: Range [95, 94) out of bounds for length 105
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3.html#X7BD5B55C802805B4">3.1 <span class="Heading">Generators</span></a>
<span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3.html#X872A3FB37D6D7DFE">3.2 <span class="Heading">System of equations</span></a>
</span>
</div>
<div class=<p><a id"X7A489A5D79DA9E5C"name="</>/>
</java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3.html#X7B191A1778012C1D">3.4 <span class="Heading">Combined input</span></a>
</span>
</div>
< =""class"ocss"&bsp<span<href"hap3.#X8406B01578B99D14">3. < ="eading>Using   mode/span></a>
</span>
</div>
</div>

<h3>3 <span class="Heading">Examples</</iv>

<p><a id="X7BD5B55C802805B4/span>

<h4>3.1 <span class="Heading">Generators</span></h4>


<class="example"><pre>
<span class="GAPprompt">gap></span> <span class=</pan>
< Normaliz cone>
<span class="GAPprompt">gap></java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 7
alse
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHasConeProperty(C,"SupportHyperplanes");</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzConeProperty(C,"HilbertBasis");java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
[[
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHasConeProperty(C,"SupportHyperplanes");</span>
rue
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzConeProperty(C,"SupportHyperplanes");</java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 23
[ [-, 2 ] [3,-1  ]
</pre></div>

<p><a id="X872A3FB37D6D7DFE" name="X872A3FB37D6D7DFE"></a></p>

<h4>3.2 <span class="Heading">System of equations</java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 5


<div class="example"><pre>
<span java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
&ta Normaliz cone&t
<span class="GAPprompt">gap></span> 1 1],[1,2 ] [, 3 ] [2,1  ]
true
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHilbertBasis(D);</span>
[ ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHilbertSeries(D);</span>
[ t<pre>/div>
<span ="APprompt">gap></span> <span class="GAPinput">NmzHasConeProperty(D,"SupportHyperplanes");</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzSupportHyperplanes(D);</span>
 [ 0,1,0 , [ 1 0, 0 ]]
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzEquations(D);</span>
[[ 1,2,-3 ] ]
</pre></div>

<p><a id="X8570F3C87B5B7DD7" name="span class="GAPprompt">gap></span> <span class">mzComputeD,"DualMode","HilbertSeries"]);</span>

<h4>3.3 <span class="Heading">System of inhomogeneous equations</span></h4>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">P := NmzCone(<pan class==GAPprompt">gap></span> <span class="GAPinput">NmzHilbertSeries(D);</span>
<spanclass="GAPprompt">gap></span> <span class="GAPinput">NmzHasConeProperty(D,"SupportHyperplanes");</span>
<java.lang.StringIndexOutOfBoundsException: Range [82, 5) out of bounds for length 91
false
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzIsInhomogeneous(P);</span>
rue
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHilbertBasis(P);</span>
 [1,1,1,0 ],[ , 0,1,0 ], [0, 3,2 0] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzModuleGenerators(P);</span>
[ [ 0, 1, 1, 1 ], <pre><div
</pre></div>

<p><a id="X7B191A1778012C1D" name="X7B191A1778012C1D"></a></p>

<h4>3.4 <span class="Heading">Combined input</span></h4>

<p>Normaliz also allows the combination of different kinds of input, e.g. multiplespan class="GAPprompt">gap></span> <span class="GAPinput">P := NmzCone(["inhom_equations&ta Normaliz cone>

<p>Suppose that you have a 3 by 3 <q>square</q> of nonnegative integers such that the 3 numbers in all rows, all columns, and both diagonals 


<div class="example"><pre>
<spantrue
<span class="APprompt">></span> <span class="GAPinput">[ [1, 1, 1,  -1, -1, -1,   0,  0,  0],</span>
<span classspanclass=G>><span spanclass"();/>
<span class=GAPprompt"gt;/span> <pan class="GAPinput">  [0, 1, 1,  -1,  0,  0,  -1,  0,  0],</span>
<span class="GAPprompt">></span> <span class="GAPinput">  [1, 0, 1,   0, -1,  0,   0, -1,  0],</span>
<span class=GAPprompt">></span> <span class="GAPinput">  [1, 1, 0,   0,  0, -1,   0,  0, -1],</span>
<="GAPprompt>gt</pan><span class=GAPinput">  [0, 1, 1,   0, -1,  0,   0,  0, -1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">  [1, 1, 0,   0, -1,  0,  -1,  0,  0] ],</span>
<span class=GAPprompt">></span> <span class="GAPinput">"congruences",</span>
<span class="GAPprompt">></span> <span class="GAPinput">[ [1, 0, 0,   0, 0, 0,   0, 0, 0,  2],</span>
<span class="GAPprompt">></<span class="GAPprompt">gap></s class"GAPinput">Magic3x3even := NmzCone(["equations",</span>
<span class="APprompt">></span> <span class="GAPinput">  [0, 0, 0,   0, 0, 0,   1, 0, 0,  2],</span>
<span class="GAPprompt">></span> <span class="GAPinput">  [0, 0, 0,   0, 0, 0,   0, 0, 1,  2] ],</span>
<span class="GAPprompt">></span> <span class="GAPinput">"grading",</span>
<span class="GAPprompt">></span> <span class="GAPinput">[ [1, 1, 1,   0, 0, 0,   0, 0, 0] ] ] );<<pan class="GAPprompt">></span> <span class="GAPinput">  [1, 0, 1,   0, -1,  0,   0, -1,  1]<span>
&;
<span class="GAPprompt">gap><<panclass="APprompt">></span> <span class="GAPinput">[ [1, 0, 0,   0, 0, 0,   0, 0, 0,  2],</span>
[ [ 0, 4, 2, 4, 2, 0, 2, 0, 4 ], [ 2, 0, 4, 4, 2, 0, 0, 4, 2 ], 
  [ 2, 2, 2, span ="APprompt">gt;</span> <span class="GAPinput">  [0 , 0,   0 0 0 0,0,1  2]],</pan>
  [ 4, 0, 2, 0, 2, 4, 2, 4, 0 ], [ 2, 3, 4, 5, 3, 1, 2, 3, 4 ], 
  [ 2, 5, 2, 3, 3, 3, 4, 1, 4 ], [ 4, 1, 4, 3, 3, 3, 2, 5, 2 ], 
  [ 4, 3, 2, 1, 3, 5, 4, 3, 2 ] ]
<span class  [2 2 2 2, 2 2,2,,2 ] [2,4,0,0,2,4 ,0,2 ], 
[ t^3+3*t^2-t+1, [ [ 1, 1 ], [ 2, 2 ] ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHilbertQuasiPolynomial(Magic3x3even);</span>
[ 1/2*t^2+t+1, 1/2*t^2-1/2 ]
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 12

<p><a id="X8406B01578B99D14" name="X8406B01578B99D14"[t^3*^2-t+1 [[1,  ]  2,2  ]]

<h4>3.5 <span class="Heading">Using the dual mode</span></h4>

<p>For solving systems of equations and inequalities it is often faster to use the dual Normaliz algorithm. We demonstrate how to use it with an inhomogeneous system of equations and inequalities.</p>

<p> input consistsa  8 inhomogeneous  in R3. first row of matrixM the inequality <span class=SimpleMath"8x + 8y+  +7 ≥<span. Additionally we say that <span class="SimpleMath">x, y, z</span> should be non-negative by giving the sign vector and use the total degree.</p>


java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<class&;/><span=GAPinput>M = [span>
<span class="GAPprompt">></span> <span class="GAPinput"> [ 8,  8,  8,  7 ],
<span class=">gt;<span> <span =GAPinput" [ 0,4  ,  1 ]/>
<span class="GAPprompt">></span> <span class="GAPinput"> [ 0,  1,  0,  7 ],</span>
<span class
<class"">gt;/pan> <span class="GAPinput" [, -,0,  1 ,/span
<class=">gt;</span> <span class="GAPinput"> [ 8, 48,  8, 17 ],</span>
<span class="GAPprompt">></span> <span class="GAPinput"> [ 1,  6,  1, 34 ],</span>
<span class="GAPprompt">></span> <span class="GAPinput"> [ 2,-12, -2, 37 ],</span>
<span class="GAPprompt">></span> <span class="GAPinput"> [ 4,-24, -4, 14 ]</span>
<span class="GAPprompt">></span> <span class="GAPinput">];;</span>
<pan="GAPprompt">gap></span> <span class="GAPinput">D := NmzCone(["inhom_inequalities", M,</span>
<span class="GAPprompt">></span> <span class="GAPinput">              "signs", [[1,1,1]],</span> class="APprompt">></span> <spanclass"APinput" [8,48, 8,17 ]<span
<span class="GAPprompt">></span> <span class="GAPinput">              "grading", [[1,1,1]]]);</span>
<a Normaliz cone>
<span class="GAPprompt">gap></span> <span class="GAPprompt">></span> <span class];;</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzHilbertBasis(D);</span>
[ spanclass="GAPprompt">></span> <span class="GAPinput">              "signs", [[1,1,1]],</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">NmzModuleGenerators(D);</span>
[ [ 0, 0, 0, 1 ], [ 0span class="GAPprompt">gap></span> <span class="GAPinput">NmzCompute(D,["DualMode","HilbertBasis","ModuleGenerators"]);</span>
</pre></div>

<p>As result we get the Hilbert basis ofspan class=GAPprompt"gapgt;/span><span class="GAPinput">NmzModuleGenerators(D);</span>


<div class="java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 12


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

<hr />
<p class="foot">generated by <a href="https://wwwjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<body>
</html>

Messung V0.5 in Prozent
C=94 H=93 G=93

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....
    

Besucher

Besucher

Statistik
#Sources=1128594
#Domains=1976912