Re: Graphing Functions
- To: mathgroup at smc.vnet.net
- Subject: [mg22534] Re: Graphing Functions
- From: Harald Giese <giese at ifm.uni-hamburg.de>
- Date: Thu, 9 Mar 2000 03:24:22 -0500 (EST)
- Organization: Institut fuer Meereskunde, Universitaet Hamburg
- References: <8a51tk$dc7@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Julian P. Charko" wrote: > > As a relative novice in Mathematica, I need help with a very basic > problem involving the graphing of a certain function. > > The function in question is: > > x^(1/3) - > x^(2/3). > > The plotting function Plot[f, xmin, xmax] seems unable to deal with cube > roots of negative fractional real numbers. > > Please let me know how I can obtain a plot of the above function over > the real number line from say, from x = -10 to x = 10. > Julian, Because roots of negative numbers generally return complex numbers, use "Abs": Plot[Abs[x^(1/3) - x^(2/3)], {x, -10, 10}] Regards, Harald -- Harald Giese Email: giese at dkrz.de Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724 Institut fuer Meereskunde der Universitaet Hamburg (Institute of Oceanography of the University of Hamburg) Troplowitzstrasse 7, D-22529 Hamburg