Autor Beitrag
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Fr 04.11.05 18:50 
hallo!
ich möchte ein gleichungssystem mit zwei unbekannten lösen das so aussieht:
ausblenden Quelltext
1:
2:
t+x=s+y;
u+x=v+y;

s,t,u,v sind eingaben, die der benutzer eingibt, die kenn ich also noch nicht. ausrechnen möchte ich klarerweise x und y.
eigentlich dürfte das ja nicht so schwer sein, oder? (ich habs irgendwie nicht zusammengebracht...).
danke schon im voraus!!!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 04.11.05 19:03 
Stell deine Gleichungen nach x+y um, dann steht auf der rechten Seite jeweils eine Konstante. Wobei das Gleichungssystem nur für s-t=v-u eine Lösung ergibt, die jedoch nach x oder y undefiniert ist.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
andras Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Sa 05.11.05 20:59 
:autsch: :autsch: :autsch:
hab vergessn dass x a mal und y b mal vorkommt.
hab selber so probiert, bin aber steckengeblieben.
Maweki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 197

Ubuntu Linux
Lazarus
BeitragVerfasst: Sa 19.11.05 20:35 
Ich hatte da mal ein Programm fuer n unbekannte geschrieben (Lineares Gleichungssystem).

Ich lads mal hintendran hoch:

das sollte das sein, was du suchst.
Du gibst unter den Buchstaben den jeweiligen Faktor ein und am Ende das Ergebnis...

Gruesse
Maweki


Schau dir den Source an, der Alho is relativ schnell und (imho) recht gut...
Einloggen, um Attachments anzusehen!