Issue 1421 in sympy: QRdecomposition fails for some matrices

2009-05-14 Thread codesite-noreply
Comment #4 on issue 1421 by Vinzent.Steinberg: QRdecomposition fails for some matrices http://code.google.com/p/sympy/issues/detail?id=1421 Yep, probably you are right. Currently sympy does exact linear algebra (if you use Rational()), so QRsolve is mainly of educational interest. :) If I

Issue 1419 in sympy: integrate(x/(x**2-9), x) gives wrong answers

2009-05-14 Thread codesite-noreply
Updates: Status: Verified Comment #7 on issue 1419 by plaes800: integrate(x/(x**2-9), x) gives wrong answers http://code.google.com/p/sympy/issues/detail?id=1419 Fixed in ce61f8d057e46b36dc2cd879891e74a7f9320201 by Mateusz including following testcase: def test_ratint_logpart():

Issue 1421 in sympy: QRdecomposition fails for some matrices

2009-05-14 Thread codesite-noreply
Comment #5 on issue 1421 by Vinzent.Steinberg: QRdecomposition fails for some matrices http://code.google.com/p/sympy/issues/detail?id=1421 Yep, probably you are right. Currently sympy does exact linear algebra (if you use Rational()), so QRsolve is mainly of educational interest. :) If I

Issue 1416 in sympy: integrate((x**3 - x)/ (x - 1), x) gives traceback

2009-05-14 Thread codesite-noreply
Updates: Status: Verified Comment #2 on issue 1416 by plaes800: integrate((x**3 - x)/ (x - 1), x) gives traceback http://code.google.com/p/sympy/issues/detail?id=1416 Commited as ce61f8d057e46b36dc2cd879891e74a7f9320201 by Mateusz -- You received this message because you are listed

Issue 1406 in sympy: solve solves b*a**x-y, y-b*a**x, or y-a**x for x but not a**x-y

2009-05-14 Thread codesite-noreply
Updates: Status: Accepted Owner: plaes800 Labels: Solvers Comment #1 on issue 1406 by plaes800: solve solves b*a**x-y, y-b*a**x, or y-a**x for x but not a**x-y http://code.google.com/p/sympy/issues/detail?id=1406 This has been fixed already, just needs testcase before

Issue 1420 in sympy: subs() seems to fail against D(x(t), t)

2009-05-14 Thread codesite-noreply
Comment #8 on issue 1420 by 2006.Uchida: subs() seems to fail against D(x(t), t) http://code.google.com/p/sympy/issues/detail?id=1420 Can I ask you a question here? I made some codes which allows you to create motion equations of dynamics in sympy. Where can I share my a little work with

Issue 1420 in sympy: subs() seems to fail against D(x(t), t)

2009-05-14 Thread codesite-noreply
Comment #9 on issue 1420 by ondrej.certik: subs() seems to fail against D(x(t), t) http://code.google.com/p/sympy/issues/detail?id=1420 Please send an email to: http://groups.google.com/group/sympy also checkout pydy: http://code.google.com/p/pydy/ -- You received this message because you

Issue 1188 in sympy: integrate(1/sin(x)**2,x) fails

2009-05-14 Thread codesite-noreply
Updates: Status: PassedReview Comment #14 on issue 1188 by ondrej.certik: integrate(1/sin(x)**2,x) fails http://code.google.com/p/sympy/issues/detail?id=1188 I think this patch is ok. I'll push it in soon. -- You received this message because you are listed in the owner or CC fields of

Re: [PATCH] Add a new Matrix.QRsolve method.

2009-05-14 Thread Riccardo Gori
Hello, thanks for the patch! Just a comment, see below: On Wednesday 13 May 2009 19:54:18 Jochen Voss wrote: The new method is slower than Matrix.LUsolve, but should be more stable. The commit also fixes a closeby comment and adds a new docstring. This fixes issue #907 from the issue

Re: [PATCH] Add a new Matrix.QRsolve method.

2009-05-14 Thread Jochen Voß
Hi Riccardo, 2009/5/14 Riccardo Gori goricca...@gmail.com: + # back substitution to solve R*x = y: + # We build up the result backwards in the vector 'x' and reverse it + # only in the end. + x = [] + n = R.lines + for j in range(n-1, -1, -1): + tmp = y[j,:] Why do you use y[j,:]

[PATCH] Add test for issue 1406

