<?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[zeichnen einer x² funktion??°°]]></title><description><![CDATA[<p>Hi leute, ich würde gerne eine x² funktion zeichenn, die bei 150 250 anfängt.<br />
allerdings zeichent die folgende kurve nur so einen schmarn, der falschrum liegt. wo .liegt das problem??</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 img-&gt;Canvas-&gt;MoveTo(150,0);
 img-&gt;Canvas-&gt;LineTo(150,300);
 img-&gt;Canvas-&gt;MoveTo(0,250);
 img-&gt;Canvas-&gt;LineTo(300,250);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
 img-&gt;Canvas-&gt;MoveTo(150,250);

	for(int x=0; x&lt;15 ; x++)
	{
	 int X = x;
	 int Y = X*X;
	 img-&gt;Canvas-&gt;LineTo(X,Y);
	}
}
//---------------------------------------------------------------------------
</code></pre>
<p>also, beim ersten klick, soll das kreuz gemalt werden, beim 2. button die kurve.<br />
wäre nett für ein paar trick oder cpp code</p>
<p>greetz<br />
T I M<br />
<a href="http://www.tikotsammlung.de.vu" rel="nofollow">www.tikotsammlung.de.vu</a></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/111363/zeichnen-einer-x-funktion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 02:40:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/111363.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 May 2005 11:28:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:28:41 GMT]]></title><description><![CDATA[<p>Hi leute, ich würde gerne eine x² funktion zeichenn, die bei 150 250 anfängt.<br />
allerdings zeichent die folgende kurve nur so einen schmarn, der falschrum liegt. wo .liegt das problem??</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 img-&gt;Canvas-&gt;MoveTo(150,0);
 img-&gt;Canvas-&gt;LineTo(150,300);
 img-&gt;Canvas-&gt;MoveTo(0,250);
 img-&gt;Canvas-&gt;LineTo(300,250);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
 img-&gt;Canvas-&gt;MoveTo(150,250);

	for(int x=0; x&lt;15 ; x++)
	{
	 int X = x;
	 int Y = X*X;
	 img-&gt;Canvas-&gt;LineTo(X,Y);
	}
}
//---------------------------------------------------------------------------
</code></pre>
<p>also, beim ersten klick, soll das kreuz gemalt werden, beim 2. button die kurve.<br />
wäre nett für ein paar trick oder cpp code</p>
<p>greetz<br />
T I M<br />
<a href="http://www.tikotsammlung.de.vu" rel="nofollow">www.tikotsammlung.de.vu</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/799616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799616</guid><dc:creator><![CDATA[masterfu]]></dc:creator><pubDate>Tue, 31 May 2005 11:28:41 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:40:54 GMT]]></title><description><![CDATA[<p>wie falsch rum liegt? zeig mal ein bild!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/799630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799630</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Tue, 31 May 2005 11:40:54 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:42:40 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Das liegt wohl daran, dass der Nullpunkt des Bildschirmkoordinatensystems links oben ist und y nach unten hin grösser wird, wärend du den Nullpunkt links unten haben willst mit y nach oben zunehmend. Du muss deine Koordinaten halt transformieren.</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/799633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799633</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 31 May 2005 11:42:40 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:45:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>hab das mal korrigiert</p>
<pre><code class="language-cpp">img-&gt;Canvas-&gt;MoveTo(150,250); // Startpunkt
 img-&gt;Canvas-&gt;Pen-&gt;Color = clRed; // Farbe setzen
 int y; // Abweichung y-Achse
 int x; // Abweichung x-Achse

 // Für 15 Punkte die Quadratische Kurze zeichnen
 for (int Lv = 0; Lv &lt; 15; Lv++)
 {

   // Werte für x und y berechnen
   x = Lv;
   y = Lv * Lv;

   // Skalierung, damit die Kurve zu sehen ist. Damit kannst du
   // die Anzeige stauchen und dehnen, indem du das Verhältnis änderst
   x*= 10;
   y*= 10;

   img-&gt;Canvas-&gt;LineTo(150 + x, 250 - y); // Linie zum neuen Punkt zeinchnen
   }
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/799637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799637</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 31 May 2005 11:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:53:57 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>hab das mal korrigiert</p>
</blockquote>
<p>Sicher?</p>
<p>y = 14 * 14 * 10 = 1960</p>
<p>zumindest fuer meinen Monitor viel zu gross! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
ja und ich weiss mit 1 siehts aus wie vorher!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/799644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799644</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Tue, 31 May 2005 11:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Tue, 31 May 2005 11:59:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>naja, für das exponentielle Wachstum der Kurve kann ich ja nichts.<br />
Wenn das zu schnell wächst, muß eben das Verhältniss geändert werden</p>
<pre><code class="language-cpp">x*= 10;
   y*= 2;
</code></pre>
<p>sieht ganz gut aus. Ist aber dann eben gestaucht. Deshalb sollte dann eine Anzeige der x- und y- Schritte zusätzlich zu dem Kreuz mit rein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/799653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/799653</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 31 May 2005 11:59:57 GMT</pubDate></item><item><title><![CDATA[Reply to zeichnen einer x² funktion??°° on Wed, 01 Jun 2005 07:31:29 GMT]]></title><description><![CDATA[<p>noch besser siehts natürlich so aus:</p>
<pre><code class="language-cpp">img-&gt;Canvas-&gt;MoveTo(-1,-1); // Startpunkt
 img-&gt;Canvas-&gt;Pen-&gt;Color = clRed; // Farbe setzen
 float y; // Abweichung y-Achse
 float x; // Abweichung x-Achse

 // Für 15 Punkte die Quadratische Kurze zeichnen
 for (float Lv = -15; Lv &lt; 15; Lv+=.1)
 {

   // Werte für x und y berechnen
   x = Lv;
   y = Lv * Lv;

   // Skalierung, damit die Kurve zu sehen ist. Damit kannst du
   // die Anzeige stauchen und dehnen, indem du das Verhältnis änderst
   x*= 10;
   y*= 2;  // 10 wenn es nicht gestaucht werden soll

   img-&gt;Canvas-&gt;LineTo(150 + x, 250 - y); // Linie zum neuen Punkt zeinchnen
   }
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/800168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/800168</guid><dc:creator><![CDATA[Acidmrp]]></dc:creator><pubDate>Wed, 01 Jun 2005 07:31:29 GMT</pubDate></item></channel></rss>