Issue 1436 in sympy: standard form for powers of powers

2009-05-25 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1436 by smichr: standard form for powers of powers http://code.google.com/p/sympy/issues/detail?id=1436 exp(x)**exp(x) has a standardized form of exp(x*exp(x)) but (2**x)**(2**x) doesn't simplify to 2**(x*2**x). Should this

Issue 1434 in sympy: substitution doesn't work for sqrt()

2009-05-25 Thread codesite-noreply
Comment #12 on issue 1434 by ondrej.certik: substitution doesn't work for sqrt() http://code.google.com/p/sympy/issues/detail?id=1434 Any progress on this? We need to fix this soon. I will now be offline for couple days and busy, but if noone fixes this, I will have to look into it. -- You

Issue 1434 in sympy: substitution doesn't work for sqrt()

2009-05-25 Thread codesite-noreply
Comment #13 on issue 1434 by hazelnusse: substitution doesn't work for sqrt() http://code.google.com/p/sympy/issues/detail?id=1434 I haven't worked on it since yesterday. Fabian pointed out a few situations where your fix doesn't work, and I think he is working on it. Hopefully it will

Issue 1437 in sympy: geometry convex_hull bug

2009-05-25 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1437 by flor...@mickler.org: geometry convex_hull bug http://code.google.com/p/sympy/issues/detail?id=1437 working with convex_hull I found some issues. attached patch shows some new tests which fail with the current

Issue 1434 in sympy: substitution doesn't work for sqrt()

2009-05-25 Thread codesite-noreply
Comment #14 on issue 1434 by fab...@fseoane.net: substitution doesn't work for sqrt() http://code.google.com/p/sympy/issues/detail?id=1434 I have it fixed in my local repo. It's just that I want to review it carefully before submitting a final patch. Expect a patch in (maximum) a couple of

Re: solve() can now solver for Symbol, Function, or Derivative instances

2009-05-25 Thread Luke
Has anybody had a chance to review this? If there is anything that should be done differently, I'm happy to change it up, just let me know. Thanks, ~Luke On May 21, 6:58 pm, Luke hazelnu...@gmail.com wrote: Attached is the code that allows you to use solve with equations that have Symbol,

Re: solve() can now solver for Symbol, Function, or Derivative instances

2009-05-25 Thread Ondrej Certik
Hi, sorry for the late review. I am on airport now going to Los Alamos, so I may have sporadic net connection in the coming days. +SYMBOL_SWAPPED = False I would use symbol_swapped. Could you also please add a comment into the code next to symbols_swapped about its purpose? E.g. that it

Re: 2 MathML Patches

2009-05-25 Thread Fabian Pedregosa
Thanks for the patches, thanks for making the appropriate changes. I am quite busy right now with other things, so I'll reply in a couple of days. Looks good overall, but I'd like to investigate a bit because I've got the feeling we can somehow avoid using saxutils.unescape Thomas Sidoti

[PATCH] Fix for ISSUE 626, cleaner implementation, all as one patch

2009-05-25 Thread Luke
Attached is the patch that Fixes issue 626 and allows for solve() to handle Function and Derivative instances, implements tests for both cases, and has extensive commenting. All tests pass on my machine. Please review and let me know if I can make it better. Thanks, ~Luke

Re: Fix shebang line in test scripts to /usr/bin/env python

2009-05-25 Thread Aaron S. Meurer
That file had the wrong encoding on it. This one should have the correct encoding. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group, send email to

Re: Resending logcombine patch.

2009-05-25 Thread Aaron S. Meurer
Those files had the wrong character encoding. These files should have the correct encoding. Aaron Meurer 0001-Added-an-XFAIL-test.patch Description: Binary data 0001-Added-Equality-support-in-logcombine.patch Description: Binary data 0001-Added-function-logcombine.patch Description: Binary

[sympy] Re: trigsimp

2009-05-25 Thread Luke
Here is the link for the Maxima trigsimp() code. It was written in 1981, according to the comments!!! http://maxima.cvs.sourceforge.net/viewvc/maxima/maxima/share/trigonometry/trgsmp.mac?revision=1.4view=markup I emailed the authors of the Fu et al. paper to see if they would be willing to

[sympy] Behavior of trig functions

