title: Integral in c code, numerical method
body: <p>In college, i have a subject that is name numerical method, we mainly solve engineering tasks on c code. I have a problem with new task which i must to prepare.</p>
  
  <p>The normal distribution curve is given by the equation:</p>
  
  <pre><code>F(x)= (1/(delta*sqrt(2*pi)))* e^-(((x-2)^2)/(2*delta^2)))
  </code></pre>
  
  <p>Where: </p>
  
  <ul>
  <li><code>M</code> - average value</li>
  <li><code>Delta</code> - standard deviation</li>
  </ul>
  
  <p>Solve: 
  Integral from <code>(m-(k*delta))</code> to <code>(m+(k*delta))</code> on <code>f(x)dx</code>
  <code>k=1,..., 6</code>, </p>
  
  <p>Solve used integration method. Determine the integration precision based on the comparison of the obtained value with the exact value. Return a result in the table in notepad file.</p>
  
  <p>I wrote a first few line and a function <code>f(x)</code>, but now I don't have any idea how to write a integral and rest of the program with this part of comparation.</p>
  
  <p>Could you help me?</p>
  
  <p>I have this:</p>
  
  <pre><code>#include "stdio.h"
  #include "stdlib.h"
  #include "math.h"
  
  Void fun(float m, float s, float d)
   F=(1/s*(2*PI)**-1)*sqrt(exp((pow(d-m,2)/2*pow(d,2)));
   Return f;
  
  Void main(void)
   FILE *file1;
   file1=fopen("file.dat","wt");
   Printf("give me m, s,d"/n);
   Scanf("%f,%f,%f",&amp;m,&amp;s,&amp;d/n);
  </code></pre>
  
  <p>Thanks</p>