Message Boards Message Boards


Syntax Usage

Posted 9 years ago
2 Replies
0 Total Likes

I have two questions:

1) How can I divide an entire list of numbers by three and only keep the remainder? I also want to keep track what number correlates to that new data set.

2)What other resources would I use for this kind of question? I do not want to ask people and have to wait for answer every time a question arrises.

POSTED BY: Omega Pascubello
2 Replies


data = RandomInteger[{1, 100}, {20}];
{data, Map[Mod[#, 3] &, data]}

or even

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract