home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / sci / math / symbolic / 2187 next >
Encoding:
Text File  |  1992-08-12  |  2.6 KB  |  58 lines

  1. Newsgroups: sci.math.symbolic
  2. Path: sparky!uunet!newsstand.cit.cornell.edu!news
  3. From: Ray Zimmerman <Ray-Zimmerman@cornell.edu>
  4. Subject: Re: mathematica question- using complex symbols
  5. Message-ID: <1992Aug12.144118.2855@mail.cornell.edu>
  6. X-Xxdate: Wed, 12 Aug 92 15: 42:58 GMT
  7. Sender: news@mail.cornell.edu
  8. Nntp-Posting-Host: ziklag.ee.cornell.edu
  9. Nntp-Posting-User: rz10@cornell.edu
  10. Organization: Electrical Engineering, Cornell University
  11. X-Useragent: Nuntius v1.1.1d7
  12. References: <1992Aug11.202102.14808@athena.mit.edu>
  13. Date: Wed, 12 Aug 1992 14:41:18 GMT
  14. Lines: 42
  15.  
  16. mathematica question- using complex symbols
  17.  
  18. In article <1992Aug11.202102.14808@athena.mit.edu> Saurav D Bhatta,
  19. bhattas@athena.mit.edu writes:
  20. >I have been trying to manipulate complex symbols
  21. >                     ^^^^^^^^ 
  22. >(as opposed to complex numbers) using mathematica.  I had expected
  23. >mathematica to be able to simplify expressions containing complex
  24. >symbols the same way it simplifies complex number expressions.
  25. >for example, if we do     z= 3+ 4 I    , and then compute 
  26. >z*Conjugate[z], the answer output will be 25. but on the other hand,
  27. >if we do      z=x + I y    and then compute z*Conjugate[z], mathematica,
  28. >instead of giving the desired answer x^2 + y^2, outputs something like
  29. >(I x + y)*Conjugate(I x + y). i.e. it refuses to simplify the complex
  30. >expression.
  31. >
  32. >i am wondering if it is possible to get around this problem. i am going
  33. >to to be using long expressions containing many complex symbols, and
  34. would 
  35. >like to get the final answer as a sum of one real part and one imaginary
  36. >part. i am a relatively inexperienced user of this software (and am
  37. using it
  38. >only for some very specific purposes)- so any suggestion will be greatly
  39. >appreciated. thanks.
  40. >
  41. >
  42. >saurav bhatta
  43. >(bhattas@presto.mit.edu)
  44.  
  45. If you've got Mathematica 2.0 or later try using the built in function
  46. ComplexExpand[].  It doesn't solve all the problems but I found it to
  47. be somewhat useful when trying to do the same thing on some very
  48. complicated expressions.  Note that after using ComplexExpand[] you
  49. can't just use Re[] and Im[] to pick off the real and imaginary parts
  50. although you can probably use the Part[] function to pick off those
  51. parts of the resulting expression.  That's what I ended up doing.
  52. (which, by the way, certainly doesn't mean it's the best solution)
  53. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  54. :: Ray Zimmerman                         Ray-Zimmerman@cornell.edu  ::
  55. ::..................................................................::
  56. ::  THIS SPACE FOR RENT. THIS SPACE FOR RENT. THIS SPACE FOR RENT.  ::
  57. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  58.