home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18006 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.2 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!umn.edu!umeecs!news
  2. From: gisli@hamilton.eecs.umich.edu (Gisli Ottarsson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Complex data types in C++   Novice question.
  5. Message-ID: <1992Dec15.175857.6761@zip.eecs.umich.edu>
  6. Date: 15 Dec 92 17:58:57 GMT
  7. Sender: news@zip.eecs.umich.edu (Mr. News)
  8. Reply-To: gisli@liapunov.eecs.umich.edu
  9. Followup-To: gisli@engin.umich.edu
  10. Distribution: usa
  11. Organization: University of Michigan EECS Dept., Ann Arbor, MI
  12. Lines: 26
  13.  
  14.  
  15.  
  16.  
  17. Hi!
  18.  
  19. I use C for scientific computations and am thoroughly frustrated
  20. by the lack of a complex data type.  So far I have been using a
  21. structure with a real and imaginary part wihch is fine until I
  22. need to do computations where even simple addition requires a 
  23. subroutine call.
  24.  
  25. Here is my question.  Does C++ in some way allow the redefinition of 
  26. + - * /, and so on, to account for complex numbers.
  27.  
  28. Please understand that I have never even seen C++ code and that this
  29. is merely wishful thinking.  
  30.  
  31. Please respond by mail since I do not follow this newsgroup.  
  32.  
  33. --
  34.  
  35.  
  36. ..............................................................................
  37.                             Gisli Ottarsson
  38.    Delenda est Carthago.                     University of Michigan
  39.                             gisli@engin.umich.edu
  40.