<?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[Wurzel]]></title><description><![CDATA[<p>Moin</p>
<p>weiß einer wie es in c++ möglich ist,die wurzel aus einer Zahl zu ziehen?<br />
sonst weiß ich alles,wie man dividiert usw..</p>
<p>Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143572/wurzel</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 06:48:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143572.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Apr 2006 19:33:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 19:33:40 GMT]]></title><description><![CDATA[<p>Moin</p>
<p>weiß einer wie es in c++ möglich ist,die wurzel aus einer Zahl zu ziehen?<br />
sonst weiß ich alles,wie man dividiert usw..</p>
<p>Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034089</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Sun, 09 Apr 2006 19:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 19:35:08 GMT]]></title><description><![CDATA[<p>schnurres schrieb:</p>
<blockquote>
<p>Moin<br />
weiß einer wie es in c++ möglich ist,die wurzel aus einer Zahl zu ziehen?<br />
sonst weiß ich alles,wie man dividiert usw..<br />
Thx</p>
</blockquote>
<pre><code class="language-cpp">#include &lt;cmath&gt;
using namespace std;
...
w=sqrt(x);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1034090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034090</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 09 Apr 2006 19:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 21:21:47 GMT]]></title><description><![CDATA[<p>gibt es auch eine funktion für die n-te wurzel? oder um eine zahl mit n zu potenzieren (auch brüche), dann könnte man damit ja die wurzelberechnung durchführen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034162</guid><dc:creator><![CDATA[Mr. Pink]]></dc:creator><pubDate>Sun, 09 Apr 2006 21:21:47 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 21:52:41 GMT]]></title><description><![CDATA[<p>pow(x,e)<br />
berechnet x hoch e<br />
pass bei e auf.<br />
pow(x,1/3)<br />
berechnet<br />
x hoch 0<br />
weil<br />
1/3==0 //alles integers.<br />
pow(x,1.0/3)<br />
geht schon.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034174</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 09 Apr 2006 21:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 21:57:51 GMT]]></title><description><![CDATA[<p>also müsste ich wenn ich die 5te wurzel aus 3 berechnen will</p>
<pre><code>x=pow(3,1.0/5)
</code></pre>
<p>schreiben?</p>
<p>pow ist wahrscheinlich auch in cmath?!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034176</guid><dc:creator><![CDATA[Mr. Pink]]></dc:creator><pubDate>Sun, 09 Apr 2006 21:57:51 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 22:17:40 GMT]]></title><description><![CDATA[<p>Moin</p>
<p>es hat geklappt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Nur irgendwie gibt mein programm keine Kommerzahlen aus.</p>
<p>Das programm soll die Wurzel aus x²+y² berechen.</p>
<p>Source:</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;windows.h&gt;
#include &lt;cmath&gt;
using namespace std;

 int main()

 {
     int a,b;

     cout&lt;&lt;&quot;Länge der Seite a eingeben: \n&quot;;
     cin&gt;&gt;a;
     cout&lt;&lt;&quot;Länge der Seite b eingeben: \n&quot;;
     cin&gt;&gt;b;
    int w;

     w=sqrt(a*a + b*b);

     cout&lt;&lt;&quot;Die Länge der Seite c beträgt&quot;&lt;&lt;w&lt;&lt;&quot;cm.\n&quot;;

     system(&quot;pause&quot;);
     return 0;

     }
</code></pre>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034179</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Sun, 09 Apr 2006 22:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 22:46:20 GMT]]></title><description><![CDATA[<p>das liegt ggf. daran das du nur mit integers arbeitest. nimm mal nen float dafür. dann sollte es klappen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034188</guid><dc:creator><![CDATA[ConfusedGuy]]></dc:creator><pubDate>Sun, 09 Apr 2006 22:46:20 GMT</pubDate></item><item><title><![CDATA[Reply to Wurzel on Sun, 09 Apr 2006 22:56:46 GMT]]></title><description><![CDATA[<p>Integer zählt zu den Ganzzahltypen. Was du benötigst ist ein Fließkommatyp (double, float, ...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034192</guid><dc:creator><![CDATA[cin]]></dc:creator><pubDate>Sun, 09 Apr 2006 22:56:46 GMT</pubDate></item></channel></rss>