Giải phương trình bậc nhất hai ẩn bằng pascal

Thứ ba - 01/10/2013 09:09
Lập trình giải hệ phương trình bậc nhất hai ẩn bằng pascal: aX + bY =c và a1X + b1Y = c1
Program HPT_BAC_NHAT_2_AN;
uses crt;
var a,b,c: real;
    d,e,f: real;
    x,y: real;
    traloi: c-har;
begin
 repeat
 clrscr;
 writeln('Giai he phuong trinh bac nhat 2 an');
 writeln('------------------------------------------------');
 write('nhap he so a= ');readln(a);
 write('nhap he so b= ');readln(b);
 write('nhap he so c= ');readln(c);
 write('nhap he so a1= ');readln(d);
 write('nhap he so b1= ');readln(e);
 write('nhap he so c1= ');readln(f);
 readln;
 if ((a*e)-(d*b))<>0 then
 begin
 x:= ((c*e)-(f*b))/((a*e)-(d*b));
 y:= ((a*f)-(d*c))/((a*e)-(d*b));
 writeln('vay phuong trinh co mot nghiem x=',x,' va y=',y);
 end;
 if ((a*e)-(d*b))=0 then
  begin
  if (((c*e)-(f*b))<>0) or (((a*f)-(d*c))<>0) then
  writeln('he phuong trinh vo nghiem HI!HI!...HI!');
  if (((c*e)-(f*b))= 0) and (((a*f)-(d*c))=0) then
  writeln('he co vo so nghiem x thuoc R va y=(c-ax)/b nghiem cua he la nghiem cua ax+by=c');
  end;
 writeln('ban co muon tiep tuc thuc hien nua khong (Y/N)?');readln(traloi);
 until (traloi='N') or(traloi='n');
 writeln('nhan ENTER de ket thuc chuong trinh');
 readln
end.

Sách giải st

  Ý kiến bạn đọc

THÀNH VIÊN

Hãy đăng nhập thành viên để trải nghiệm đầy đủ các tiện ích trên site
Kênh Bóng đá trực tiếp hôm nay miễn phí
Kênh
90Phut TV full HD ⇔ 32win
RR88 ⇔ YO88 ⇔ F168 ⇔ 123b

Vmax ⇔ SV388 ⇔ cakhiatv ⇔ bet88
789f ⇔ SHBET ⇔ rikvip ⇔ 8x bet
https://qq887p.com/ ⇔ v9bet ⇔ okvip
b52club ⇔ Kkwin ⇔ new88 ⇔ Link MB66
https://88betcom.pro/ ⇔ 8x bet ⇔ 33win
789BET ⇔ shbet ⇔ 32 win ⇔ RR88
MB66 ⇔ Nổ Hũ ⇔ BL555 ⇔ b52 club
https://789betcom0.com/ ⇔ https://hi88.baby/
HZ88 ⇔ đá gà ⇔ sunwin ⇔ SHBET
hi88.biz ⇔ 78win ⇔ i9 Bet ⇔ go88
f168 ⇔ 789F ⇔ j88 ⇔ 789win ⇔ 98win
88clb ⇔ 789win ⇔ HUBET ⇔ GK88
F168 ⇔ f168 ⇔ QQ88 ⇔ bk8 ⇔ bk8
ee88 ⇔ iwinclub ⇔ MBET ⇔ net88
KING88 ⇔ soc88 ⇔ https://j88t3.com/
nhà cái go8 ⇔ 23win ⇔ 8kbet
78win ⇔ hi88 ⇔ https://fun88.social/
https://qq88z.net/ ⇔ I9BET ⇔ 7Club
https://qq88.fun/ ⇔ f168 ⇔ go8 ⇔ vn88
daga ⇔ SHBET ⇔ keo nha cai ⇔ bl-555.site
https://bshbet.com/ ⇔ https://uk88.rocks
qq88 com ⇔ Au88 ⇔ 5MB ⇔ 8kbet
https://luongson117.tv/ ⇔ https://hello8880.net/
xin 88 ⇔ https://78win01.locker/ ⇔ uu88
NOHU ⇔ bj88 live ⇔ 32win ⇔ Kuwin
Bay789 ⇔ w388 ⇔  ⇔ 23win
WW88 ⇔ https://f168.com.co/
7m ⇔ kuwin ⇔ https://789club24.com/
https://33win103.com/ ⇔ https://789win.voyage/
https://33win102.com/ ⇔ https://789p.co.com/
https://33win100.com/ ⇔ https://hi88.tours/
https://myeat.net/ ⇔ https://hi88.report/
https://58win1.info/ ⇔ https://f168.giving/
https://new88c.co/ ⇔ https://hello880.net/
https://789club60.com/ ⇔ https://vua88top1.com/
Hay 88 ⇔ E2BET ⇔ f168 ⇔ 78win
88Vv ⇔ https://789club24.com/ ⇔ hi88com
win68 ⇔ 8xbet ⇔ Kubet ⇔ j88 ⇔ EV88
XX88 ⇔ KUBET ⇔ 99OK ⇔ RR88
 ⇔ 33win ⇔ http://hi88.uno/
