home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / math / symbolic / 2990 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. Path: sparky!uunet!wupost!cs.uiuc.edu!ux1.cso.uiuc.edu!uwm.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!charnel!rat!decwrl!pacbell.com!pacbell!osc!jgk
  2. From: jgk@osc.COM (Joe Keane)
  3. Newsgroups: sci.math.symbolic
  4. Subject: Re: real-valued complex fns in Maple
  5. Summary: Take the real part.
  6. Keywords: branch
  7. Message-ID: <5853@osc.COM>
  8. Date: 16 Nov 92 07:57:25 GMT
  9. References: <CHUCK.92Nov11141130@nimbus.drexel.edu>
  10. Reply-To: Joe Keane <jgk@osc.com>
  11. Organization: Versant Object Technology, Menlo Park, CA
  12. Lines: 22
  13. Weather: sunny, high 70, low 43
  14. Moon-Phase: waning gibbous (63% of full)
  15.  
  16. In article <CHUCK.92Nov11141130@nimbus.drexel.edu> chuck@nimbus.drexel.edu
  17. (Wombozni Klik) writes:
  18. >I've been trying to plot a function g(x) in Maple, which I know to be
  19. >real-valued for the entire range of values that I'm looking at. Now,
  20. >the function g(x) is complex in nature, but it, when used in
  21. >conjunction with evalc and evalf, will produce a real number. 
  22. >
  23. >That's good, but whenever I try to plot the function, all I get is an
  24. >empty graph. Nothing shows up on screen. 
  25.  
  26. I often have a function which is actually real-to-real but any expression for
  27. it has complex intermediate values over some range.  I know the symmetries of
  28. the function, but the computer can't figure this out.  Even numerically, due
  29. to round-off error the results often have a small imaginary part, so this
  30. throws it off.  One solution is just to explicitly take the real part, that
  31. is, plot Re(f(x)) instead of f(x).  It's also a good idea to plot the
  32. imaginary part to make sure, because sometimes a function shifts to another
  33. branch when you don't want it to.
  34.  
  35. --
  36. Joe Keane, amateur mathematician
  37. jgk@osc.com (uunet!amdcad!osc!jgk)
  38.