<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Elementarsymmetrische Polynome]]></title><description><![CDATA[<p>Hier<br />
<a href="http://de.wikipedia.org/wiki/Symmetrisches_Polynom#Elementarsymmetrische_Polynome" rel="nofollow">http://de.wikipedia.org/wiki/Symmetrisches_Polynom#Elementarsymmetrische_Polynome</a><br />
habe ich die mathematische Formel gefunden, mit der ich etwas berechnen möchte.</p>
<p>Weiss einer, wie ich die einzelnen σ programmtechnisch einfach bestimmen kann? Gibt es da schon fertige Funktionen?<br />
Die X,n habe ich, die σ,n möchte ich berrechnen.</p>
<p>PS: In meinem Programm ist das n auch variabel, also kann man nicht im Vorraus sagen es gibt zum Bsp 5 Elemente...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/293963/elementarsymmetrische-polynome</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 04:00:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/293963.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Oct 2011 10:43:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 10:43:56 GMT]]></title><description><![CDATA[<p>Hier<br />
<a href="http://de.wikipedia.org/wiki/Symmetrisches_Polynom#Elementarsymmetrische_Polynome" rel="nofollow">http://de.wikipedia.org/wiki/Symmetrisches_Polynom#Elementarsymmetrische_Polynome</a><br />
habe ich die mathematische Formel gefunden, mit der ich etwas berechnen möchte.</p>
<p>Weiss einer, wie ich die einzelnen σ programmtechnisch einfach bestimmen kann? Gibt es da schon fertige Funktionen?<br />
Die X,n habe ich, die σ,n möchte ich berrechnen.</p>
<p>PS: In meinem Programm ist das n auch variabel, also kann man nicht im Vorraus sagen es gibt zum Bsp 5 Elemente...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131346</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Fri, 14 Oct 2011 10:43:56 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 11:20:31 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Unten steht doch die allgemeine Formel für beliebiges k. Wo ist das Problem? Kennst du keine Schleifen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131366</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 14 Oct 2011 11:20:31 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 11:23:12 GMT]]></title><description><![CDATA[<p>Wahrscheinlich kennt er den Buchstaben 'k' nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131368</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Fri, 14 Oct 2011 11:23:12 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 11:55:22 GMT]]></title><description><![CDATA[<p>Doch, Schleifen hab ich schonmal kennengelernt und k ist mir auch ganz geläufig.</p>
<p>σ,k = Σ ∏ X,i</p>
<p>Dachte vielleicht gibt es schon eine vordefinierte Funktion.<br />
Das gibt ne ziemlich unübersichtliche Rechnung, weiß nicht ob ich das auf Anhieb mit den Schleifen hinbekomme, deshalb meine Frage....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131394</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Fri, 14 Oct 2011 11:55:22 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 12:44:47 GMT]]></title><description><![CDATA[<p>Was ist da dran unübersichtlich? Zwei verschachtelte Schleifen und fertig. Und für Schleifen wie diese gibt es in numeric auch eine fertige Funktion namens std::accumulate, aber wenn du mit Schleifen nicht zurecht kommst, ist das vermutlich etwas zu hoch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131430</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 14 Oct 2011 12:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Fri, 14 Oct 2011 14:30:25 GMT]]></title><description><![CDATA[<p>Tut mir leid, das ist tatsächlich zu hoch für mich.</p>
<p>Für die ersten beiden infragekommenden n's hab ich mir aufgeschrieben wie die Lösung aussehen muss, und zwar:<br />
0,1,2,3,4 steht für die Eingabewerte z.B.&quot;zahl[0] ... zahl[4]&quot;</p>
<p>Bsp 1:</p>
<pre><code>erg[0] = 0*1*2
erg[1] = 0*1 + 0*2 + 1*2
erg[2] = 0 + 1 + 2
</code></pre>
<p>Bsp2:</p>
<pre><code>erg[0] = 0*1*2*3*4
erg[1] = 0*1*2*3 + 0*1*2*4 + 0*1*3*4 + 0*2*3*4 + 1*2*3*4
erg[2] = 0*1*2 + 0*1*3 + 0*1*4 + 0*2*3 + 0*2*4 + 0*3*4 + 1*2*3 + 1*2*4 + 1*3*4 + 2*3*4
erg[3] = 0*1 + 0*2 + 0*3 + 0*4 + 1*2 + 1*3 + 1*4 + 2*3 + 2*4 + 3*4
erg[4] = 0 + 1 + 2 + 3 + 4
</code></pre>
<p>Kannst mir jmd nen Tipp geben wie die Schleife in etwa aussehen muss? Ich steh da grad auf dem Schlauch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131477</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Fri, 14 Oct 2011 14:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Sat, 15 Oct 2011 11:25:12 GMT]]></title><description><![CDATA[<p>Ich versuch nochmal mein Glück.<br />
Wenn ich die einzelnen Summanden (die aus Produkten bestehen) bestimmten könnte - bzw mir da einer helfen könnte - würd ichs hinbekommen.</p>
<p>Wie krieg ich folgendes hin?</p>
<p>Ich hab die Werte</p>
<pre><code>fw[0] bis fw[8]
</code></pre>
<p>Aus den 9 Werten brauche ich alle möglichen Varianten/Zusammenstellungen, je nach dem wieviele Faktoren das Produkt haben soll. Anzahl Faktoren geht ebenso von 1 bis 9.</p>
<p>Bsp:</p>
<p>Anzahl Faktoren: 9<br />
Resultierendes Produkt:</p>
<pre><code>fw[0]*fw[1]*fw[2]*fw[3]*fw[4]*fw[5]*fw[6]*fw[7]*fw[8]
</code></pre>
<p>Anzahl Faktoren: 8<br />
Res. Produkte:</p>
<pre><code>fw[0]*fw[1]*fw[2]*fw[3]*fw[4]*fw[5]*fw[6]*fw[7]
fw[0]*fw[1]*fw[2]*fw[3]*fw[4]*fw[5]*fw[6]*fw[8]
fw[0]*fw[1]*fw[2]*fw[3]*fw[4]*fw[5]*fw[7]*fw[8]
fw[0]*fw[1]*fw[2]*fw[3]*fw[4]*fw[6]*fw[7]*fw[8]
fw[0]*fw[1]*fw[2]*fw[3]*fw[5]*fw[6]*fw[7]*fw[8]
fw[0]*fw[1]*fw[2]*fw[4]*fw[5]*fw[6]*fw[7]*fw[8]
fw[0]*fw[1]*fw[3]*fw[4]*fw[5]*fw[6]*fw[7]*fw[8]
fw[0]*fw[2]*fw[3]*fw[4]*fw[5]*fw[6]*fw[7]*fw[8]
fw[1]*fw[2]*fw[3]*fw[4]*fw[5]*fw[6]*fw[7]*fw[8]
</code></pre>
<p>Bei 7, 5, 4 Faktoren möchte ich das nicht von Hand machen...<br />
Bei 1 gehts noch<br />
Anzahl Faktoren: 1<br />
Res. Produkte:</p>
<pre><code>fw[0]
fw[1]
fw[2]
fw[3]
fw[4]
fw[5]
fw[6]
fw[7]
fw[8]
</code></pre>
<p>Die dann vollends zusammenzuaddieren ist nicht das Problem.<br />
Wie kann ich die jeweiligen produkte bestimmen? Kann mir da bitte jemand helfen / Tipps geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131695</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Sat, 15 Oct 2011 11:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Sat, 15 Oct 2011 12:09:55 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/algorithm/next_permutation/" rel="nofollow">http://www.cplusplus.com/reference/algorithm/next_permutation/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131715</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Sat, 15 Oct 2011 12:09:55 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Sat, 15 Oct 2011 12:32:11 GMT]]></title><description><![CDATA[<p>[Rewind] schrieb:</p>
<blockquote>
<p><a href="http://www.cplusplus.com/reference/algorithm/next_permutation/" rel="nofollow">http://www.cplusplus.com/reference/algorithm/next_permutation/</a></p>
</blockquote>
<p>Danke, ich glaube damit komme ich weiter!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131720</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Sat, 15 Oct 2011 12:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Sat, 15 Oct 2011 12:54:22 GMT]]></title><description><![CDATA[<p>elemsym schrieb:</p>
<blockquote>
<p>[Rewind] schrieb:</p>
<blockquote>
<p><a href="http://www.cplusplus.com/reference/algorithm/next_permutation/" rel="nofollow">http://www.cplusplus.com/reference/algorithm/next_permutation/</a></p>
</blockquote>
<p>Danke, ich glaube damit komme ich weiter!</p>
</blockquote>
<p>Verdammt, doch nicht.</p>
<p>Mein Ziel ist es, wie oben beschrieben, aus z.B. 8 Werten alle 4 möglichen Varianten zu bekommen, allerdings ohne dass die sich doppeln (1234 soll rauskommen und dann nicht mehr 2341..., nachste Variante wäre dann 1235 und die letzte 5678)</p>
<p>Weiß da einer etwas entsprechendes?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131728</guid><dc:creator><![CDATA[elemsym]]></dc:creator><pubDate>Sat, 15 Oct 2011 12:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Elementarsymmetrische Polynome on Sat, 15 Oct 2011 19:17:35 GMT]]></title><description><![CDATA[<p>Ich würde alle Zahlen von 0 bis 2<sup>9</sup>-1 durchgehen, in Binärform umwandeln - und dann anhand jeweils die Faktoren, die zu den 1er-Stellen gehören, verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131861</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Sat, 15 Oct 2011 19:17:35 GMT</pubDate></item></channel></rss>