home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jgk@osc.COM (Joe Keane)
- Newsgroups: sci.math.symbolic
- Subject: Re: real-valued complex fns in Maple
- Summary: Take the real part.
- Keywords: branch
- Message-ID: <5853@osc.COM>
- Date: 16 Nov 92 07:57:25 GMT
- References: <CHUCK.92Nov11141130@nimbus.drexel.edu>
- Reply-To: Joe Keane <jgk@osc.com>
- Organization: Versant Object Technology, Menlo Park, CA
- Lines: 22
- Weather: sunny, high 70, low 43
- Moon-Phase: waning gibbous (63% of full)
-
- In article <CHUCK.92Nov11141130@nimbus.drexel.edu> chuck@nimbus.drexel.edu
- (Wombozni Klik) writes:
- >I've been trying to plot a function g(x) in Maple, which I know to be
- >real-valued for the entire range of values that I'm looking at. Now,
- >the function g(x) is complex in nature, but it, when used in
- >conjunction with evalc and evalf, will produce a real number.
- >
- >That's good, but whenever I try to plot the function, all I get is an
- >empty graph. Nothing shows up on screen.
-
- I often have a function which is actually real-to-real but any expression for
- it has complex intermediate values over some range. I know the symmetries of
- the function, but the computer can't figure this out. Even numerically, due
- to round-off error the results often have a small imaginary part, so this
- throws it off. One solution is just to explicitly take the real part, that
- is, plot Re(f(x)) instead of f(x). It's also a good idea to plot the
- imaginary part to make sure, because sometimes a function shifts to another
- branch when you don't want it to.
-
- --
- Joe Keane, amateur mathematician
- jgk@osc.com (uunet!amdcad!osc!jgk)
-