Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7025

Re: Complex diagram

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Complex diagram
Date 2011-12-08 10:34 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jbq3qu$ipf$1@smc.vnet.net> (permalink)
References <201112071115.GAA04253@smc.vnet.net>

Show all headers | View raw


The easiest way is to use David Park's "Presentations" application,
which nicely handles complex variables. See

   http://home.comcast.net/~djmpark/DrawGraphicsPage.html

and the pdf version of his example "Complex Function Plot" at:

   http://www.st-andrews.ac.uk/~pl10/c/djmpark/

For example:

   <<Presentations`

   f[z_] := 2 Re[z] + 3 Im[z] I

    Draw2D[{DrawCartesianMap[f[z], {z, -(1 + I), 1 + I}]},
           Axes -> True]

Typically, you'd want to draw grids, either rectangular (as here) or
polar in the domain and the range, and highlight particular curves or
other sets in the domain and their images in the range. For example:

   domain = {DrawCartesianMap[z, {z, -(1 + I), 1 + I}],
             Red, ComplexCircle[0, 1]};
   image = domain // ComplexMap[f];
   GraphicsRow[{Draw2D[{domain}, Axes -> True],
                Draw2D[{image}, Axes -> True]}]

To do the polar grid, you'd just change DrawCartesianMap to DrawPolarMap 
and specify the range of z in terms of polar coordinates.

Otherwise, with bare Mathematica, you have to use ParametricPlot. For
example:

   ParametricPlot[Through[{Re, Im}[2 x + 3 y I]], {x, -1, 1}, {y, -1, 1}]


On 12/7/11 6:15 AM, =E9=81=93 =E5=8E=9A wrote:
> Can we draw complex funtions's diagram in Mathematica?
>
> For example, draw the picture of z=2*x+I*3*y
>

--
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Complex diagram Murray Eisenberg <murray@math.umass.edu> - 2011-12-08 10:34 +0000

csiph-web