Issue 2053 in sympy: 2053 geometry upgrade

2010-09-07 Thread sympy
Status: Accepted Owner: smichr Labels: Type-Defect Priority-Medium New issue 2053 by smichr: 2053 geometry upgrade http://code.google.com/p/sympy/issues/detail?id=2053 It was pointed out that circle cannot find an intersection with a segment at present. This commit fixes that and adds some

Re: Issue 1926 in sympy: ode tweaks

2010-09-07 Thread sympy
Comment #8 on issue 1926 by smichr: ode tweaks http://code.google.com/p/sympy/issues/detail?id=1926 regarding the test...there are odes that wanted to traverse that code but were not doing so before. Now they do. They weren't testing the code before but now they are. -- You received this

Re: Issue 51 in sympy: RootOf for polynomial equations

2010-09-07 Thread sympy
Updates: Cc: Vinzent.Steinberg asmeurer Comment #22 on issue 51 by smichr: RootOf for polynomial equations http://code.google.com/p/sympy/issues/detail?id=51 Rather than opening a new issue I thought I would ask here whether factor might benefit from replacing RootOf instances with

Re: Issue 51 in sympy: RootOf for polynomial equations

2010-09-07 Thread sympy
Comment #23 on issue 51 by smichr: RootOf for polynomial equations http://code.google.com/p/sympy/issues/detail?id=51 Strike that. In polys11 they are MUCH faster and of equivalent times. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post

Re: Issue 2052 in sympy: is_number needs a new name (was is_number could do more)

2010-09-07 Thread sympy
Updates: Summary: is_number needs a new name (was is_number could do more) Comment #2 on issue 2052 by smichr: is_number needs a new name (was is_number could do more) http://code.google.com/p/sympy/issues/detail?id=2052 Should is_number be renamed? Proving that an expression is a

Re: Issue 2052 in sympy: is_number needs a new name (was is_number could do more)

2010-09-07 Thread sympy
Comment #3 on issue 2052 by asmeurer: is_number needs a new name (was is_number could do more) http://code.google.com/p/sympy/issues/detail?id=2052 Make is_number stupid and quick. For smarter operation, call it is_constant(*vars), which applies diff(expr, *vars).is_zero (and thus we just

Re:[sympy] Re: Intersection exception

2010-09-07 Thread matteo.bosc...@boscolini.eu
Thanks in advance,I will do some test with this branch to see if it fit my needs.I use sympy for my opensource cad application PythonCAD.Unfortunately I do not have to much time to spend developing/patching sympy sorry for this .If I will find something easy to patch  I let you know. 

[sympy] Re: Intersection exception

2010-09-07 Thread smichr
OK, this is entered as issue 2053. The branch is at github/smichr/ geometry. It also has my issue 1960 commit that changes how geometrical entities are printed. -- You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to

Re:[sympy] Re: Intersection exception

2010-09-07 Thread matteo.bosc...@boscolini.eu
Hi,Do you think that we can make a sort of partnership between PythonCAD and sympy ? I mean, I have a user interface made with pyqt and I use sympy for my intersection unit measure ..Do you think that we can use PythonCAD for plotting sympy object ?here you got some link to understand the

Re: [sympy] I'm stuck

2010-09-07 Thread Christian Muise
Shot in the dark, but if 1 means it will always just return result. If you remove the entire if block, does it still not pickle? (then it isn't an issue with the if) On Tue, Sep 7, 2010 at 1:19 AM, smichr smi...@gmail.com wrote: I need some extra eyes. I can't see how changing the if 1 to if 0

Re: [sympy] geometry API doc

2010-09-07 Thread Aaron S. Meurer
I never knew about that. It appears to be quite old (SymPy 0.6.4 or 0.6.3 or something). Basically, anything in the GoogleCode svn is old and shouldn't be used, except for history purposes. Ondrej, did you ever plan on continuing to use pydoctor? Aaron Meurer On Sep 7, 2010, at 1:35 AM,

Re: [sympy] I'm stuck

2010-09-07 Thread Aaron S. Meurer
Also a shot in the dark, but maybe it doesn't like the function my(). Sorry, but I have never used pickling before, so I can't really help much here. Aaron Meurer On Sep 7, 2010, at 6:10 AM, Christian Muise wrote: Shot in the dark, but if 1 means it will always just return result. If you

Re: [sympy] Substituting a named Function

2010-09-07 Thread Rahul Siddharthan
On Tue, Sep 7, 2010 at 9:21 PM, Aaron S. Meurer asmeu...@gmail.com wrote: I don't think it's possible to substitute just theta without concern for x, but this should work In [9]: f = Function('theta')(x) In [10]: f Out[10]: θ(x) In [11]: expr = 6*f + x In [12]: expr Out[12]: x +

Re: [sympy] github: sympy pull requests

2010-09-07 Thread Ondrej Certik
On Sun, Sep 5, 2010 at 11:55 PM, Aaron S. Meurer asmeu...@gmail.com wrote: On Sep 5, 2010, at 8:26 PM, Aaron S. Meurer wrote: On Sep 5, 2010, at 8:21 PM, Aaron S. Meurer wrote: On Sep 1, 2010, at 2:48 PM, Ondrej Certik wrote: On Wed, Sep 1, 2010 at 1:18 PM, Aaron S. Meurer

Re: [sympy] github: sympy pull requests

2010-09-07 Thread Ondrej Certik
On Tue, Sep 7, 2010 at 10:26 AM, Ondrej Certik ond...@certik.cz wrote: On Sun, Sep 5, 2010 at 11:55 PM, Aaron S. Meurer asmeu...@gmail.com wrote: On Sep 5, 2010, at 8:26 PM, Aaron S. Meurer wrote: On Sep 5, 2010, at 8:21 PM, Aaron S. Meurer wrote: On Sep 1, 2010, at 2:48 PM, Ondrej Certik

Re: [sympy] geometry API doc

2010-09-07 Thread Ondrej Certik
On Tue, Sep 7, 2010 at 8:42 AM, Aaron S. Meurer asmeu...@gmail.com wrote: I never knew about that.  It appears to be quite old (SymPy 0.6.4 or 0.6.3 or something).  Basically, anything in the GoogleCode svn is old and shouldn't be used, except for history purposes. Ondrej, did you ever plan

Re: [sympy] geometry API doc

2010-09-07 Thread Sebastian Haase
On Tue, Sep 7, 2010 at 8:10 PM, Ondrej Certik ond...@certik.cz wrote: On Tue, Sep 7, 2010 at 8:42 AM, Aaron S. Meurer asmeu...@gmail.com wrote: I never knew about that.  It appears to be quite old (SymPy 0.6.4 or 0.6.3 or something).  Basically, anything in the GoogleCode svn is old and

Re: [sympy] github: sympy pull requests

2010-09-07 Thread Aaron S. Meurer
On Sep 7, 2010, at 11:27 AM, Ondrej Certik wrote: On Tue, Sep 7, 2010 at 10:26 AM, Ondrej Certik ond...@certik.cz wrote: On Sun, Sep 5, 2010 at 11:55 PM, Aaron S. Meurer asmeu...@gmail.com wrote: On Sep 5, 2010, at 8:26 PM, Aaron S. Meurer wrote: On Sep 5, 2010, at 8:21 PM, Aaron S.

Re: [sympy] Substituting a named Function

2010-09-07 Thread Aaron S. Meurer
Well, can't you just do expr.subs(f, sin(x))? subs should work for anything (assuming it makes sense). Or maybe I still don't understand what you want to do. Aaron Meurer On Sep 7, 2010, at 10:45 AM, Rahul Siddharthan wrote: On Tue, Sep 7, 2010 at 9:21 PM, Aaron S. Meurer asmeu...@gmail.com

Re: [sympy] geometry API doc

2010-09-07 Thread Aaron S. Meurer
On Sep 7, 2010, at 12:41 PM, Sebastian Haase wrote: On Tue, Sep 7, 2010 at 8:10 PM, Ondrej Certik ond...@certik.cz wrote: On Tue, Sep 7, 2010 at 8:42 AM, Aaron S. Meurer asmeu...@gmail.com wrote: I never knew about that. It appears to be quite old (SymPy 0.6.4 or 0.6.3 or something).

Re: [sympy] github: sympy pull requests

2010-09-07 Thread Ondrej Certik
On Tue, Sep 7, 2010 at 1:56 PM, Aaron S. Meurer asmeu...@gmail.com wrote: On Sep 7, 2010, at 11:27 AM, Ondrej Certik wrote: On Tue, Sep 7, 2010 at 10:26 AM, Ondrej Certik ond...@certik.cz wrote: On Sun, Sep 5, 2010 at 11:55 PM, Aaron S. Meurer asmeu...@gmail.com wrote: On Sep 5, 2010, at

[sympy] Re: I'm stuck

2010-09-07 Thread smichr
The if 1 part just makes it not run the lower part of the routine, i.e. it uses the original routine. When that is changed to 0 then it runs the upper part; computes a result using the lower part; asserts that the answers are the same and returns the answer. Running the top part causes the

Re: [sympy] Re: I'm stuck

2010-09-07 Thread Aaron S. Meurer
On Sep 7, 2010, at 3:33 PM, smichr wrote: The if 1 part just makes it not run the lower part of the routine, i.e. it uses the original routine. When that is changed to 0 then it runs the upper part; computes a result using the lower part; asserts that the answers are the same and returns the

[sympy] Re: I'm stuck

2010-09-07 Thread smichr
OK, I think it's something that happens when expand is called. Perhaps due to caching? If I put e = self.expand(mul=1) above the loop over self.symbols then I get two errors. I go to the releveant code in test pickling and print out the attribute and the values of a and b that are being compared

[sympy] Re: Substituting a named Function

2010-09-07 Thread smichr
Your function is f; f(x) is the function evaluated at a point, x. If you want to target f as the the replacement you have to define f separate from the (X) part: f=Function('theta') f(x) theta(x) _.subs(f, sin) sin(x) -- You received this message because you are subscribed to the Google

Re: [sympy] Re: I'm stuck

2010-09-07 Thread Aaron S. Meurer
Different orderings in dictionaries is expected behavior and shouldn't be causing any bugs (because the dictionary is basically an unordered container). I really have a hard time understanding what is going on here actually. By the way, going back to the original code, you shouldn't be calling

[sympy] Re: I'm stuck

2010-09-07 Thread smichr
In the place where the error occurs, you have a pre-pickle value, a, and a post-pickle value b: b = pickle.loads(pickle.dumps(a, protocol)) protocol varies over 0, 1, 2; b is also computed with copy and deepcopy: b = copy(a) or b = deepcopy(b) The directories of a and b are computed and

Re: [sympy] Re: I'm stuck

2010-09-07 Thread Aaron S. Meurer
If I understand correctly, it should be important that the pickled/copied object has the same hash as the original. Aaron Meurer On Sep 7, 2010, at 4:29 PM, smichr wrote: In the place where the error occurs, you have a pre-pickle value, a, and a post-pickle value b: b =

Re: [sympy] Re: Substituting a named Function

2010-09-07 Thread Aaron S. Meurer
Oh, that does work. I originally thought that it wouldn't. So yeah, then, subs should be able to do whatever you need it to. Aaron Meurer On Sep 7, 2010, at 4:15 PM, smichr wrote: Your function is f; f(x) is the function evaluated at a point, x. If you want to target f as the the