تبلیغات
Silent
Silent

 دیکشنری با دیتا بیس سی کو ال به نام


Release Dictionary in back side sql and front sideC# with class in C# and good Design

Release Dictionary.JPG

Notation: This dictionary 's data base is empty only have 200 word You can insert new word in This dictionary

Eltmase 2A

Powered by Amin Esmailzadeh

Download




طبقه بندی: C and Cpp Project، dot net، C Sharp، عمومی،
برچسب ها: Dictionary، Dictionary sql database، دیکشنری اس کیو ال، دیکشنری سی شارپ، دیکشنری، فرهنگ لغت به زبان سی شارپ، Csharp، Cs dictionary، Sql database dictionary، Sql database dictionary with CS، Powered By Amin Esmailzadeh، Amin Esmailzadeh،
ارسال در تاریخ یکشنبه 4 بهمن 1388 توسط امین اسماعیل زاده
A program in c ++ representl Binomial Distribution

#include<iostream.h>

#include<conio.h>

class binominal{

public:

double c(int n,int r);

double fact(int n);

double  power(double  x,int I);

};

inline double  binominal::fact(int n){

if(n<=1)

return 1;

else return (n*fact(n-1));

}

inline double binominal::c(int n,int r){

return (fact(n)/(fact(r)*fact(n-r)));

}

double binominal::power(double x,int I){

int loop;

double p;

p=1;

if (I>=0){

for (loop=I;loop > 0;loop--)

p=x*p;

return p; }

else {

for (loop=I;loop < 0;loop++)

p=(double)x*p;

return (1/p);}

 

}

int main(){

binominal object;

int n=0,x;

float q,p=0,arr[100]={0};

textcolor(11);

clrscr();

cout<<"\n\t\t\t\t  *Welcome*\n\t********************************************************\n\t**\t\tThis Program represent Binomial\t      **\n\t******************************************************** \n";

cout<<"\nEnter  N and P for Calculate b(X;n,p)  \n";

cout<<"Enter N: ";

cin >> n;

cout<<"Enter P: ";

cin >> p ;

q=1-p;

for(x=0;x<=n;x++)

arr[x]=object.c(n,x)*object.power(p,x)*object.power(q,n-x);

cout<<"\n\nx=   ";

for(x=0; x<=n;x++)

cout<<"\t"<<x;

cout<<"\n";

for(int i=0; i<79; i++){

cout<<"-";

if(i==5)

cout<<"|";

}

cout<<"\nf(x)=";

for(x=0;x<=n;x++)

cout<<"\t"<<arr[x];

//end part

getch();

return 0;

}




Powered BY Amin Esmailzadeh

Download



طبقه بندی: C and Cpp Project،
برچسب ها: Binomial Distribution، Binomial، توزیع بینم، Binomial Theorem، Powered BY Amin Esmailzadeh، Amin Esmailzadeh، توزیع دوجمله ای، برنامه توزیع دو جمله ای، Binomial Distribution in Cpp، نوشته شده توسط امین اسماعیل زاده، امین اسماعیل زاده،
ارسال در تاریخ پنجشنبه 14 آبان 1388 توسط امین اسماعیل زاده
قالب وبلاگ