<?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[Chartfx Komponente]]></title><description><![CDATA[<p>Hallo,</p>
<p>kennt sich einer von euch richtig gut mit der chartfx komponente vom C++ Builder6 aus? Ich versuche ein Programm zu erstellen, das Sinus-, Cosinus-, Exponentialkurven und Hyperbeln zeichnen kann. Es funktioniert soweit ach alles schon ganz gut aber die hyperbel ist noch falsch würde ich sagen. Der code dazu sieht so aus:</p>
<pre><code class="language-cpp">if (Form2-&gt;RadioButton4-&gt;Checked==true){
  for (i=0;i&lt;nb;i++){
      //Skalierung
      Chartfx1-&gt;Adm[CSA_MIN]=-1;
      Chartfx1-&gt;Adm[CSA_MAX]=100;
      Chartfx1-&gt;Adm[CSA_GAP]=0.1;
      //8.5365
      Chartfx1-&gt;Adm[CSA_XMIN]=0;
      Chartfx1-&gt;Adm[CSA_XMAX]=2*M_PI;
      Chartfx1-&gt;Adm[CSA_XGAP]=0;

      //Berechnung
      Chartfx1-&gt;Value[i]=amp/(2*M_PI*(i+1)/nb); //your y-value;
      Chartfx1-&gt;XValue[i]=1*(2*M_PI*i/nb); //your x-value;

      //Legende
      Chartfx1-&gt;SerLeg[serie]=&quot;curve4 Hyp&quot;;
    }
}

Chartfx1-&gt;CloseData(COD_VALUES); // close data channel
Chartfx1-&gt;CloseData(COD_XVALUES); // close x-data channel
serie++;

}
</code></pre>
<p>normal sieht ja die funktion für ne hyperbel so aus: amp/x<br />
amp ist ne amplitude und x ist in diesem fall 2*M_PI*i/nb<br />
bei mir geht das ganze aber nur wenn ich i+1 nehme also (2*M_PI*(i+1)/nb)<br />
wenn ich das nicht mache lässt sich das prog nicht ausführen</p>
<p>kann mir einer weiterhelfen?</p>
<p>gruss ado</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169656/chartfx-komponente</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 16:29:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169656.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Jan 2007 14:58:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Chartfx Komponente on Sun, 07 Jan 2007 17:11:12 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kennt sich einer von euch richtig gut mit der chartfx komponente vom C++ Builder6 aus? Ich versuche ein Programm zu erstellen, das Sinus-, Cosinus-, Exponentialkurven und Hyperbeln zeichnen kann. Es funktioniert soweit ach alles schon ganz gut aber die hyperbel ist noch falsch würde ich sagen. Der code dazu sieht so aus:</p>
<pre><code class="language-cpp">if (Form2-&gt;RadioButton4-&gt;Checked==true){
  for (i=0;i&lt;nb;i++){
      //Skalierung
      Chartfx1-&gt;Adm[CSA_MIN]=-1;
      Chartfx1-&gt;Adm[CSA_MAX]=100;
      Chartfx1-&gt;Adm[CSA_GAP]=0.1;
      //8.5365
      Chartfx1-&gt;Adm[CSA_XMIN]=0;
      Chartfx1-&gt;Adm[CSA_XMAX]=2*M_PI;
      Chartfx1-&gt;Adm[CSA_XGAP]=0;

      //Berechnung
      Chartfx1-&gt;Value[i]=amp/(2*M_PI*(i+1)/nb); //your y-value;
      Chartfx1-&gt;XValue[i]=1*(2*M_PI*i/nb); //your x-value;

      //Legende
      Chartfx1-&gt;SerLeg[serie]=&quot;curve4 Hyp&quot;;
    }
}

Chartfx1-&gt;CloseData(COD_VALUES); // close data channel
Chartfx1-&gt;CloseData(COD_XVALUES); // close x-data channel
serie++;

}
</code></pre>
<p>normal sieht ja die funktion für ne hyperbel so aus: amp/x<br />
amp ist ne amplitude und x ist in diesem fall 2*M_PI*i/nb<br />
bei mir geht das ganze aber nur wenn ich i+1 nehme also (2*M_PI*(i+1)/nb)<br />
wenn ich das nicht mache lässt sich das prog nicht ausführen</p>
<p>kann mir einer weiterhelfen?</p>
<p>gruss ado</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205030</guid><dc:creator><![CDATA[adogold]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:11:12 GMT</pubDate></item><item><title><![CDATA[Reply to Chartfx Komponente on Sun, 07 Jan 2007 17:09:26 GMT]]></title><description><![CDATA[<p>&quot;lässt sich nicht ausführen&quot; ist keine Fehlerbeschreibung.</p>
<p>Darf ich raten: <em>i</em> ist Null, <em>2*M_PI*i/nb</em> ergibt somit Null, und Division durch Null ist nun mal nicht erlaubt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205115</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:09:26 GMT</pubDate></item></channel></rss>