home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!umn.edu!umeecs!news
- From: gisli@hamilton.eecs.umich.edu (Gisli Ottarsson)
- Newsgroups: comp.lang.c++
- Subject: Complex data types in C++ Novice question.
- Message-ID: <1992Dec15.175857.6761@zip.eecs.umich.edu>
- Date: 15 Dec 92 17:58:57 GMT
- Sender: news@zip.eecs.umich.edu (Mr. News)
- Reply-To: gisli@liapunov.eecs.umich.edu
- Followup-To: gisli@engin.umich.edu
- Distribution: usa
- Organization: University of Michigan EECS Dept., Ann Arbor, MI
- Lines: 26
-
-
-
-
- Hi!
-
- I use C for scientific computations and am thoroughly frustrated
- by the lack of a complex data type. So far I have been using a
- structure with a real and imaginary part wihch is fine until I
- need to do computations where even simple addition requires a
- subroutine call.
-
- Here is my question. Does C++ in some way allow the redefinition of
- + - * /, and so on, to account for complex numbers.
-
- Please understand that I have never even seen C++ code and that this
- is merely wishful thinking.
-
- Please respond by mail since I do not follow this newsgroup.
-
- --
-
-
- ..............................................................................
- Gisli Ottarsson
- Delenda est Carthago. University of Michigan
- gisli@engin.umich.edu
-