Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!rex!ginosko!uunet!mcvax!kth!draken!tut!ra!chyde!ts From: ts@chyde.uwasa.fi (Timo Salmi LASK) Newsgroups: comp.lang.pascal Subject: Re: complex numbers Message-ID: <640@chyde.uwasa.fi> Date: 14 Jul 89 09:37:39 GMT References: <2751@ohstpy.mps.ohio-state.edu> Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK) Organization: U of Vaasa, Finland Lines: 20 In article <2751@ohstpy.mps.ohio-state.edu> heff@ohstpy.mps.ohio-state.edu writes: >Is there an easy way to do complex numbers in pascal? In particular is >there a way to write equations in source code such as > a =: b + c; >or > a := (b+c)/(d+e); >as can be done in fortran. For that matter, are there any languages beside Forgive me if this reply is too trite, but one could define type complex = record RlPart : real; ImPart : real; end; and take it up from there by defining the basic operations for complex numbers as functions. ................................................................... Prof. Timo Salmi (Site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun