Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.3K Views
|
3 Replies
|
7 Total Likes
View groups...
Share
Share this post:

How to use a loop of a big amount of code lines

Posted 7 years ago

I have done a whole program in Wolfram Mathematica and now I have to execute it changing one variable again and again. The tool I'd like to use is Do, but I don't know how to use it.

POSTED BY: mikel gomez ruiz
3 Replies
Posted 7 years ago
Attachments:
POSTED BY: David Keith

This seems like the sort of thing one might find in Help > Wolfram Documentation.

POSTED BY: Daniel Lichtblau
Posted 7 years ago

If you need to further process the output from your 'program' then Table is a better option than Do. Either way, you will have to express your program as a function that takes the variable you need to iterate over as an argument.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard