Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71667

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

Date 2014-05-16 19:01 +0100
From duncan smith <buzzard@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: The possibility integration in Python without an equation, just an array-like file
References <CADEzsfh4Ub8Cyj_KMYkCK6M9D3uL2p-69+F9POhjGsp80pNxkQ@mail.gmail.com> <mailman.10070.1400254020.18130.python-list@python.org>
Message-ID <53765276$0$1349$862e30e2@ngroups.net> (permalink)

Show all headers | View raw


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 (coefficients and exponents) of P. Integrating is easy
> after that.
>
> 2. other way:
> Use Stair-functions: you can approximate the Value of IV() by the sum
> over T(E_i) * (E_{i+1} - E_i) s.t. E_0 = E_F-\frac{eV}{2} and E_n =
> E_F+\frac{eV}{2}.
>

snip]

Or piecewise polynomials (splines).

Duncan

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: The possibility integration in Python without an equation, just an array-like file Johannes Schneider <johannes.schneider@galileo-press.de> - 2014-05-16 17:01 +0200
  Re: The possibility integration in Python without an equation, just an array-like file duncan smith <buzzard@invalid.invalid> - 2014-05-16 19:01 +0100

csiph-web