[sympy] Problem if I intersec an ellipse and a arc

2011-06-12 Thread Matteo Boscolo
Hi all : I got this two geometrical entity: Ellipse: Center Point : (-22.1368,132.821) , horizontalRadius Axi=641.625758588, Mino Axi=561.422256982 Arc\Circle: Center Point : (-370.288,132.821) , Radius 256.867341765 , StartAngle=0, EndAngle=6.28318530718 if I intersect this two entity I got t

Re: [sympy] Re: Adding sympy.physics to documentation

2011-06-12 Thread Luke
+1 for sympy.physics.mechanics ~Luke On Thu, Jun 9, 2011 at 12:56 PM, Brian Granger wrote: > On Tue, Jun 7, 2011 at 10:28 PM, Luke wrote: >> On Tue, Jun 7, 2011 at 1:26 PM, krastanov.ste...@gmail.com >> wrote: >>> What would the classical module contain? Won't "newtonian", "galilean"  or >>> j

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread David Joyner
On Sun, Jun 12, 2011 at 1:48 AM, Aaron Meurer wrote: ... > Please test these distributions.  All tests should pass with Python > 2.4-2.7, both 32- and 64-bit, and with gmpy installed or not > installed.  Please test that this is the case from the tarballed > distributions themselves by running >

[sympy] Re: Uses and Size of Sympy Matrices

2011-06-12 Thread SherjilOzair
On Jun 12, 3:09 am, Vinzent Steinberg wrote: > On 11 Jun., 10:47, SherjilOzair wrote: > > > Do you require to solve eigenvalue problems of matrices bigger than > > 4*4 ? > > How are you doing it currently ? > > Matrix.diagonalize only works for matrices smaller than 5*5, as > > polys.roots can

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Tomo Lazovich
I tested the Windows installer in Windows 7. You have to be sure to run the installer as an administrator or it complains that it can't set some registry keys. Besides that, it seems to have installed without any problems. Is it possible to run the tests in Windows? I can't seem to find the setup.

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread krastanov.ste...@gmail.com
On 12 June 2011 16:07, Tomo Lazovich wrote: > I tested the Windows installer in Windows 7. You have to be sure to run the > installer as an administrator or it complains that it can't set some > registry keys. Besides that, it seems to have installed without any > problems. Is it possible to run

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Aaron Meurer
On Sun, Jun 12, 2011 at 9:39 AM, krastanov.ste...@gmail.com wrote: > On 12 June 2011 16:07, Tomo Lazovich wrote: >> >> I tested the Windows installer in Windows 7. You have to be sure to run >> the installer as an administrator or it complains that it can't set some >> registry keys. Besides that

Re: [sympy] Re: Uses and Size of Sympy Matrices

2011-06-12 Thread Aaron Meurer
If the eigenvalues cannot be expressed in radicals, then it doesn't matter what method you use to compute them. And for whatever reason, people always seem to be confused about this. The general fifth order and higher polynomial does not have a solution in radicals, and you can construct specific

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Renato Coutinho
On Sun, Jun 12, 2011 at 11:07 AM, Tomo Lazovich wrote: > I tested the Windows installer in Windows 7. You have to be sure to run the > installer as an administrator or it complains that it can't set some > registry keys. Besides that, it seems to have installed without any > problems.  Is it possi

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Tomo Lazovich
I just ran the tests in Windows 7 and they all pass. On Sun, Jun 12, 2011 at 1:19 PM, Renato Coutinho wrote: > On Sun, Jun 12, 2011 at 11:07 AM, Tomo Lazovich > wrote: > > I tested the Windows installer in Windows 7. You have to be sure to run > the > > installer as an administrator or it compla

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Tomo Lazovich
Oh sorry, Windows 7 with Python 2.7. On Sun, Jun 12, 2011 at 1:27 PM, Tomo Lazovich wrote: > I just ran the tests in Windows 7 and they all pass. > > On Sun, Jun 12, 2011 at 1:19 PM, Renato Coutinho < > renato.couti...@gmail.com> wrote: > >> On Sun, Jun 12, 2011 at 11:07 AM, Tomo Lazovich >> wro

[sympy] Re: Uses and Size of Sympy Matrices

2011-06-12 Thread SherjilOzair
On Jun 12, 10:24 pm, Aaron Meurer wrote: > If the eigenvalues cannot be expressed in radicals, then it doesn't > matter what method you use to compute them. What about symbolic elements ? Or exact elements ? > > And for whatever reason, people always seem to be confused about this. >  The gene

Re: [sympy] Problem if I intersec an ellipse and a arc

2011-06-12 Thread Chris Smith
Try to use Rational approximations of the numbers. e.g. Rational('0.3') -> 3/10 (note the quotes). -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email t

Re: [sympy] Re: Uses and Size of Sympy Matrices

2011-06-12 Thread Aaron Meurer
On Sun, Jun 12, 2011 at 12:42 PM, SherjilOzair wrote: > > > On Jun 12, 10:24 pm, Aaron Meurer wrote: >> If the eigenvalues cannot be expressed in radicals, then it doesn't >> matter what method you use to compute them. > > What about symbolic elements ? Or exact elements ? You can think of "gene

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Brian Granger
I am -1 on having a Wavefunction class. The reason is that a wavefunction is just a plain old function. There is no additional logic needed over a regular function. But I want to understand what you are using these functions for. I can think of two types of functions needed in quantum: * An un

[sympy] Documentation error

2011-06-12 Thread Alan Bromborsky
Down loaded sympy with "git clone git://github.com/sympy/sympy.git" ran "sudo python setup.py install" and "sudo python setupegg.py install" then cd to doc and ran "make html" and got rm -rf sphinx mkdir -p src/.static mkdir -p _build/html mkdir -p _build/doctrees mkdir -p src/modules PYTHONPAT

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread David Joyner
On Sun, Jun 12, 2011 at 1:13 PM, Aaron Meurer wrote: ... with no problems. The --prefix option was not recognized. The system Python for 10.6.7 is 2.7. >> >> The --prefix command is not recognized and it's not present in --help. > > This must be some issue with your distutils.  I did

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Tomo Lazovich
I think Wavefunction applies more to the latter case, where there's a known function that we want to return. I sort of saw it as more of a convenience than anything else. For one, returning the expression itself, like sin(n*pi*x/L), means that if you want to actually evaluate it at a point you have

Re: [sympy] Documentation error

2011-06-12 Thread Aaron Meurer
Maybe you need to update Sphinx. I am using 1.0.5 and it works fine. I think maybe it got a little less picky about formatting in docstrings. For example, I get some severe warnings, but the build still continues. Aaron Meurer On Sun, Jun 12, 2011 at 3:37 PM, Alan Bromborsky wrote: > Down load

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Aaron Meurer
Ah, you're right. I didn't realize that --prefix had to come after install. It was just by accident that I happened to do it in that order myself. I'd still consider this to be a bug in distutils btw. Aaron Meurer On Sun, Jun 12, 2011 at 4:00 PM, David Joyner wrote: > On Sun, Jun 12, 2011 at 1

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Aaron Meurer
I think it will be cleaner to make it a class, even with the little you are doing. Note that if you just want something to return some expression (i.e., eval() would always return something), you could just use a Python function. By the way, Lambda really shouldn't even be in consideration. If

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Tomo Lazovich
Just for reference, this is what exists so far of the Wavefunction class. It also has some doctests so you can see the usage. https://github.com/lazovich/sympy/blob/c9a3ceb0d1addd9c89c30b90cbe0e55c9467fe0a/sympy/physics/quantum/state.py#L521 On Sun, Jun 12, 2011 at 7:25 PM, Aaron Meurer wrote:

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Aaron Meurer
I just realized that I didn't upload the built docs anywhere. They are at http://code.google.com/p/sympy/downloads/detail?name=sympy-0.7.0.rc1-docs-html.zip. Note that I might remove the older rc docs once I do the actual release, since it's of little value to have rc docs, and I kind of doubt t

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Aaron Meurer
OK, I would drop the Lambda subclassing and just write your own eval method. Among other things, this will let you use the more logical argument order WaveFunction(expr, var). Another thing about Lambda. If you do Lambda(x, x*y), then x is not considered a free variable of the Lambda. In [2]: L

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Ronan Lamy
Le dimanche 12 juin 2011 à 19:30 -0500, Tomo Lazovich a écrit : > Just for reference, this is what exists so far of the Wavefunction > class. It also has some doctests so you can see the usage. > > https://github.com/lazovich/sympy/blob/c9a3ceb0d1addd9c89c30b90cbe0e55c9467fe0a/sympy/physics/quantu

[sympy] how to use tox

2011-06-12 Thread Ondrej Certik
Hi, I have noticed the tox.ini.sample in the root directory and also read: http://vperic.blogspot.com/2011/05/continuous-integration-and-sympy.html I have two questions: 1) Wouldn't it make sense to move the tox.ini.sample into some directory, maybe bin/? I think that most users will just do ".

Re: [sympy] Re: Adding sympy.physics to documentation

2011-06-12 Thread Ondrej Certik
On Sun, Jun 12, 2011 at 1:29 AM, Luke wrote: > +1 for sympy.physics.mechanics +1 to sympy.physics.mechanics I can imagine having lots of modules in sympy.physics, directly, i.e. not sympy.physics.something.somethingelse.dynamics, but directly in sympy.physics. Ondrej -- You received this mess

[sympy] add sympy.test() back?

2011-06-12 Thread Ondrej Certik
Hi, I noticed that sympy.test() was removed by this commit: https://github.com/sympy/sympy/commit/5c3bea3f43115911845c5ad8b1e6a92253c3ba91 but from the commit log it is not clear to me why. I also tried to search the mailinglist, but didn't find anything. numpy.test(), as well as scipy.test() is

Re: [sympy] SymPy 0.7.0 Release Candidate 1

2011-06-12 Thread Ondrej Certik
On Sat, Jun 11, 2011 at 10:48 PM, Aaron Meurer wrote: > After weeks of work, and more than a year since the last release, > we've finally reached a point where we can release a release candidate > for SymPy 0.7.0.  I talked with Ondřej, and we agreed that the best > way to do a release would be to

Re: [sympy] Pull Requests

2011-06-12 Thread Ondrej Certik
Those are good questions. I agree with Aaron and Andy. The best way is to post an email into the list, with a link to your branch, to receive feedback, with some simple instructions what to execute to try it out. Ondrej On Wed, Jun 8, 2011 at 7:21 AM, Andy Ray Terrel wrote: > Feel free to ask me

Re: [sympy] Re: Warning in numpy tests

2011-06-12 Thread Ondrej Certik
On Sat, Jun 11, 2011 at 10:02 PM, Aaron Meurer wrote: > I ended up employing the following fix: > > https://github.com/asmeurer/sympy/commit/f44195cca3a8cf216c1421532599386702afd704 > > Which basically just does array([3, 8, -1])**S(5.5) instead. Yes, I think that is an ok fix. Thanks, Ondrej -

Re: [sympy] add sympy.test() back?

2011-06-12 Thread Aaron Meurer
The reason is basically described in the commit message. See http://code.google.com/p/sympy/issues/detail?id=1379. I didn't realize that both numpy and scipy import test(). I'm OK to put it back, if others agree, because you make a good point. By the way, I found the issue number by opening Git

Re: [sympy] Re: Question about functions in sympy

2011-06-12 Thread Ondrej Certik
On Sun, Jun 12, 2011 at 6:02 PM, Aaron Meurer wrote: > OK, I would drop the Lambda subclassing and just write your own eval > method.  Among other things, this will let you use the more logical +1 > argument order WaveFunction(expr, var). > > Another thing about Lambda.  If you do Lambda(x, x*y)

Re: [sympy] add sympy.test() back?

2011-06-12 Thread Ondrej Certik
On Sun, Jun 12, 2011 at 10:46 PM, Aaron Meurer wrote: > The reason is basically described in the commit message.  See > http://code.google.com/p/sympy/issues/detail?id=1379. > > I didn't realize that both numpy and scipy import test().  I'm OK to > put it back, if others agree, because you make a

Re: [sympy] add sympy.test() back?

2011-06-12 Thread Aaron Meurer
On Sun, Jun 12, 2011 at 11:59 PM, Ondrej Certik wrote: > On Sun, Jun 12, 2011 at 10:46 PM, Aaron Meurer wrote: >> The reason is basically described in the commit message.  See >> http://code.google.com/p/sympy/issues/detail?id=1379. >> >> I didn't realize that both numpy and scipy import test().

Re: [sympy] bug in pyglet, please update

2011-06-12 Thread Ondrej Certik
On Sat, Jun 11, 2011 at 4:02 AM, krastanov.ste...@gmail.com wrote: > The pull request is in. It works for me and it is fairly trivial, but there > is always the possibility of side effects. > > https://github.com/sympy/sympy/pull/406 Thanks for this Stefan. pyglet doesn't belong to sympy. Time to

Re: [sympy] Re: Question about representing full expressions in sympy.physics.quantum

2011-06-12 Thread Ondrej Certik
On Tue, Jun 7, 2011 at 1:54 PM, Tomo Lazovich wrote: > Hi, > > On Tue, Jun 7, 2011 at 3:20 PM, krastanov.ste...@gmail.com > wrote: >> >> That remark is quite important. In the same spirit I would like to know if >> there are any arguments for using an expression for the representation >> instead

Re: [sympy] Re: Segmentation fault when importing sympy

2011-06-12 Thread Ondrej Certik
How did you resolve it? Ondrej On Wed, Jun 1, 2011 at 8:42 AM, SherjilOzair wrote: > Issue resolved. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this grou

Re: [sympy] Problem with user-defined functions

2011-06-12 Thread Ondrej Certik
Hi Luke, On Thu, Jun 2, 2011 at 12:07 AM, luke wrote: > Hi eveyone, > I'm developing an web application which has to interact with "user- > defined formulas" of some financial kpis. > I decided to use sympy to have a more solid math engine. If you plan to put it online and make it available to p

[sympy] isympy in newest ipython

2011-06-12 Thread Ondrej Certik
Hi, when I try to import "isympy" in the newest ipython (installed in Qsnake from qsnake.com), I get: Qsnake: ondrej@eagle:~/repos/sympy(cg_coeff)$ bin/isympy Traceback (most recent call last): File "bin/isympy", line 180, in main() File "bin/isympy", line 177, in main init_session(i

Re: [sympy] isympy in newest ipython

2011-06-12 Thread Aaron S. Meurer
There's a sample script at http://code.google.com/p/sympy/issues/detail?id=1797. I don't know if it's still relevant. Aaron Meurer On Jun 13, 2011, at 12:31 AM, Ondrej Certik wrote: > Hi, > > when I try to import "isympy" in the newest ipython (installed in > Qsnake from qsnake.com), I get: