<?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[double exp(double t)??]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>kurze Frage: Wieso bekomm ich beim folgenden Code diesen Fehler angezeigt:</p>
<blockquote>
<p>In function int main() expected primary expression before double, expected ) before double.</p>
</blockquote>
<p>ich habe schon alles mögliche versucht, aber irgend was haut mit dem &quot;exp&quot; nicht hin.</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()
{
    int s,l;
    double result,x;

    cout &lt;&lt; &quot;Bitte geben Sie einen Ganzzahlwert für s und Lambda l ein:&quot; &lt;&lt; endl;
    cin &gt;&gt; s, l;

    double f = pow(l,8.0);
    double r = pow(s,8.0);
    double t = (-3.31488 * f)/r;
    double exp(double t);

    if (s=0)
    {
            cout &lt;&lt; &quot;1&quot; &lt;&lt; endl;
    }
    else
        result = 1 - (double exp(double t));
        cout &lt;&lt; result &lt;&lt; endl;

    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
<p>Vielen Dank schonmal fürs anschaun:)<br />
v</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/280108/double-exp-double-t</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 06:59:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/280108.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Jan 2011 19:33:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to double exp(double t)?? on Sun, 09 Jan 2011 19:33:56 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>kurze Frage: Wieso bekomm ich beim folgenden Code diesen Fehler angezeigt:</p>
<blockquote>
<p>In function int main() expected primary expression before double, expected ) before double.</p>
</blockquote>
<p>ich habe schon alles mögliche versucht, aber irgend was haut mit dem &quot;exp&quot; nicht hin.</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()
{
    int s,l;
    double result,x;

    cout &lt;&lt; &quot;Bitte geben Sie einen Ganzzahlwert für s und Lambda l ein:&quot; &lt;&lt; endl;
    cin &gt;&gt; s, l;

    double f = pow(l,8.0);
    double r = pow(s,8.0);
    double t = (-3.31488 * f)/r;
    double exp(double t);

    if (s=0)
    {
            cout &lt;&lt; &quot;1&quot; &lt;&lt; endl;
    }
    else
        result = 1 - (double exp(double t));
        cout &lt;&lt; result &lt;&lt; endl;

    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
<p>Vielen Dank schonmal fürs anschaun:)<br />
v</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004648</guid><dc:creator><![CDATA[vankitz]]></dc:creator><pubDate>Sun, 09 Jan 2011 19:33:56 GMT</pubDate></item><item><title><![CDATA[Reply to double exp(double t)?? on Sun, 09 Jan 2011 19:39:47 GMT]]></title><description><![CDATA[<p>willst du die funktion exp aus cmath benutzten??<br />
dann must du nur das schreiben:</p>
<pre><code class="language-cpp">result = exp(t);
</code></pre>
<p><a href="http://www.cplusplus.com/reference/clibrary/cmath/exp/" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cmath/exp/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004649</guid><dc:creator><![CDATA[Gucky]]></dc:creator><pubDate>Sun, 09 Jan 2011 19:39:47 GMT</pubDate></item><item><title><![CDATA[Reply to double exp(double t)?? on Sun, 09 Jan 2011 19:39:40 GMT]]></title><description><![CDATA[<p>hatte es schon mit math.h. war eins der sachen, die ich versucht habe zu ändern durch stöbdern in diversen tutorials und büchern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004651</guid><dc:creator><![CDATA[vankitz]]></dc:creator><pubDate>Sun, 09 Jan 2011 19:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to double exp(double t)?? on Sun, 09 Jan 2011 19:41:37 GMT]]></title><description><![CDATA[<p>ach du liebe zeit, es funktioniert:))) danke dir</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2004652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004652</guid><dc:creator><![CDATA[vankitz]]></dc:creator><pubDate>Sun, 09 Jan 2011 19:41:37 GMT</pubDate></item><item><title><![CDATA[Reply to double exp(double t)?? on Mon, 10 Jan 2011 16:16:37 GMT]]></title><description><![CDATA[<p>ich verstehe nicht was du mit</p>
<p>vankitz schrieb:</p>
<blockquote>
<pre><code class="language-cpp">double exp(double t);
</code></pre>
</blockquote>
<p>willst</p>
<p>versuch es mal so:</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt; 
#include &lt;iostream&gt; 
#include &lt;cmath&gt; 

using namespace std; 

int main() 
{ 
    int s,l; 
    double result; 

    cout &lt;&lt; &quot;Bitte geben Sie einen Ganzzahlwert für s und Lambda l ein:&quot; &lt;&lt; endl; 
    cin &gt;&gt; s;
	cin &gt;&gt; l;

    double f = pow(l,8.0); 
    double r = pow(s,8.0); 
    double t = (-3.31488 * f)/r; 

    if (s==0) 
		cout &lt;&lt; &quot;1&quot; &lt;&lt; endl; 
    else 
        result = 1 - exp(t); 
        cout &lt;&lt; result &lt;&lt; endl; 

    system(&quot;PAUSE&quot;); 
    return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2004653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2004653</guid><dc:creator><![CDATA[Gucky]]></dc:creator><pubDate>Mon, 10 Jan 2011 16:16:37 GMT</pubDate></item></channel></rss>