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
Thabet ⇔ BET88 ⇔ bet88 ⇔ goal123

78win ⇔ https://69vn.living/
23win ⇔ ABC88 ⇔ rikvip ⇔ bj88
link xem truc tiep bong da xoilac tv ⇔ okvip
xem bóng đá cà khịa tv trực tuyến hôm nay
MB66 ⇔ 23WIN ⇔ FB88 ⇔ Link MB66
bongvip ⇔ daga88 ⇔ BK8
789BET ⇔ bj88.insure ⇔ 32 win ⇔ Daga
nhà cái OK9 ⇔ QQ88 ⇔ hi88 ⇔ 
https://789betcom0.com/ ⇔ https://hi88.baby/
TK88 ⇔ f8bet ⇔ b52club
QQ88 ⇔ 32win ⇔ hi88 ⇔ go88
Bet88 ⇔ 78win ⇔ https://king88.movie/
Đăng nhập bk8 ⇔ 789Win ⇔ 
HOBA ⇔ WW88 ⇔ bj88 ⇔ uu88
F168 ⇔ bsports ⇔ QQ88 ⇔ BET88
MB66 ⇔ hi88 ⇔ 789bet ⇔ net88
alo789 ⇔ F168 ⇔ soc88 ⇔ Kubet
https://hi88.gives/ ⇔ https://789club63.com/
23WIN ⇔ hi88 ⇔ https://fun88.social/
https://iwinpro.live/ ⇔ https://23win.kim/
https://qq88.fun/ ⇔ https://j88ss.com
SV388 ⇔ HB88 ⇔ 
https://789winlem.com/ ⇔ https://uk88.rocks
32win ⇔ 69vn ⇔ UK88 ⇔ 98win
https://nau888.com ⇔ https://hello8880.net/
Debet ⇔ hi88 ⇔ hi88 ⇔ https://king88aff.com
NOHU ⇔ FB88 ⇔ 78win ⇔ kubet
F168 ⇔ https://dt68.cc/ ⇔ okking99
https://ww88.supply/ ⇔ https://f168.com.co/
Link vào NEW88 ⇔ https://789club24.com/
https://33win103.com/ ⇔ https://f168.group/
https://33win102.com/ ⇔ https://33win.clothing/
https://33win100.com/ ⇔ https://hi88.tours/
https://myeat.net/ ⇔ https://hi88.report/
https://58win1.info/ ⇔ https://hi88.garden/
https://fun88.place/  ⇔ https://hello880.net/
https://789club60.com/ ⇔ https://nau888.com/
https://f168.dad/ ⇔  ⇔ 99WIN
Vin777 ⇔ https://789club24.com/
33win ⇔ 8xbet ⇔ u888
PG88 ⇔ bet 88 ⇔ https://bj88com.feedback/
 ⇔ HB88 ⇔ 33win ⇔ HUBET
https://33win101.com/ ⇔ SHBET
https://nhacaiuytin.garden/ ⇔ 
https://33winpro.me/ ⇔ https://23win.build
https://789win.navy/ ⇔ New88 ⇔ BJ88
SV388 ⇔ Link MBlive
https://ww88info.com/ ⇔ https://new88838.com/
https://nhacaiuytin88.me/ ⇔ https://hb88ai.com/
https://hb88top.com/ ⇔ https://8day111.com/
https://8day112.com/https://789win.voyage/
https://u888.prof/ ⇔ https://69win.me/
https://abc8.house/ ⇔ https://789p.partners/
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