MathGroup Archive 1995

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

Search the Archive

Re: Question about LISTS

  • Subject: [mg2711] Re: Question about LISTS
  • From: Christian.Jost at epc.u-psud.fr (Christian Jost)
  • Date: Sat, 9 Dec 1995 01:54:12 -0500
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Universite Paris-Sud XI

In article <4a3ejh$qnc at dragonfly.wri.com>, "cjkelly at bu.edu"
<cjkelly at bu.edu> wrote:

> The idea is to extract elements out of a list and then plug them
> into LINE[{{x,y},{x1,y1}}]=20

Use pure functions (see Mathematica manual), they are an elegant tool for
such tasks:

In[14]:=3D
  x=3D{4,5,-3,1};

In[18]:=3D
  Line[{{0,0},{#,#^2}}]& /@ x

Out[18]=3D
  {Line[{{0, 0}, {4, 16}}], Line[{{0, 0}, {5, 25}}],=20
 Line[{{0, 0}, {-3, 9}}], Line[{{0, 0}, {1, 1}}]}

In[19]:=3D
  Show[Graphics[%]]

Hope that helps, Christian.

--=20
Christian Jost, Universit=E9 Paris-Sud XI, Orsay, France
jost at psisun.u-psud.fr


  • Prev by Date: Partial Differential Equations in Mathematica
  • Next by Date: Re: Box counting dimension for fractals via Mathematica??
  • Previous by thread: Re: Partial Differential Equations in Mathematica
  • Next by thread: Re: Question about LISTS