Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Suggestions to make code run faster?' topicStudent Support Forum > General > Archives > "Suggestions to make code run faster?"

Next Comment >Help | Reply To Topic
Author Comment/Response
William North
02/25/12 1:04pm

The overall goal of my current code is to get J[x] to run. I can get it get to run but the problem is that I need the variable segments to be around 10. When I run 2 segments it takes about 33 seconds, 4 segments 122 seconds, 6 segments 544 seconds. (I'm only interested in part I right now.)

When I try to run anything higher, I give up because it takes so long.

I've read that I could use NDsolve to evaluate the NIntegration once but I don't know how to implement it with two variables.

Thanks for any help.

Attachment: Assignment 2.nb, URL: ,

Subject (listing for 'Suggestions to make code run faster?')
Author Date Posted
Suggestions to make code run faster? William North 02/25/12 1:04pm
Re: Suggestions to make code run faster? Peter Pein 02/26/12 3:28pm
Re: Re: Suggestions to make code run faster? William North 02/26/12 8:42pm
Next Comment >Help | Reply To Topic