<?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[Fehler beim tangens]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab mir gerdae ein kleines progamm zum windgeschwindigkeitsberechnung geschrieben, aber bei dem tangens in dem programm kommt immer ein negativer wert(zumm Beispiel bei 30°) und ich weiß nicht warum.</p>
<p>vielleicht kann mir jemand helfen??</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main ()
{
	double a = 0.26487;
	double b = 0.119196;
	double v;

	double winkel;

	cout &lt;&lt; &quot;Winkel: &quot;;
	cin &gt;&gt; winkel;

	v = tan(winkel);
	v *= a / b;
	v = sqrt(v);

	cout &lt;&lt; &quot;Windgeschwindigkeit: &quot; &lt;&lt; v &lt;&lt; endl;

	return 0;
}
</code></pre>
<p>schöne grüße</p>
<p>gucky</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/283149/fehler-beim-tangens</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 18:25:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/283149.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Mar 2011 09:59:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler beim tangens on Sun, 06 Mar 2011 09:59:51 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab mir gerdae ein kleines progamm zum windgeschwindigkeitsberechnung geschrieben, aber bei dem tangens in dem programm kommt immer ein negativer wert(zumm Beispiel bei 30°) und ich weiß nicht warum.</p>
<p>vielleicht kann mir jemand helfen??</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main ()
{
	double a = 0.26487;
	double b = 0.119196;
	double v;

	double winkel;

	cout &lt;&lt; &quot;Winkel: &quot;;
	cin &gt;&gt; winkel;

	v = tan(winkel);
	v *= a / b;
	v = sqrt(v);

	cout &lt;&lt; &quot;Windgeschwindigkeit: &quot; &lt;&lt; v &lt;&lt; endl;

	return 0;
}
</code></pre>
<p>schöne grüße</p>
<p>gucky</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2030358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2030358</guid><dc:creator><![CDATA[Gucky]]></dc:creator><pubDate>Sun, 06 Mar 2011 09:59:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler beim tangens on Sun, 06 Mar 2011 10:16:03 GMT]]></title><description><![CDATA[<p><a href="https://www.google.de/search?&amp;q=radian%20degree" rel="nofollow">Google: radian degree</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2030363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2030363</guid><dc:creator><![CDATA[ggggg]]></dc:creator><pubDate>Sun, 06 Mar 2011 10:16:03 GMT</pubDate></item></channel></rss>