Mega Code Archive

 
Categories / C / Code Snippets
 

Calculate exponential how to use exp

#include <stdio.h> #include <math.h> int main () { double j, result; j = 5; result = exp (j); printf ("Exponential of %lf = %lf\n", j, result ); return 0; }