MathGroup Archive 1999

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

Search the Archive

Re: ParametricPlot help please

  • To: mathgroup at
  • Subject: [mg17022] Re: [mg16997] ParametricPlot help please
  • From: BobHanlon at
  • Date: Wed, 14 Apr 1999 02:11:45 -0400
  • Sender: owner-wri-mathgroup at

In a message dated 4/10/99 5:39:36 AM, robpeterson at writes:

>Some time ago several kind souls on this ng helped me do some conformal
>transformation plots (this one is part of the curves describing the fields
>in a parallel plate capacitor).  We used a series of ParametricPlots. 
>I would like to understand how this worked - maybe I can learn something
>about Mathematica.  I think I get the use of Map[] but I am stuck on the
>use of
>ParametricPlot[#1,.....].  I have looked high and low and I do not find
>mention of the #1 parameter.  If I ever get thru this, I'll start trying
>understand the Partition[Thread[].... ]  part.


See on-line help or manual for Slot and Function.  # represents the first 
argument supplied to a pure function and #n represents the n-th argument.  
Consequently, # and #1 are the same.   ## represents the  sequence of all 
arguments supplied.

f[#]& /@ {a, b, c, d}

{f[a], f[b], f[c], f[d]}

f[##, #2]& [x,y,z]

f[x, y, z, y]

#^2& /@  {a, b, c, d}

{a^2, b^2, c^2, d^2}

You can also use parts of arguments

f[#[[1]], #[[2]]]& /@ {{a,b}, {c,d}}

{f[a, b], f[c, d]}

Bob Hanlon

  • Prev by Date: List of function-heads
  • Next by Date: Re: Problems with Solve
  • Previous by thread: ParametricPlot help please
  • Next by thread: Re: ParametricPlot help please