Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: while loop through a list
Replies: 2   Last Post: Sep 21, 2012 2:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Paolo Tarpanelli

Posts: 49
Registered: 1/9/06
while loop through a list
Posted: Sep 19, 2012 4:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

i've this problem to solve:

let us suppose I've a function f which returns a random number and I start
with an intial list of n random number
I would like to check if each one of the element of this list is below zero
and if it is applies the function f till when the new random number is above 0.
This should be repeated for each element of the list such that at the end all
the list random numbers will be above 0.

Thanks in advance ,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.