Message Boards Message Boards

0
|
6937 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Syntax Usage

Posted 10 years ago

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

example

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

or even

{data,Mod[data,3]}
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract