<?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[Irgendwas stimmt hier nicht =(]]></title><description><![CDATA[<p>Hallo Leute, musste wat in Info programmieren, aber irgendwie stimmen die Formeln nicht, ach ich weiß auch nicht... hier schaut mal...</p>
<p>So muss das aussehen:</p>
<p>Geben Sie bitte den Wert für die Kathete a ein:<br />
3<br />
Geben Sie bitte den Wert für die Kathete b ein:<br />
4</p>
<p>Die Hypotenuse des rechtwinkligen Deiecks mit den Katheten a=3 und b=4<br />
hat den Wert c=5</p>
<p>Alpha hat den Wert: 0,643501 in Bogenmass bzw 36,8699 Grad.</p>
<p>Beta hat den Wert: 0,927295 in Bogenmass bzw 53,1301 Grad.</p>
<p>So die Werte müssen so ausgegeben werden!</p>
<p>So jetzt meine Programmierng:</p>
<p>#include &lt;iostream&gt;<br />
#include &lt;math.h&gt;<br />
using namespace std;<br />
int main(void)<br />
{</p>
<p>float a, b;<br />
double c, Bm, Gm;</p>
<p>cout &lt;&lt; &quot;Geben Sie bitte den Wert fuer die Kathete a ein!\n\n&quot;;<br />
cin &gt;&gt; a;</p>
<p>cout &lt;&lt; &quot;Geben Sie bitte den Wert fuer die Kathete b ein!\n\n&quot;;<br />
cin &gt;&gt; b;</p>
<p>c = sqrt((a*a)+(b*b));<br />
cout &lt;&lt; &quot;\n\nDie Hypotenuse des rechtwinkligen Dreiecks mit den Katheten a = &quot; &lt;&lt; a &lt;&lt; &quot; und b = &quot; &lt;&lt; b &lt;&lt; &quot; hat den Wert c = &quot; &lt;&lt; c &lt;&lt; &quot;\n\n&quot;;</p>
<p>Bm = a/c;<br />
Gm = (Bm*180)/3.1415926535;<br />
cout &lt;&lt; &quot;\n\nAlpha hat den Wert: &quot;&lt;&lt; Bm &lt;&lt; &quot; in Bogenmass bzw &quot; &lt;&lt; Gm &lt;&lt; &quot; in Grad\n\n&quot;;</p>
<p>Bm = b/c;<br />
Gm = (Bm*180)/3.1415926535;<br />
cout &lt;&lt; &quot;\n\nBeta hat den Wert: &quot;&lt;&lt; Bm &lt;&lt; &quot; in Bogenmass bzw &quot; &lt;&lt; Gm &lt;&lt; &quot; in Grad\n\n&quot;;<br />
return 0;<br />
}</p>
<p>Ich kriege halt andere Werte raus:<br />
0,6 und 34,3775</p>
<p>0,8 und 45,8366<br />
(Bm heißt Bogenmass und Gm Gradmass!)</p>
<p>Wat is hier falsch?? -.-</p>
<p>Danke schinmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/226628/irgendwas-stimmt-hier-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 30 Sep 2026 19:29:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/226628.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Nov 2008 23:06:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Mon, 03 Nov 2008 23:06:10 GMT]]></title><description><![CDATA[<p>Hallo Leute, musste wat in Info programmieren, aber irgendwie stimmen die Formeln nicht, ach ich weiß auch nicht... hier schaut mal...</p>
<p>So muss das aussehen:</p>
<p>Geben Sie bitte den Wert für die Kathete a ein:<br />
3<br />
Geben Sie bitte den Wert für die Kathete b ein:<br />
4</p>
<p>Die Hypotenuse des rechtwinkligen Deiecks mit den Katheten a=3 und b=4<br />
hat den Wert c=5</p>
<p>Alpha hat den Wert: 0,643501 in Bogenmass bzw 36,8699 Grad.</p>
<p>Beta hat den Wert: 0,927295 in Bogenmass bzw 53,1301 Grad.</p>
<p>So die Werte müssen so ausgegeben werden!</p>
<p>So jetzt meine Programmierng:</p>
<p>#include &lt;iostream&gt;<br />
#include &lt;math.h&gt;<br />
using namespace std;<br />
int main(void)<br />
{</p>
<p>float a, b;<br />
double c, Bm, Gm;</p>
<p>cout &lt;&lt; &quot;Geben Sie bitte den Wert fuer die Kathete a ein!\n\n&quot;;<br />
cin &gt;&gt; a;</p>
<p>cout &lt;&lt; &quot;Geben Sie bitte den Wert fuer die Kathete b ein!\n\n&quot;;<br />
cin &gt;&gt; b;</p>
<p>c = sqrt((a*a)+(b*b));<br />
cout &lt;&lt; &quot;\n\nDie Hypotenuse des rechtwinkligen Dreiecks mit den Katheten a = &quot; &lt;&lt; a &lt;&lt; &quot; und b = &quot; &lt;&lt; b &lt;&lt; &quot; hat den Wert c = &quot; &lt;&lt; c &lt;&lt; &quot;\n\n&quot;;</p>
<p>Bm = a/c;<br />
Gm = (Bm*180)/3.1415926535;<br />
cout &lt;&lt; &quot;\n\nAlpha hat den Wert: &quot;&lt;&lt; Bm &lt;&lt; &quot; in Bogenmass bzw &quot; &lt;&lt; Gm &lt;&lt; &quot; in Grad\n\n&quot;;</p>
<p>Bm = b/c;<br />
Gm = (Bm*180)/3.1415926535;<br />
cout &lt;&lt; &quot;\n\nBeta hat den Wert: &quot;&lt;&lt; Bm &lt;&lt; &quot; in Bogenmass bzw &quot; &lt;&lt; Gm &lt;&lt; &quot; in Grad\n\n&quot;;<br />
return 0;<br />
}</p>
<p>Ich kriege halt andere Werte raus:<br />
0,6 und 34,3775</p>
<p>0,8 und 45,8366<br />
(Bm heißt Bogenmass und Gm Gradmass!)</p>
<p>Wat is hier falsch?? -.-</p>
<p>Danke schinmal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609722</guid><dc:creator><![CDATA[SuperTalent]]></dc:creator><pubDate>Mon, 03 Nov 2008 23:06:10 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Mon, 03 Nov 2008 23:18:27 GMT]]></title><description><![CDATA[<p>3 geteilt durch 5 ist nun mal 0,6. Wenn das das falsche Ergebnis ist, dann liegt es wohl an der Formel ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609724</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Mon, 03 Nov 2008 23:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Mon, 03 Nov 2008 23:23:30 GMT]]></title><description><![CDATA[<p>jaa stimtm schon, und würde ich auf 0,643501 kommen wie ich es müsste, würde die Formel für das Gradmass ja auch stimmen, dann würde nämlich statt 34,... nämlich 36,... rauskommen...</p>
<p>Wie kommt man nun auf 0,643501... das würde mich mal interessieren, ich komme nur auf 0,6 hmm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609725</guid><dc:creator><![CDATA[SuperTalent]]></dc:creator><pubDate>Mon, 03 Nov 2008 23:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Mon, 03 Nov 2008 23:52:54 GMT]]></title><description><![CDATA[<p>Dein Problem ist Trigonometrie, nicht C++, soviel steht schonmal fest. Schau mal in dein Mathebuch unter Winkelfunktionen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609730</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Mon, 03 Nov 2008 23:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Tue, 04 Nov 2008 00:25:38 GMT]]></title><description><![CDATA[<p>hab ich schon, da hab ich nur dieses da gefunden *gg*</p>
<p>hast du nicht ne Formel???.. hab über google auch nix gefunden -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609736</guid><dc:creator><![CDATA[SuperTalent]]></dc:creator><pubDate>Tue, 04 Nov 2008 00:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Tue, 04 Nov 2008 01:21:28 GMT]]></title><description><![CDATA[<p>0,6 ist nicht der winkel sondern der sinus (bzw. cosinus) des winkels.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609741</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 04 Nov 2008 01:21:28 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Tue, 04 Nov 2008 01:38:56 GMT]]></title><description><![CDATA[<p>Und wie berechne ich den Winkel dann?? Mit welcher Formel??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609747</guid><dc:creator><![CDATA[SuperTalent]]></dc:creator><pubDate>Tue, 04 Nov 2008 01:38:56 GMT</pubDate></item><item><title><![CDATA[Reply to Irgendwas stimmt hier nicht =( on Tue, 04 Nov 2008 01:57:04 GMT]]></title><description><![CDATA[<p>juhuu hab die Lösung doch noch herausgefundn</p>
<p>einfach mit der Fkt asin und acos !! <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>MFG und danke trotzdem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609751</guid><dc:creator><![CDATA[SuperTalent]]></dc:creator><pubDate>Tue, 04 Nov 2008 01:57:04 GMT</pubDate></item></channel></rss>