Fwd: [PATCH] Make Rational accept a wider range of types as arguments.

2008-10-21 Thread Fabian Seoane
(sorry if you receive this twice, my email client got crazy) But then Rational(1.) == Integer(1) and that is not only ugly but incorrect ... A solution would be to check if int(p) == p. yeah, that would be a nice solution, but I think that accepting float's as arguments is

Re: [PATCH] Make Rational accept a wider range of types as arguments.

2008-10-21 Thread Ondrej Certik
On Tue, Oct 21, 2008 at 11:00 PM, Fabian Seoane [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Fabian Seoane [EMAIL PROTECTED] Date: 2008/10/21 Subject: Re: [PATCH] Make Rational accept a wider range of types as arguments. To: sympy-patches@googlegroups.com

[sympy] Integrate(exp(polynomial))

2008-10-21 Thread Pekeika
Good morning, I'm trying to do the following symbolic integration: Integral(exp(v**2+3*v+2),v).doit() The real polynomial I'm trying to integrate is a lot bigger... and the whole function has 3 more integration parameters; but I do believe the polynomial is the problem. How can I make this

[sympy] Re: Integrate(exp(polynomial))

2008-10-21 Thread Ondrej Certik
Hi Pekeika! On Tue, Oct 21, 2008 at 7:27 PM, Pekeika [EMAIL PROTECTED] wrote: Good morning, I'm trying to do the following symbolic integration: Integral(exp(v**2+3*v+2),v).doit() The real polynomial I'm trying to integrate is a lot bigger... and the whole function has 3 more integration

[sympy] Re: Integrate(exp(polynomial))

2008-10-21 Thread Stepan Roucka
2008/10/21 Ondrej Certik [EMAIL PROTECTED]: Hi Pekeika! On Tue, Oct 21, 2008 at 7:27 PM, Pekeika [EMAIL PROTECTED] wrote: Good morning, I'm trying to do the following symbolic integration: Integral(exp(v**2+3*v+2),v).doit() The real polynomial I'm trying to integrate is a lot bigger...

[sympy] electric circuits solver

2008-10-21 Thread Ondrej Certik
Hi, I think it be cool to have this functionality. Here is some example how it could look like: http://www.swarthmore.edu/NatSci/echeeve1/Ref/mna/MNA6.html and here is some preliminary code: http://code.google.com/p/sympy/issues/detail?id=1173 from Travis Vaught, SFO of Enthought. The

[sympy] Re: Matrix inversion bug

2008-10-21 Thread Ondrej Certik
On Sat, Oct 18, 2008 at 7:41 PM, henrik johansson [EMAIL PROTECTED] wrote: Hi Ondrej, Thanks for the help. I dug a little deeper and found that the problem was that both the LU and GaussElimination solver could not detect zeros in the pivot elements. The problems disappeared if the pivot