MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: graphing x^2+4 on x, y, and i

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61838] Re: graphing x^2+4 on x, y, and i
  • From: Scott Hemphill <hemphill at hemphills.net>
  • Date: Tue, 1 Nov 2005 00:39:25 -0500 (EST)
  • References: <djv2un$oal$1@smc.vnet.net>
  • Reply-to: hemphill at alumni.caltech.edu
  • Sender: owner-wri-mathgroup at wolfram.com

thomas <likothecat at hotmail.com> writes:

> Hi,
> 
> Is it possible to make a 3d type of graph using the x, y, and i axes
> for the equation y = x ^ 2 + 4?

I use something like:

Plot4D[f_, {x_, xmin_, xmax_}, {y_, ymin_, ymax_}, opts___] :=
   Plot3D[{Abs[f], Hue[Arg[f]/(2*Pi)]}, {x, xmin, xmax}, {y, ymin, ymax},
    opts]

This function plots the absolute value of the complex function as the height,
and the argument as the hue.

Then:

z = (x+I*y)

Plot4D[z^2+4,{x,-5,5},{y,-5,5}]

The zeros can be identified by the kinks in the surface, and they are also
identified as the places which are surrounded by all the hue colors.

Scott
-- 
Scott Hemphill	hemphill at alumni.caltech.edu
"This isn't flying.  This is falling, with style."  -- Buzz Lightyear


  • Prev by Date: Re: problem with making boxes
  • Next by Date: Re: call notebook
  • Previous by thread: Re: Integration over polytop
  • Next by thread: Re: Re: graphing x^2+4 on x, y, and i