dual purpose

-use sqrt () and exponential function exp ()

-use * to calculate the square

-Do not use pow ()

I'm getting values, they just are not what I thought. I tried to sign them all, but that did not change anything. I have tried to print with 12 decimal places and nothing seems to work. I've linked the math library and defined this one.

```
double normal (double x, double sigma, double mu)
{
double function = 1.0 / (sigma * sqrt (2.0 * M_PI));
double raise = 1.0 / 2.0 * ((x-mu) / sigma);
double func1 = func * exp (increase);
double comp_func = (func1 * func1);
returns comp_func;
}
int main (void)
{
// create two constant variables for μ and σ
const double sigma, mu;
// create a variable for x - only dynamic variable in the equation
unsigned int x;
// create a variable for N x values to use for the loop
int no_x;
// scaniing value in mu
printf ("Enter mean u:");
scanf ("% lf", & mu);
// digitization of the value in sigma
printf ("Enter standard deviation:");
scanf ("% lf", & sigma);
// if sigma = 0 then leave
if (sigma == 0)
{
printf ("error you entered: 0");
output (0);
}
// store the number of x values in no_x
printf ("Number of values x:");
scanf ("% d", & no_x);
// the for loop where I call the normal function N times
for (int i = 1; i <= no_x; i ++)
{
// i print for the counter in the invited x values
printf ("x value% d:", i);
// scan in x
scanf ("% lf", & x);
x = normal (x, sigma, mu);
printf ("f (x) =:% lf.12", x);
printf (" n");
}
returns 0;
}
```

C:>. A.exe

Enter average: 3.489

Enter std dev s: 1.203

Number of values x: 3

x value 1: 3.4

f (X) = 0.330716549275

x value 2: -3.4

f (X) = 0.000000025104

x value 3: 4

f (X) = 0.303015189801

But that's what I get

C: Csource> a.exe

Enter average: 3.489

Enter the standard deviation: 1.203

Number of values x: 3

x value 1: 3.4

f (x) =: 15086080.000000

x value 2: -3.4

f (x) =: 15086080.000000

x value 3: 4

f (x) =: 1610612736.000000