2009-05-14 Thread Priit Laes
Issue #1406 has been fixed in tree meanwhile (probably thanks to Mateusz) so lets just add a testcase for future. Can be seen at: https://code.plaes.org/git/sympy.git/commit/?id=b33806aa5e5e6cc14320dfe991f82cec2c70ad4b --~--~-~--~~~---~--~~ You received this

Re: [PATCH] Rename Basic.is_fraction to Basic.is_rational_function

2009-05-14 Thread Mateusz Paprocki
Hi, On Thu, May 14, 2009 at 06:37:15PM +0300, Priit Laes wrote: Renames Basic.is_fraction to Basic.is_rational_function and adds a docstring with doctests. Can be viewed here: https://code.plaes.org/git/sympy.git/commit/?h=patches-0514id=5d27fd77f72bc3887fae02ad568b00838227e3b8 or as an

[PATCH] Fix corner case in bernoulli ode solver

2009-05-14 Thread Priit Laes
Bernoulli ODE has one case where it should be solved using different algorithm. Currently we don't detect it and hilarity ensues in the form of divide by zero :) https://code.plaes.org/git/sympy.git/commit/?h=patches-0514id=56524bf458074ac9635f537ef6f83c4727ea7a56

Re: [PATCH] Fix corner case in bernoulli ode solver

2009-05-14 Thread Aaron S. Meurer
I thought I already sent in a patch to fix this. Aaron Meurer Sent from my iPod Touch. On May 14, 2009, at 9:53 AM, Priit Laes plaes...@gmail.com wrote: Bernoulli ODE has one case where it should be solved using different algorithm. Currently we don't detect it and hilarity ensues in the

[PATCH] Allow Function.eval to return non-instances of Basic.

2009-05-14 Thread Fabian Pedregosa
Specially annoying was the fact that you could not return list or tuples. I don't know the reason of this behaviour, fortunately changing it did not break any tests. --- sympy/core/function.py | 17 ++--- sympy/core/tests/test_functions.py |7 +++ 2 files

Re: [PATCH] Small cleanups for ODE tests

2009-05-14 Thread Vinzent Steinberg
2009/5/14 Priit Laes plaes...@gmail.com Spotted some low-hanging fruit in ODE solver and tests https://code.plaes.org/git/sympy.git/commit/?id=db94caf3f64b7bfa4dd40266c0eeafc774f7233d x, C1 = map(Symbol, ['x', 'C1']) Please note that you can use x, C1 = symbols('x C1') Vinzent

Re: [PATCH] Add a new Matrix.QRsolve method.

2009-05-14 Thread Jochen Voß
Hi, I'll be travelling for a few days and will be able to send a new patch only sometimes next week. What I suggest to do is: 1) Remove the more stable wording from the QRsolve docstring. 2) Add warnings to the both the LUsolve and the QRsolve docstrings, stating that these functions should

Re: Added support for the integration of 1/sin(x)**(2k) and 1/cos(x)**(2k), fixes issue #1188

2009-05-14 Thread Akshay Srinivasan
Can this be passed in now? I didn't see any more comments on the issues page. On Mar 30, 11:08 am, Ondrej Certik ond...@certik.cz wrote: Thanks! On Sun, Mar 29, 2009 at 11:01 PM,AkshaySrinivasan akshaysriniva...@gmail.com wrote: This patch adds support for the integration of functions of

[sympy] Re: Random Variables

2009-05-14 Thread Stepan Roucka
Hello, just FYI, there are already random number objects in sympy, you can access them this way: from sympy.statistics import * x = Normal(0,1) x.random() -0.181742214115 a = x.random(10) print a Sample([-1.47958009923, -1.23521203179, -0.783418473091, -0.0760736376295, -0.0466694687666,

[sympy] Re: solve() and diff() with Symbol versus Function

2009-05-14 Thread Fabian Pedregosa
Ondrej Certik wrote: On Mon, May 11, 2009 at 9:23 PM, Luke hazelnu...@gmail.com wrote: Would there be any reason that the following should not be implemented: t = Symbol('t') q1 = Function('q1')(t) solve(q1 - 1, q1) Currently, the solve function gives:

[sympy] Extending Python

2009-05-14 Thread Alan Bromborsky
Which is the best python group/list to make the suggestion to that in future versions of python operator precedence for overloaded operators in classes should be programmable? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[sympy] Re: Could Someone Tell How to Install python-sphinx on windows so it works

2009-05-14 Thread Alan Bromborsky
Grissiom wrote: Right. So if we patch sympy with the patch above, it will stop working on Debian/Ubuntu and maybe other distros. One option is to just ship the rst2html.py wrapper with sympy, if you look into it, essentially what it is doing is just: from docutils.core import

[sympy] Re: Could Someone Tell How to Install python-sphinx on windows so it works

2009-05-14 Thread Priit Laes
Ühel kenal päeval, N, 2009-05-14 kell 07:11, kirjutas Alan Bromborsky: I am afraid that is not the only problem for windows. There are lots of little things like no 'rm' utility. I also tried to make the documentation (make html) under Cywin and have gotten nowhere! How about ask for

[sympy] Re: Could Someone Tell How to Install python-sphinx on windows so it works

2009-05-14 Thread Gael Varoquaux
On Thu, May 14, 2009 at 05:58:08PM +0300, Priit Laes wrote: Ühel kenal päeval, N, 2009-05-14 kell 07:11, kirjutas Alan Bromborsky: I am afraid that is not the only problem for windows. There are lots of little things like no 'rm' utility. I also tried to make the documentation (make

[sympy] Re: Extending Python

2009-05-14 Thread Robert Kern
On Thu, May 14, 2009 at 06:09, Alan Bromborsky abro...@verizon.net wrote: Which is the best python group/list to make the suggestion to that in future versions of python operator precedence for overloaded operators in classes should be programmable? As I've told you before, you can't make

[sympy] Re: solve() and diff() with Symbol versus Function

2009-05-14 Thread Ondrej Certik
On Thu, May 14, 2009 at 3:12 AM, Fabian Pedregosa fab...@fseoane.net wrote: Maybe the distinction between Symbol and Function in SymPy is rather artificial. After all, a function is an unknown variable with the same operations as Symbol, being the only difference with symbol that they live in

[sympy] Re: solve() and diff() with Symbol versus Function

2009-05-14 Thread Fabian Pedregosa
Ondrej Certik wrote: On Thu, May 14, 2009 at 3:12 AM, Fabian Pedregosa fab...@fseoane.net wrote: Maybe the distinction between Symbol and Function in SymPy is rather artificial. After all, a function is an unknown variable with the same operations as Symbol, being the only difference with

[sympy] Re: cannot get sympy module to load

2009-05-14 Thread Fabian Pedregosa
dennis.rose...@gmail.com wrote: I am teaching a course for using a variety of software for mathematics, and I am teaching a bit of Python. I just downloaded sympy-0.6.4, but have never used it before. (I have done other Python programming) I had planned to present something on sympy but

[sympy] Bessel Function Zeros

2009-05-14 Thread Ondrej Certik
Hi, for testing that my FEM calculation of the radial Schroedinger equation is correct, I test the claculated eigenvalues. One example is a 3D spherical well, the energies of which are zeros of the spherical bessel function. Here is how to calculate in sympy (resp. mpmath): from sympy.mpmath

[sympy] Re: solve() and diff() with Symbol versus Function

2009-05-14 Thread Ondrej Certik
On Thu, May 14, 2009 at 3:19 PM, Fabian Pedregosa fab...@fseoane.net wrote: Ondrej Certik wrote: On Thu, May 14, 2009 at 3:12 AM, Fabian Pedregosa fab...@fseoane.net wrote: Maybe the distinction between Symbol and Function in SymPy is rather artificial. After all, a function is an unknown

[sympy] Re: cannot get sympy module to load

2009-05-14 Thread Ondrej Certik
On Thu, May 14, 2009 at 3:22 PM, Fabian Pedregosa fab...@fseoane.net wrote: dennis.rose...@gmail.com wrote: I am teaching a course for using a variety of software for mathematics, and I am teaching a bit of Python. I just downloaded sympy-0.6.4, but have never used it before. (I have done

[sympy] Re: Bessel Function Zeros

2009-05-14 Thread Ondrej Certik
On Thu, May 14, 2009 at 4:10 PM, Ondrej Certik ond...@certik.cz wrote: On Thu, May 14, 2009 at 3:53 PM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Thu, May 14, 2009 at 03:47:59PM -0700, Ondrej Certik wrote: Hi, for testing that my FEM calculation of the radial Schroedinger

[sympy] Re: Random Variables

2009-05-14 Thread Yau Kwan Kiu
I know sympy has random variables, and so does sage, but they cannot be manipulated (+-*/ exp, integrate...) and so their uses are limited; and I couldn't find anything like that in the googlable literature. Let's put it this way: A student may want to check his answers in his statistics exam