Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcvax!hafro!krafla!raunvis!binni From: binni@raunvis.UUCP (Brynjolfur Thorsson ) Newsgroups: comp.lang.pascal Subject: Re: complex numbers Summary: C++ Message-ID: <248@raunvis.UUCP> Date: 15 Jul 89 14:29:42 GMT References: <2751@ohstpy.mps.ohio-state.edu> Organization: Science Inst. Univ. of Iceland Lines: 16 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 > fortran which allow easy computation of complex numbers? > You should consider C++. C++ allows overflow of operators, so you can use a = b + c, if a, b, and c are of class complex. Hope you got sence out of this Brynjolfur