Home > Back-end >  God help me, how can output a number, rather than the output value of the one-to-one correspondence
God help me, how can output a number, rather than the output value of the one-to-one correspondence

Time:09-26

Great god help me, how can output a number, rather than with the n value output one-to-one

# include & lt; Stdio. H>
# include & lt; Math. H>
# include & lt; Stdlib. H>


Void gaussianWin (int N, double alpha, double * * w)
{
int n;
Double k, beta, theta.
Double * ret;

Ret=(double *) malloc sizeof (N * (double));
If (ret!=NULL)

For (n=0; N & lt; N; N++)
{
If ((N % 2)==1)
{
K=n - (n - 1)/2;
Alpha beta=2 * * (double)/k (N - 1);
}
The else
{
K=n - (n)/2;
Alpha beta=2 * * (double)/k (N - 1);
}

Theta=pow (beta 2);
* + n (ret)=exp ((1) * (double) is 2);

}

* w=+ n (ret);
The return;
}
Void main ()
{
Double * a;
GaussianWin (99,2.5, & amp; A);


Printf (" \ n % f ", * a);


}
  • Related