The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Optimizing For loop statement
Replies: 1   Last Post: Feb 22, 2013 1:05 AM

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
Optimizing For loop statement
Posted: Feb 20, 2013 10:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello, here below you can find a piece of Mathematica code:

where sigma is a module which take as input parameters two scalars (a,c) and one interpolating function (b).
What I need is to update the data (vol), on which the interpolating function is built, according to the new result of the module sigma which takes, itsself, the interpolating function as input parameter.

I see that the For loop statement is really time-consuming, and I would like to know if it is possible to ptimize it.
thanks a lot

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.