All Questions
5 questions
4
votes
2
answers
291
views
How to speedup the integration of a tabulated function?
The problem
Consider some pre-generated list with coordinates x1,x2,x3,x4 and values of some function ...
2
votes
1
answer
101
views
Why does the integration of this symbolic matrix slow down after compilation?
There's a symbolic matrix as the following. Why does the integration of the symbolic matrix slow down after compilation? How to eliminate the error information in red? Thanks.
Note: The sample matrix ...
5
votes
1
answer
443
views
Why does NIntegrate become much faster if I evaluate a function, then compile it, then make it numerical?
I am using Mathematica for numerical integrals in optics. By accident, I found out that NIntegrate becomes faster by an order of magnitude for a function I'm integrating, if I take the following steps:...
2
votes
0
answers
305
views
integration of a list of gaussian type orbitals (GTO)
I am currently trying to integrate various components of a current density (j={jx,jy,jz}) over space.
The problem is that the current j is extracted from a quantum chemical computation and is a sum of ...
7
votes
1
answer
2k
views
Speeding up numerical Fourier Transform
I wrote this function NFourierTransform, which takes a function $f(k)$ and numerically calculates the fourier transform integral for discrete values of $k \in [k_{\...