Re: Issue 3014 in sympy: mathml printing doctest failure

2012-01-23 Thread sympy
Comment #3 on issue 3014 by ness...@gmail.com: mathml printing doctest failure http://code.google.com/p/sympy/issues/detail?id=3014 % uname -a Linux laptop-tom 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux % python --version Python 2.7.2+ I hope this is helpful. --

Re: Issue 3023 in sympy: integrate(exp(-I*x**2), (x, -oo, oo)) is wrong!

2012-01-23 Thread sympy
Comment #1 on issue 3023 by ness...@gmail.com: integrate(exp(-I*x**2), (x, -oo, oo)) is wrong! http://code.google.com/p/sympy/issues/detail?id=3023 pull request: https://github.com/sympy/sympy/pull/1017 -- You received this message because you are subscribed to the Google Groups

Re: Issue 3023 in sympy: integrate(exp(-I*x**2), (x, -oo, oo)) is wrong!

2012-01-23 Thread sympy
Updates: Status: Fixed Comment #2 on issue 3023 by asmeu...@gmail.com: integrate(exp(-I*x**2), (x, -oo, oo)) is wrong! http://code.google.com/p/sympy/issues/detail?id=3023 It was merged. Thanks! -- You received this message because you are subscribed to the Google Groups

Re: [sympy] Re: ImmutableMatrix

2012-01-23 Thread Matthew Rocklin
Pull request for further discussion is here https://github.com/sympy/sympy/pull/1015 On Sun, Jan 22, 2012 at 2:27 PM, Aaron Meurer asmeu...@gmail.com wrote: On Sun, Jan 22, 2012 at 10:03 AM, Matthew mrock...@gmail.com wrote: I've refactored into MatrixBase(object):

Re: [sympy] And() with a boolean?

2012-01-23 Thread Kevin Hunter
Having done a little debugging, I now can't produce a simple example like I could so easily last night. Potentially a false alarm as I now suspect I may have polluted SymPy's namespace somehow. (The same code in two different instances of SymPy works and doesn't work.) I'll post when I have

Re: [sympy] Re: autowrap a matrix expression

2012-01-23 Thread Aaron Meurer
But what kind of object would you expect to be used for the Matrox? Aaron Meurer On Jan 22, 2012, at 11:50 PM, Gustavo gustavo.goret...@gmail.com wrote: Sorry for the vagueness. This is what I'd like: import sympy from sympy.utilities.autowrap import autowrap x = sympy.symbol.symbols('x')

Re: [sympy] review help request

2012-01-23 Thread Aaron Meurer
Are you on Windows? I just merged a branch that should hopefully make sympy-bot work on Windows. Please do a git pull in the sympy bot directory and try again. If it still doesn't work, please let us know specifically what your problem is so we can fix it. Aaron Meurer On Wed, Jan 11, 2012 at

Re: [sympy] Latex in rst docs

2012-01-23 Thread Aaron Meurer
See the top of GAsympy.txt. You need to create a math environment with all the newcommands, like: .. math:: \newcommand{\bfrac}[2]{\displaystyle\frac{#1}{#2}} Note that this is specifically how you do it when using the mathjax extension. If you are using pngmath, you add it to conf.py, in

Re: [sympy] And() with a boolean?

2012-01-23 Thread Aaron Meurer
On Mon, Jan 23, 2012 at 1:21 AM, Chris Smith smi...@gmail.com wrote: On Mon, Jan 23, 2012 at 1:55 PM, Kevin Hunter hunt...@gmail.com wrote: Hullo Sympifiers, I've created (programmatically) a situation that boils down to something like: x, y = symbols( 'x,y' ) And( x y, y oo ) This

Re: [sympy] And() with a boolean?

2012-01-23 Thread Kevin Hunter
Okay, this is my fault, but I'm wondering if there's a way around it while still using SymPy. Specifically, I want the ability to create an equation with Python's == syntax. (I.e., I don't want to be forced to use the Eq() method.) At one point in my code, I have done this: *from sympy

[sympy] Re: autowrap a matrix expression

2012-01-23 Thread Gustavo
Right now it returns a float. I'd like an NumPy array, so maybe I can create the NumPy array with the correct size and row/column ordering and pass it as an out parameter to the code generator. On Jan 23, 12:57 pm, Aaron Meurer asmeu...@gmail.com wrote: But what kind of object would you expect

Re: [sympy] bin/test --slow sympy/integrals/tests/test_transforms.py hangs

2012-01-23 Thread Joachim Durchholz
Am 23.01.2012 09:14, schrieb Tom Bachmann: Hm. Actually we knew when pushing that said test seems to never finish. I once let it run for two hours, and it was consuming 100% of a CPU core and didn't stop, so I'm pretty sure it's an endless loop. I did some analysis but didn't retain the

Re: [sympy] And() with a boolean?

2012-01-23 Thread Aaron Meurer
This has been discussed before. Overriding Basic.__eq__ is unrecommended, because a ton of code uses == with its current meaning, and, as you've found, changing this will break things. Here are some workarounds I can see: - Do some kind of string parsing. In other words, it's pretty straight

Re: [sympy] bin/test --slow sympy/integrals/tests/test_transforms.py hangs

2012-01-23 Thread Aaron Meurer
Hmm. From what I remember, it was not hanging in the new algorithm, but in heurisch(). This means that it probably would indeed finish if you let it run long enough, but that algorithm can be so inefficient that there's no telling if it could be hours, days, weeks, ... If it is indeed hanging in

Re: [sympy] bin/test --slow sympy/integrals/tests/test_transforms.py hangs

2012-01-23 Thread Tom Bachmann
No it's hanging in heurisch. (And in fact smichr already merged my fix - i.e. turning the test into skip.) On 23.01.2012 20:13, Aaron Meurer wrote: Hmm. From what I remember, it was not hanging in the new algorithm, but in heurisch(). This means that it probably would indeed finish if you

[sympy] Re: physics.mechanics module double pendulum

2012-01-23 Thread Gustavo
As far as I can tell, I have correctly added a torque term at the P joint. The linearization produces the matrices of expected dimension. I haven't checked that the A matrix is correct, but it looks like the B matrix is not correct. Here's a gist that computes B using the linearize() method

[sympy] functions/special/tests/test_error_functions now fails

2012-01-23 Thread Joachim Durchholz
Hi all, functions/special/tests/test_error_functions.py[8] F... [FAIL] File [...]/sympy/functions/special/tests/test_error_functions.py, line 38, in test_erf assert limit(exp(x)*exp(x**2)*(erf(x+1/exp(x))-erf(x)), x, oo) == 2/sqrt(pi) AssertionError Note that the fail will happen

Re: [sympy] functions/special/tests/test_error_functions now fails

2012-01-23 Thread Tom Bachmann
This must be because of the pull request by raulb I pushed. I would be happy to debug this, but since I cannot reproduce it this is somewhat hard. It would be very helpful if you could post the output of the failing test produced with SYMPY_DEBUG=True. The problem with this is that the output

[sympy] Re: physics.mechanics module double pendulum

2012-01-23 Thread Gilbert gede
Two problems here: First: you've added a torque term which applies to ReferenceFrame B, tau*A.z.  There are 2 potential issues with this. One, if possible, you should describe the torque in the same ReferenceFrame in which the angular velocity of the torqued frame is described in. Here,