Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Lists - two questions' topicStudent Support Forum > General > "Lists - two questions"

Next Comment >Help | Reply To Topic
Author Comment/Response
enedene
09/16/10 12:19pm

I have a problem with basic list options.
1. I have a list over 1000+ elements. How do I find out how many elements are in that list?
2.
mylist=ReadList["myfile", {Number, Number}]

Now I want to read list and multiply the first Number by 100 and Log second Number.

mylist=ReadList["myfile", {Number, Log[Number]}]

Log works fine, but:
mylist=ReadList["myfile", {100*Number, Log[Number]}]
does not.
I've tried to define a function metersTOcentimeters[x_]:=100*x
and then:
mylist=ReadList["myfile", {metersTOcentimeters[Number], Log[Number]}]
but it still doesn't work.

URL: ,

Subject (listing for 'Lists - two questions')
Author Date Posted
Lists - two questions enedene 09/16/10 12:19pm
Re: Lists - two questions yehuda ben-s... 09/18/10 11:17am
Re: Re: Lists - two questions Peter Pein 09/19/10 05:29am
Next Comment >Help | Reply To Topic