MathGroup Archive 1995

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

Search the Archive

extract elements from a list


I've been trying to extract elements from a list x={a,b,c,d,e...}
then square each value and pair it up with the original unsquared value.
These two values form a point (2Dim) and I then try to pair up each
point with a given vertex of {5,25} and use Line[{{5,25},{a,a^2}}] to
graph this thing.

My main routine (reAlly kinda small)
is...Do[n=x[[i]];Line[{{5,25},{n,n^2}}],{i,10,1}]

When this is run nothing happens....

in this case x={5,5.5,5.4,5.3,5.2...ect}


I've been stuck for 2 weeks unable to get this to work and it is driving 
me
crazy because it should be sooo easy.

Chris




  • Prev by Date: axis scaling with altenative values
  • Next by Date: Polar Contour Plots
  • Previous by thread: axis scaling with altenative values
  • Next by thread: Re: extract elements from a list