سلام دوستان یه برنامه نوشتم که معادله زیر رو حل میکنه ، نظرتون برام خیلی مهمه....
تشکر


//aidinMC Program

#include <iostream.h>
void main () {

int tavan=3,tedad,temp,tempx,tempy;
long int x,y,faktor;
double natije , natijeFaktor=0;

cout << "Lotfan tedad donbale ra varedkonid : ";
cin >> tedad ;

while (tedad > 7) {
cout << endl;
cout <<"DORE bayad kochaktar az 8 bashad!"<<endl;
cin >> tedad ;
}

cout << "X ra vared konid : ";
cin >> x;

while (x>5) {
cout << endl;
cout <<"X bayad kochaktar az 5 bashad!"<<endl;
cin >> x ;
}
natije=x;
tempy=y=-x;
tempx=x;

cout << "---------*****----------"<<endl;
cout <<" X = " << x<<endl;
cout << "---------*****----------"<<endl;
while ( tedad > 0 ) {
faktor = temp = tavan;
for (int i=1 ; i< tavan ; i++)
y=y*x;
cout << " x^"<<tavan<<" = "<< y << endl;
for (int j=1 ; j<tavan ; j++)
faktor *=(temp-j);
cout << " " << tavan << " Faktoriel = " << faktor<<endl;
natijeFaktor += (double)(faktor);
cout << " (" << y << "/" << natijeFaktor << ") = " << (y/natijeFaktor) <<endl;
natije += (y/natijeFaktor);
natijeFaktor = 0;
if (tempy > 0)
y=x=tempy=tempx* -1;
else if (tempy < 0)
y=x=tempy=tempx;
tavan+=2;
tedad--;
cout << "---------*****----------"<<endl;
}
cout << " natije Kol = "<< natije << endl;
}

البته مقدار x و دنباله محدود شده.....