.| Autor | Beitrag |
|---|---|
|
000 30.09.2002, 20:42 mrossbyte |
n'abend! "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." — Peter Cochrane. |
|
Profil || Suche |
|
001 30.09.2002, 22:45 Zeeke |
Weiß ja nun nicht, inwiefern sich Pascal und Delphi da noch ähneln, aber in Delphi gibt es den Typ Int64: 2^63..2^63-1signed 64-bit, ansonsten evtl Longword 0..4294967295 unsigned 32-bit... -- |
|
Profil || Suche |
|
002 01.10.2002, 00:04 TheTinySteini |
Bin mir da nicht sicher, aber du könntest doch auch einen record machen mit zwei Ints (oder Singles/Doubles), einen für den Realanteil und einen für den imaginären Anteil. Und dann eben Funktionen basteln, die anhand der Rechenregeln addieren, subtrahieren, multiplitieren etc. TheTinySteini |
|
Profil || Suche |
|
003 02.10.2002, 10:16 Kriz |
Ja, ich fummel mal watt in C (C++ würde ich als Klasse nehmen, aber da bietet die STL bereits komplexe Zahlen als Klasse (?) oder Template (?) an):
So, daß war`s auch schon:
usw. In Pascal dürfte das ja auch nicht schwer sein. Wie TTT schon sagte, daß ganze als "record" definieren, passende Funktionen basteln und ab geht die Luzi! --K:R-I)Z++ |
|
Profil || Suche |
|
004 02.10.2002, 10:52 WareWolf |
oje, komplexe Zahlen, musste mich während des Studiums (Elektrotechnik) auch lange mit abkaspern. Die Wichse hab ich nachher im Realjob nie wieder benötigt, wie ich damals schon vermutete. Sig as a brick ┴┬┴┬┴┬┴┬┴┬┴┬┴ |
|
Profil || Suche |
|
005 02.10.2002, 21:18 mrossbyte |
viel einfacher...
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." — Peter Cochrane. |
|
Profil || Suche |
|
006 03.10.2002, 11:04 apfelkorn |
muss aber statt "result:=complex" "addition:=complex" heissen, sonst ist die Funktion Wurst. -- |
|
Profil || Suche |
|
007 03.10.2002, 22:09 TheTinySteini |
@apfelkorn: nope, result ist schon richtig. Alternativ wird glaub ich der Rückgabewert der letzten Zeile zurückgegeben oder das, was man dem Namen der Funktion zuweist. Aber result ist der Standard-Weg. Find ich zwar auch irgendwie blöde, aber nunja... Delphi halt. @mrossbyte: naja, das ist ja das, was Kriz und ich beschrieben haben. --TheTinySteini |
|
Profil || Suche |