https://33win101.com/ ⇔ SHBET ⇔ Min88
hi88 ⇔ https://shbet.gg/ ⇔ 
https://33winpro.me/ ⇔ bluphim ⇔
alo789 ⇔ hubet ⇔ UU88 ⇔ 6623
https://shbet.solar/ ⇔ https://daga.help/
https://pg88.ca/ ⇔ https://ok9599.com/
trực tiếp bóng đá ⇔ https://ww88i.club/
https://hi88.voyage/ ⇔ 
cakhiatv ⇔ https://23wincom.info
https://hi88o.com/ ⇔ https://f168.law/
https://88bett.vip/ ⇔ https://dt68.cc/
https://rcc.eu.com/ ⇔ https://j88com.limited/
New88 ⇔ https://j88.now/ ⇔ 79king
kubet ⇔ Okking ⇔ https://33win.software/
https://ww88star.com/ ⇔ vankhanhtv ⇔ ww88
https://88vvcom.net/ ⇔ https://okwin.technology/
bong88 ⇔ j88 ⇔ j88 ⇔ sunwin ⇔ sunwin
No hu ⇔ 888b ⇔ MM88 ⇔ go 88
kuwin ⇔ nhà cái uy tín ⇔ rwin ⇔ dt68
MM88 ⇔ Nh88 ⇔ RR88 ⇔ game sunwin
789win ⇔ https://ok365.fitness/
https://xx88.ink/ ⇔ https://79king.is/
S666 ⇔ xocdia88 ⇔ Sun Win ⇔ Vmax
tỷ lệ kèo nhà cái hôm nay ⇔ Link vào Kingfun
https://j88ss.com ⇔ https://qq88.studio/
https://mm88.blue/ ⇔ https://qq88.gives/
SUNCITYVivu88 ⇔ https://cakhiatv88.net/
 ⇔ https://555win.io/
https://king88.international/ ⇔ 33win ⇔ 98WIN
https://qq88.racing/ ⇔ https://j88uk.com
https://hubest.co/ ⇔ https://ww88.engineer/
https://muranoglass-shop.cn.com/ ⇔ J88
soi kèo nhà cái ⇔ https://king88.giving/
https://bet88.ventures/ ⇔ trực tiếp bóng đá
https://king88clb.com ⇔ E2bet ⇔ KUBET
https://sh-bet.com/ ⇔ 8xbet app ⇔ King 88
https://32win.vc/ ⇔ 88bet ⇔ PG88 ⇔ PG88
EE88 ⇔ B52Club ⇔ B52 Club ⇔ HB88
HB88 ⇔ Vin777 ⇔ SV388 ⇔ QQ88 ⇔ 32win
https://vankhanhtvv.com/ ⇔ https://luck8.world/
23WIN ⇔ bubet ⇔ https://u888lm.com/
tỷ lệ kèo nhà cái ⇔ 78win ⇔ https://789win01.club/
https://32win.domains/ ⇔ https://sv388.engineering/
https://8kbetbh.com/ ⇔ http://ta88club.kim/
https://orangeblossomjamboree.com
Bạn đã không sử dụng Site, Bấm vào đây để duy trì trạng thái đăng nhập. Thời gian chờ: 60 giây