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?"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
02/26/12 3:28pm

Hi William,

in the definition of J[x_] add the option
Method->{Automatic,"SymbolicProcessing" -> 0}

The timing of your example has been nearly the same on my box. Now a 10-segment-plot runs in 17 seconds (J[2] is 139.128 -- does that value make sense?).

hth,
Peter


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
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic