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 ⇔ bk8 ⇔ bet88

78win ⇔ Kubet ⇔ 88CLB ⇔ shbet
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 ⇔ hi88
789BET ⇔ tylekeo ⇔ 32 win ⇔ Daga
nhà cái OK9 ⇔ QQ88 ⇔ hi88 ⇔ b52 club
https://789betcom0.com/ ⇔ https://hi88.baby/
TK88 ⇔ rwin ⇔ b52club ⇔ 99win
QQ88 ⇔ 32win ⇔ 8kbet ⇔ go88
 ⇔ 78win ⇔ j88 ⇔ GK88
 ⇔ 789Win ⇔ J88
HOBA ⇔ WW88 ⇔ bj88 ⇔ uu88
F168 ⇔ bet88 ⇔ QQ88 ⇔ BET88
MB66 ⇔ hi88 ⇔ 789bet ⇔ net88
 ⇔ keonhacai ⇔ soc88 ⇔ j88
https://hi88.gives/ ⇔ 23win ⇔ 98win
23WIN ⇔ hi88 ⇔ https://fun88.social/
https://iwinpro.live/ ⇔ https://23win.kim/
https://qq88.fun/ ⇔ https://j88ss.com
SV388 ⇔ HB88 ⇔ keo nha cai ⇔ u88
https://789winlem.com/ ⇔ https://uk88.rocks
32win ⇔ Vuabet88 ⇔  ⇔ 98win
https://nau888.com ⇔ https://hello8880.net/
Debet ⇔ hi88 ⇔ hi88 ⇔ https://king88aff.com
NOHU ⇔ FB88 ⇔ 78win ⇔ kubet
 ⇔ https://dt68.cc/ ⇔ bj88
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/ ⇔ dt68 ⇔ 99WIN
Vin777 ⇔ https://789club24.com/
33win ⇔ 8xbet ⇔ u888 ⇔ New88
PG88 ⇔ KUBET ⇔ https://bj88com.feedback/
ww88 ⇔ HB88 ⇔ 33win ⇔ HUBET
https://33win101.com/ ⇔ SHBET
https://nhacaiuytin.garden/ ⇔ https://98win.supply/
https://33winpro.me/ ⇔ https://23win.build
https://kuwinvef.me/ ⇔ https://bongvip.space/
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/
https://goal123.directory/  ⇔ https://bk8co.net/
https://23wincom.info ⇔ https://j88com.limited
https://j88uk.com ⇔ https://f168.movie/
https://8kbetttt.com/ ⇔ https://f168.law/
https://8kbet25.com ⇔ https://j88cem.com/
https://qq88pro.vip/ ⇔ https://ww88i.club/
New88 ⇔ https://8kbet25.com ⇔ HUBET
kubet ⇔ https://luongsontv72.com/
https://qq88.gives/ ⇔ 789BET ⇔  ⇔
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