Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
double Computeloss(int K)
{
	int i,j,N;
	double q,r,a;//q[i] is the probability of getting buffer occupancy=i a=proba of i arrival
	double mu,Ploss,S,lambda;//lambda = arrival rate at the input, mu=service rate
	//Ploss=probability of loss and S=sum proba q[i]
 
	//lambda=0;
	//Initialize lambda mu and N( from N*N switch)
	//printf("%ld ",randgen());
	lambda=0.3;//+0.1*randgen();
	printf("%ld ",lambda);

Quand je fais afficher lambda qui est un double j'obtiens 858993459
pourquoi ?