The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Enlong Liu
Dear All, I have a question about the integration with Python. The equation is as below: and I want to get values of I with respect of V. E_F is known. But for T(E), I don't have explicit equation, but a .dat file containing two columns, the first is E, and the second is T(E). It is also in the

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Dave Angel
On 05/16/2014 04:49 AM, Enlong Liu wrote: Dear All, I have a question about the integration with Python. The equation is as below: and I want to get values of I with respect of V. E_F is known. But for T(E), I don't have explicit equation, but a .dat file containing two columns, the first is E,

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Enlong Liu
Sorry for this inconvenience. Since my file is a little large, I think it will be more difficult for fellows to check. I will now paste the attachment below. The file for T(E) consists of two columns, the first is E and the second is T(E). What I want is to integrate this function in a certain

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread duncan smith
On 16/05/14 13:57, Enlong Liu wrote: Sorry for this inconvenience. Since my file is a little large, I think it will be more difficult for fellows to check. I will now paste the attachment below. The file for T(E) consists of two columns, the first is E and the second is T(E). What I want is

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Johannes Schneider
If you do not have a closed form for T(E) you cannot calculate the exact value of I(V). Anyway. Assuming T is integrable you can approximate I(V). 1. Way to do: interpolate T(E) by a polynomial P and integrate P. For this you need the equation (coefficients and exponents) of P. Integrating is

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Ernest Bonat, Ph.D.
Hi Enlong You may try standard numerical integration solutions based on the E and T(E) columns data provided. Ernest Bonat, Ph.D. On Fri, May 16, 2014 at 1:49 AM, Enlong Liu liuenlon...@gmail.com wrote: Dear All, I have a question about the integration with Python. The equation is as

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Terry Reedy
On 5/16/2014 4:49 AM, Enlong Liu wrote: Dear All, I have a question about the integration with Python. For numerical integration, you should look as numpy and scipy and perhaps associated packages. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread duncan smith
On 16/05/14 16:01, Johannes Schneider wrote: If you do not have a closed form for T(E) you cannot calculate the exact value of I(V). Anyway. Assuming T is integrable you can approximate I(V). 1. Way to do: interpolate T(E) by a polynomial P and integrate P. For this you need the equation

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Ernest Bonat, Ph.D.
1. There are a lot of spinet codes in many languages for numerical integration. I may find a good one in Python for you? try SciPy.org ( http://www.scipy.org/about.html) you may find something there. 2. Look at the wiki too: https://wiki.python.org/moin/NumericAndScientific. I hope this help a