User Tools

Site Tools


c:math.h:exp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:math.h:exp [2013/01/22 22:02]
c:math.h:exp [2024/02/16 01:05] (current)
Line 1: Line 1:
 +{{keywords>wiki library source code example reference}}
 +====== exp ======
  
 +<code c>
 +    double exp(double);
 +</code>
 +calculates the exponential value of a number
 +
 +===== C Sourcecode Example =====
 +compile in linux with: gcc exp.c -o exp **-lm** -Wall
 +<code c>     
 +#include <stdio.h> /* including standard library */
 +//#include <windows.h> /* uncomment this for Windows */
 +
 +#include <math.h> /* including math library */
 +
 +int main ( void ) 
 +{
 +double x;
 +x = 9.0;
 +printf("the exponential value of %f is %f\n", x, exp(x));
 +return 0;
 +}
 +
 +</code>
 +
 +==== output ====
 +   output:
 +   user@host:~$ ./exp 
 +   the exponential value of 9.000000 is 8103.083928

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz