Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

LISTS and more LISTS

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2829] LISTS and more LISTS
  • From: "cjkelly at bu.edu" <cjkelly at bu.edu>
  • Date: Sat, 23 Dec 1995 03:18:02 -0500

Enclosed is a little ditty I've been trying to get to work but as is
clear, it has a bug and I have no clue as to what is wrong. 

It is just supposed to extract elements out of a LIST then peform 
various operations on these elements one of which is to plot a
series of lines (or rays) starting from the point {25,5}

Clear [f,x]
x={10,8,6,5.5,5.4,5.3,5.2,5.1,5.01,5.001,5.0001,5.0001}
f[x_]=x^2
Do [Line[{{5,25},{x[[i]],f[x[[i]]]}},{i,Length [x]}]]

Clear [f,x]
x={10,8,6,5.5,5.4,5.3,5.2,5.1,5.01,5.001,5.0001,5.0001}
f[x_]=x^2
Do [Line[{{5,25},{x[[i]],f[x[[i]]]}},{i,Length [x]}]]


  • Prev by Date: Mathematica as a programming language.
  • Next by Date: Thanks for help with lists (all who replied)
  • Previous by thread: Re: Mathematica as a programming language.
  • Next by thread: Re: LISTS and more LISTS