2009-05-25 Thread Luke
I noticed the following behavior: In [9]: sin(x) Out[9]: sin(x) In [10]: sin(-x) Out[10]: -sin(x) In [11]: cos(x) Out[11]: cos(x) In [12]: cos(-x) Out[12]: cos(x) In [13]: tan(-x) Out[13]: -tan(x) In [14]: cot(-x) Out[14]: -cot(x) In [15]: sin(pi-x) Out[15]: sin(x) In [18]: sin(2*pi + x) Out[18]:

[sympy] Behavior of trig functions

2009-05-25 Thread Mateusz Paprocki
Hi, On Mon, May 25, 2009 at 11:51:55AM -0700, Luke wrote: I noticed the following behavior: In [9]: sin(x) Out[9]: sin(x) In [10]: sin(-x) Out[10]: -sin(x) In [11]: cos(x) Out[11]: cos(x) In [12]: cos(-x) Out[12]: cos(x) In [13]: tan(-x) Out[13]: -tan(x) In [14]: cot(-x) Out[14]:

[sympy] .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Luke
I'm curious about this: In [29]: e = S(2) In [30]: e.is_number Out[30]: True In [31]: e.is_Number Out[31]: True In [32]: e.is_NumberSymbol Out[32]: False In [33]: pi.is_number Out[33]: True In [34]: pi.is_Number Out[34]: False In [35]: pi.is_NumberSymbol Out[35]: True In [36]: e_over_pi =

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Luke
Ok, that makes more sense now. Thanks for the clarification. ~Luke On May 25, 1:05 pm, Abderrahim Kitouni a.kito...@gmail.com wrote: On Mon, 25 May 2009 12:48:09 -0700 (PDT)Luke hazelnu...@gmail.com wrote: 1)  Why are there both 'is_Number' and a 'is_number' methods, and why do they

[sympy] Re: iteration over arguments

2009-05-25 Thread Gael Varoquaux
On Fri, May 22, 2009 at 09:04:17AM -0700, Ondrej Certik wrote: This is how it used to work originally, but when we implemented the numpy support, the numpy arrays got confused by it, so we implemented .args. I was playing with Sage pynac and there it seems to work with the numpy arrays, so

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Fabian Pedregosa
Luke wrote: Ok, that makes more sense now. Thanks for the clarification. ~Luke On May 25, 1:05 pm, Abderrahim Kitouni a.kito...@gmail.com wrote: On Mon, 25 May 2009 12:48:09 -0700 (PDT)Luke hazelnu...@gmail.com wrote: 1) Why are there both 'is_Number' and a 'is_number' methods, and why

[sympy] Re: trigsimp

2009-05-25 Thread Aaron S. Meurer
On May 25, 2009, at 11:56 AM, Luke wrote: Here is the link for the Maxima trigsimp() code. It was written in 1981, according to the comments!!! http://maxima.cvs.sourceforge.net/viewvc/maxima/maxima/share/trigonometry/trgsmp.mac?revision=1.4view=markup I emailed the authors of the Fu et

[sympy] Re: trigsimp

2009-05-25 Thread Luke
Aaron, Thanks for the clarification. I think I get the idea, but I'm having trouble matching expressions of the following form: a = Wild('a') b = Wild('b') x = Symbol('x') e1 = pi + x e2 = pi - x e3 = -pi + x e4 = -pi - x I would think that for e{1,2,3,4} that I could get the following

[sympy] Re: trigsimp

2009-05-25 Thread Alan Bromborsky
Luke wrote: Aaron, Thanks for the clarification. I think I get the idea, but I'm having trouble matching expressions of the following form: a = Wild('a') b = Wild('b') x = Symbol('x') e1 = pi + x e2 = pi - x e3 = -pi + x e4 = -pi - x I would think that for e{1,2,3,4} that I could

[sympy] Re: trigsimp

2009-05-25 Thread Aaron S. Meurer
You need to use the exclude option I was telling you about. Do, a = Wild('a', exclude=[pi]) and b = Wild('a', exclude=[pi]). and you get e1.match(a*pi + b) {a_: 1, b_: x} b = Wild('b', exclude=[pi]) e2.match(a*pi + b) {b_: -x, a_: 1} e3.match(a*pi + b) {b_: x, a_: -1} e4.match(a*pi

[sympy] Re: SymPy middle term plans

2009-05-25 Thread Fredrik Johansson
On Tue, May 26, 2009 at 6:30 AM, Ondrej Certik ond...@certik.cz wrote: Fredrik was recently at Sage Days, how are you going to use Cython in mpmath? Will you make it both pure Python and optionally Cython (maybe in pure python mode), or will you stop being pure Python and just use Cython? My