<?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[Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades]]></title><description><![CDATA[<p>Moin Leute,<br />
Ich hänge jetzt schon ziemlich lange am selben Problem..<br />
und zwar möchte ich ein Programm schreiben, welches die Extrema, die Nullstellen und den y-Achsenabschnitt errechnet.<br />
Nun steckt aber irgendwo ein Fehler drinn und ich finde ihn nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /><br />
vielleicht kann mir ja jemand weiterhelfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>Code-Auszug:</p>
<pre><code class="language-cpp">float a,b,c,d,e,x,y[1001];
int i;
			float berechnung(float a,float b, float c,float d, float x)
				{
					float y;
					y=a*x*x*x+b*x*x+c*x+d;
					return y;
				}
			int main()			
				{
					cout &lt;&lt; &quot;Polynome 3.Grades&quot; &lt;&lt; endl;		
					cout &lt;&lt; &quot;================&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Berechnet werden:&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;----------------: Nullstellen&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;----------------: Extrema&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Ausgangsformel: y=ax³+bx²+cx+d&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;===========================&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Bitte gebe Werte für a-d ein&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;a = &quot; ;
					cin &gt;&gt; a;
					cout &lt;&lt; &quot;b = &quot; ;
					cin &gt;&gt; b;
					cout &lt;&lt; &quot;c = &quot; ;
					cin &gt;&gt; c;	
					cout &lt;&lt; &quot;d = &quot; ;
					cin &gt;&gt; d;

					x=-50;		
						for (i=1;i&lt;1000;i++)
							{
								y[i-1]=berechnung(a,b,c,d,x-0.1);
								y[i]=berechnung(a,b,c,d,x);
								y[i+1]=berechnung(a,b,c,d,x+0.1);
								//Maximum
								if((y[i]&gt;y[i-1])&amp;&amp;(y[i+1]&lt;y[i]))
									{
										cout &lt;&lt; &quot;Maximum: (&quot;&lt;&lt; x &lt;&lt; &quot;/&quot; &lt;&lt; y[i] &lt;&lt; &quot;)&quot;&lt;&lt;endl;
									}
								//Minimum
								if((y[i]&lt;y[i-1])&amp;&amp;(y[i+1]&gt;y[i]))
									{
										cout &lt;&lt; &quot;Minimum: (&quot;&lt;&lt; x&lt;&lt; &quot;/&quot; &lt;&lt; y[i] &lt;&lt; &quot;)&quot;&lt;&lt;endl;
									}
								//Nullstelle
								if ((y[i-1]&lt;0 &amp;&amp; y[i]&gt;0) || (y[i-1]&gt;0 &amp;&amp; y[i]&lt;0))
									{
										cout &lt;&lt; &quot;Nullstelle liegt bei x = &quot; &lt;&lt; (y[i-1]+y[i+1])/2;
									}
								//y-Achsenabschnitt
								if (x==0)
									{
										cout &lt;&lt; &quot;Y-Achsenabschnitt liegt bei y = &quot;&lt;&lt;y[i] &lt;&lt;endl;
									}
								x+=0.1;

							}
</code></pre>
<p>mfg black Sheep</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181168/probleme-bei-der-berechnung-von-extrema-nullstellen-usw-bei-fkt-3-grades</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 07:13:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181168.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 May 2007 16:05:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Thu, 10 May 2007 16:05:56 GMT]]></title><description><![CDATA[<p>Moin Leute,<br />
Ich hänge jetzt schon ziemlich lange am selben Problem..<br />
und zwar möchte ich ein Programm schreiben, welches die Extrema, die Nullstellen und den y-Achsenabschnitt errechnet.<br />
Nun steckt aber irgendwo ein Fehler drinn und ich finde ihn nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /><br />
vielleicht kann mir ja jemand weiterhelfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>Code-Auszug:</p>
<pre><code class="language-cpp">float a,b,c,d,e,x,y[1001];
int i;
			float berechnung(float a,float b, float c,float d, float x)
				{
					float y;
					y=a*x*x*x+b*x*x+c*x+d;
					return y;
				}
			int main()			
				{
					cout &lt;&lt; &quot;Polynome 3.Grades&quot; &lt;&lt; endl;		
					cout &lt;&lt; &quot;================&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Berechnet werden:&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;----------------: Nullstellen&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;----------------: Extrema&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Ausgangsformel: y=ax³+bx²+cx+d&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;===========================&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;Bitte gebe Werte für a-d ein&quot; &lt;&lt; endl;
					cout &lt;&lt; &quot;a = &quot; ;
					cin &gt;&gt; a;
					cout &lt;&lt; &quot;b = &quot; ;
					cin &gt;&gt; b;
					cout &lt;&lt; &quot;c = &quot; ;
					cin &gt;&gt; c;	
					cout &lt;&lt; &quot;d = &quot; ;
					cin &gt;&gt; d;

					x=-50;		
						for (i=1;i&lt;1000;i++)
							{
								y[i-1]=berechnung(a,b,c,d,x-0.1);
								y[i]=berechnung(a,b,c,d,x);
								y[i+1]=berechnung(a,b,c,d,x+0.1);
								//Maximum
								if((y[i]&gt;y[i-1])&amp;&amp;(y[i+1]&lt;y[i]))
									{
										cout &lt;&lt; &quot;Maximum: (&quot;&lt;&lt; x &lt;&lt; &quot;/&quot; &lt;&lt; y[i] &lt;&lt; &quot;)&quot;&lt;&lt;endl;
									}
								//Minimum
								if((y[i]&lt;y[i-1])&amp;&amp;(y[i+1]&gt;y[i]))
									{
										cout &lt;&lt; &quot;Minimum: (&quot;&lt;&lt; x&lt;&lt; &quot;/&quot; &lt;&lt; y[i] &lt;&lt; &quot;)&quot;&lt;&lt;endl;
									}
								//Nullstelle
								if ((y[i-1]&lt;0 &amp;&amp; y[i]&gt;0) || (y[i-1]&gt;0 &amp;&amp; y[i]&lt;0))
									{
										cout &lt;&lt; &quot;Nullstelle liegt bei x = &quot; &lt;&lt; (y[i-1]+y[i+1])/2;
									}
								//y-Achsenabschnitt
								if (x==0)
									{
										cout &lt;&lt; &quot;Y-Achsenabschnitt liegt bei y = &quot;&lt;&lt;y[i] &lt;&lt;endl;
									}
								x+=0.1;

							}
</code></pre>
<p>mfg black Sheep</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282517</guid><dc:creator><![CDATA[black Sheep007]]></dc:creator><pubDate>Thu, 10 May 2007 16:05:56 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Thu, 10 May 2007 21:33:53 GMT]]></title><description><![CDATA[<p>wo liegt den dein problem ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282691</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Thu, 10 May 2007 21:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Fri, 11 May 2007 06:11:42 GMT]]></title><description><![CDATA[<p>Warum berechnest du die Werte nicht numerisch exakt anstelle deiner Näherungsmessungen (ja, die Lösungsformel für Polynome dritten Grades ist ein wenig komplex, aber sie existiert - und bei den Ableitungen der Funktion wird es sogar noch einfacher).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282757</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 11 May 2007 06:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Fri, 11 May 2007 06:36:08 GMT]]></title><description><![CDATA[<p><a href="http://de.wikipedia.org/wiki/Newton-Verfahren" rel="nofollow">http://de.wikipedia.org/wiki/Newton-Verfahren</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282774</guid><dc:creator><![CDATA[3DG]]></dc:creator><pubDate>Fri, 11 May 2007 06:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Fri, 11 May 2007 13:05:28 GMT]]></title><description><![CDATA[<p>Stelfer schrieb:</p>
<blockquote>
<p>wo liegt den dein problem ?</p>
</blockquote>
<p>Also wenn ich das Programm ausführen lasse,bekomme ich manchmal nur das Minimum , manchmal nur eine Nullstelle und manchmal garnichts ausgespuckt...:-(</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1283000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283000</guid><dc:creator><![CDATA[black Sheep007]]></dc:creator><pubDate>Fri, 11 May 2007 13:05:28 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme bei der Berechnung von extrema, nullstellen, usw bei fkt 3.grades on Mon, 14 May 2007 06:40:36 GMT]]></title><description><![CDATA[<p>Wie ich schon sagte, lös die Aufgabe lieber exakt (bei Polynomen dritten Grades ist das noch möglich).</p>
<p>PS: Und dir ist klar, daß ein Polynom dritten Grades <strong>maximal</strong> 3 Nullstellen und zwei Extrema haben kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1284381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1284381</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 14 May 2007 06:40:36 GMT</pubDate></item></channel></rss>