Top-rated recipes tagged "integration"http://code.activestate.com/recipes/tags/integration/top/2010-02-18T06:47:09-08:00ActiveState Code RecipesAn Erlang Port in Python (Python)
2010-02-18T06:47:09-08:00thanos vassilakishttp://code.activestate.com/recipes/users/4048784/http://code.activestate.com/recipes/534162-an-erlang-port-in-python/
<p style="color: grey">
Python
recipe 534162
by <a href="/recipes/users/4048784/">thanos vassilakis</a>
(<a href="/recipes/tags/distributed/">distributed</a>, <a href="/recipes/tags/erlang/">erlang</a>, <a href="/recipes/tags/integration/">integration</a>, <a href="/recipes/tags/process/">process</a>).
Revision 3.
</p>
<p>Erlang has two built-in interoperability mechanisms. One is distributed Erlang nodes and the other one is ports.
Ports provide the basic Erlang mechanism for communication with the external world. They provide a byte-oriented interface to an external program. When a port has been created, Erlang can communicate with it by sending and receiving lists of bytes. This recipe cooks an Erlang port in python. Making it easy for Erlang to instantiate and use python objects. Like most simple port implementations it uses an external python program and lets Erlang communicate via standard input and write to standard output. Theoretically, the external program could be written in any programming language. This recipe is pretty abstract and you will have to implement your own encode and decoding scheme.</p>
Gaussian integration with or without Log singularity (Python)
2009-09-09T21:03:10-07:00Gabriel Genellinahttp://code.activestate.com/recipes/users/924636/http://code.activestate.com/recipes/576900-gaussian-integration-with-or-without-log-singulari/
<p style="color: grey">
Python
recipe 576900
by <a href="/recipes/users/924636/">Gabriel Genellina</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>, <a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/integration/">integration</a>, <a href="/recipes/tags/math/">math</a>).
</p>
<p>The Gaussian quadrature is among the most accurate integration scheme for smooth integrands. It replaces a integral by a sum of sampled values of the integrand function times some weight factors.</p>
<p>This is strictly a minor rewrite of <a href="http://code.activestate.com/recipes/52292/">recipe 52292</a>, just to make it compatible with Python 2.4 and above. 2to3 converts it perfectly to be used with Python 3.x</p>
<p><em>All</em> credit is due to the original author, Alexander Pletzer.</p>
Quick Numerical Integration (Python)
2009-05-19T05:24:37-07:00alexander bakerhttp://code.activestate.com/recipes/users/4166679/http://code.activestate.com/recipes/576765-quick-numerical-integration/
<p style="color: grey">
Python
recipe 576765
by <a href="/recipes/users/4166679/">alexander baker</a>
(<a href="/recipes/tags/integration/">integration</a>, <a href="/recipes/tags/scipy/">scipy</a>).
</p>
<p>Quick Numerical Integration</p>