Differential equations

Luca Bruderer luca.bruderer at kst.ch
Wed Dec 11 17:16:00 EST 2002




Ok, first of all I'm sorry for my fault. That's the problem if you only
learn specific expressions in german which you would never learn in the
english course.
Anyway. What I would like to say is that I need this function for a python
script where I have a long equation where practically all parameters change
during runtime. So I'm not very fond of derive this huge equation and then
type it in, and I thought if even small pocket calculators with their CAS
(Ti-92) are able to perfom it, with python there shouldn't exist any
problem. To write code by myself would be funny (and not so easy when I
think at rules like:
(f(x)*g(x))'=f(x)'*g(x)+g(x)'*f(x), here especially the parsing is difficult
in my oppinion) but the loss of time wouldn't be comparable to the use for
my main script. All in all thank you for the hints. I will try them.

 Greetings

  ----- Original Message -----
> From: "Fernando Pérez" <fperez528 at yahoo.com>
> Newsgroups: comp.lang.python
> To: <python-list at python.org>
> Sent: Wednesday, December 11, 2002 10:25 PM
> Subject: Re: Differential equations
>
>
> > Luca Bruderer wrote:
> >
> > > Hi
> > >
> > > Is there a module that provides a function to do differential
equations
> in
> > > python, for example: func(2x^3+3x-10,x) returns a string or anything
> else
> > > like "6x^2+3". I googled around but I couldn't find anything.
> >
> > You are not asking about a differential equations module, but about a
> symbolic
> > differentiation module. Big, big difference. For the first, look at
SciPy.
> It
> > has features for _numerical_ integration of odes, and I think also some
> basic
> > stuff for pdes (could be wrong there). There's no well developed
symbolic
> > math project in python that I know of. Your best bet is PyGiNaC at:
> > http://cens.ioc.ee/projects/pyginac. But I know Pearu has been busy with
> > other things lately, so I don't know under how much development this is.
> >
> > I've also heard rumors of people calling Mathematica from python, but
> haven't
> > seen any code.
> >
> > Doing polynomials is trivial, but it's also trivial by hand, so you
don't
> need
> > a computer for that :) Writing a generic differentiator isn't really
that
> > difficult either, even if it's tricky to get all the details right. An
> > integrator, on the other hand...
> >
> > Good luck,
> >
> > f.
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>





More information about the Python-list mailing list