Mavzu: Tenglamalar sestemasini yechishning Zeydel va Nyuton usuli


Download 104.31 Kb.
bet1/4
Sana30.11.2020
Hajmi104.31 Kb.
#156408
  1   2   3   4

Muhammad al-Xorazmiy nomidagi Toshkint axborot texnalogiyalari universituti.

3-Labaratoriya ishi

Mavzu:Tenglamalar sestemasini yechishning Zeydel va Nyuton usuli

Bajardi:Abdullayeva.N



Tekshirdi:Akbaraliyev.B

CHIZIQSIZ TENGLAMALAR SISTEMASINI TAQRIBIY YECHISHNI ANIQLIKDA ZEYDEL USULI BILAN TOPISH








#include

#include

using namespace std;

int main ()

{

float a[100], b[100], c[100];



int i=0;

a[0]=65*1./12;

b[0]=78*1./10;

c[0]=41*1./9;

a[i+1]=65*1./12-3*1./12*b[i]-4*1./12*c[i];

b[i+1]=78*1./10-2*1./10*a[i+1]-1*1./10*c[i];

c[i+1]=41*1./9-3*1./9*a[i+1]-2*1./9*b[i+1];

cout<<"\n\t"<

while(sqrt(pow((a[i+1]-a[i]),2)+pow((b[i+1]-b[i]),2)+pow((c[i+1]-c[i]),2))>=0.001)

{

i=i+1;



a[i+1]=65*1./12-3*1./12*b[i]-4*1./12*c[i];

b[i+1]=78*1./10-2*1./10*a[i+1]-1*1./10*c[i];

c[i+1]=41*1./9-3*1./9*a[i+1]-2*1./9*b[i+1];

cout<

}

cout<<"ANIQLIK: "<

cout<<" Yechim: "<<12*a[i+1]+3*b[i+1]+4*c[i+1]<<"\n\t";

return 0;



}

A B C D E F G



0

5,416667

7,8

4,555556










1

1,948148

6,954815

2,360658

3,468519

0,845185

2,194897

2

2,891077

6,985719

2,039481

0,942929

0,030904

0,321177

3

2,99041

6,99797

2,003648

0,099333

0,012251

0,035833

4

2,999292

6,999777

2,000286

0,008882

0,001807

0,003362

5

2,999961

6,999979

2,000018

0,000669

0,000202

0,000268
























Download 104.31 Kb.

Do'stlaringiz bilan baham:
  1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling