<HTML><BODY>Actually<br>These two functions namely F1 and F2 are really exponential and Bessel functions respectively. But I can not change its analytic form..<br><br>I mean is there way to get more quickly the result?<br>Let's say above mentioned two functions, both of them, one function but the dimension I showed should not be changed..<br><br><br>What do you think here whether the problem is with 3 dimension or....???<br>Thanks in advance for your answer!<br><br>Воскресенье, 30 декабря 2012, 13:13 +01:00 от oc-spam66 <oc-spam66@laposte.net>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;" class="mailru-blockquote">
        <div id=""><div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div id="style_13568696140000000003" class="mr_read__body">
                <base target="_self" href="https://e.mail.ru/cgi-bin/">
                
                        <div id="style_13568696140000000003_BODY">Hello,<br><br>> else:<br>>     val11[i][j], val22[i][j] = integrate.quad(lambda x: F1(x)*F2(x), 0, pi)<br><br>> But, this calculation takes so long time, let's say about 1 hour<br>> (theoretically)... Is there any better way to easily and fast calculate<br>> the process such as [ F( i ) for i in xlist ] or something like that<br>> rather than using for loop?<br><br>* What are F1() and F2()? Do they depend on anything else than 'x'? <br>Maybe you meant Fi() and Fj(). In that case, can you benefit of a <br>symmetry property?<br>* It's likely that all the computing time is in the "integrate" <br>operation (check it with a profiler? %prun under ipython for example). <br>In this situation, there's no improvement possible, apart from using a <br>simpler function than integrate() that might be vectorized (this depends <br>on the definition of Fi())<br>_______________________________________________<br>NumPy-Discussion mailing list<br><a href="sentmsg?compose&To=NumPy%2dDiscussion@scipy.org">NumPy-Discussion@scipy.org</a><br><a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br></div>
                        
                
                <base target="_self" href="https://e.mail.ru/cgi-bin/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>