Integration of differential equations in PHP

Integration of differential equations in PHP

am 23.10.2007 22:05:20 von phdfromic

Is there a package of functions to do numerical integration in PHP ?

Re: Integration of differential equations in PHP

am 23.10.2007 22:39:21 von axlq

In article <1193169920.488290.289670@q3g2000prf.googlegroups.com>,
Zayde wrote:
>Is there a package of functions to do numerical integration in PHP ?

If a google search turns up nothing, there are such packages for
the C language which would be easy to translate to php. The
functions in _Numerical Recipes in C_ (available for free online at
http://www.nrbook.com/a/bookcpdf.php ) would work too.

-A

Re: Integration of differential equations in PHP

am 23.10.2007 23:06:06 von Steve

"Zayde" wrote in message
news:1193169920.488290.289670@q3g2000prf.googlegroups.com...
> Is there a package of functions to do numerical integration in PHP ?


you need to be more specific than that. do you need something of the
magnitude of fourth order runge kutta, or something as simple as statistics?

Re: Integration of differential equations in PHP

am 23.10.2007 23:37:15 von Bucky Kaufman

"Zayde" wrote in message
news:1193169920.488290.289670@q3g2000prf.googlegroups.com...

> Is there a package of functions to do numerical integration in PHP ?

No, Mr. Beacon.
There are no facilities in PHP for working with numbers.

Seriously - I would have thought that someone who could spell diffy-eq would
be able to ask a more luring question than that.
I know you're just posting anything - but a live worm works better than
those rubber ones any day.

If you want to lure smartified geeks - you're gonna have to use a less
conspicuous bobber.

btw... tell your dad that "Bucky" says, "hi". ;)

Re: Integration of differential equations in PHP

am 24.10.2007 00:09:22 von Shelly

"Zayde" wrote in message
news:1193169920.488290.289670@q3g2000prf.googlegroups.com...
> Is there a package of functions to do numerical integration in PHP ?
>

"differential equations" has much more to the subject than simply doing an
integration. However, for evaluating an integral (now it is called an
"anti-derivative" for some strange reason, it is pretty easy to do a
Simpson's rule. You have all your points in an array and simply march
through it appropriately (1-4-2-4-2........-4-1) and multiply the product
properly. No big deal.

Shelly

Re: Integration of differential equations in PHP

am 27.10.2007 10:16:06 von petersprc

Hi,

You can use the Numerical class by Richard Munroe:

http://www.phpclasses.org/browse/package/2812.html

You can also run scilab from the command line:

scilab -nw < /tmp/input

Where the file contains your scilab functions. scilab examples:

http://pauillac.inria.fr/cdrom/www/scilab/doc/intro/intro-ht ml001.html


On Oct 23, 3:05 pm, Zayde
wrote:
> Is there a package of functions to do numerical integration in PHP ?