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

2009-05-21 Thread codesite-noreply
Updates: Status: Fixed Comment #15 on issue 1188 by Vinzent.Steinberg: integrate(1/sin(x)**2,x) fails http://code.google.com/p/sympy/issues/detail?id=1188 http://git.sympy.org/?p=sympy.git;a=commit;h=22eecd88cd5993afcf60e381ef70858cfdd62467 -- You received this message because you

Issue 1429 in sympy: matches fails to match differential equation

2009-05-21 Thread codesite-noreply
Status: Accepted Owner: asmeurer Labels: Type-Defect Priority-Medium New issue 1429 by asmeurer: matches fails to match differential equation http://code.google.com/p/sympy/issues/detail?id=1429 See this thread: http://groups.google.com/group/sympy/browse_thread/thread/d1ca8352bcb187a8 a =

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

2009-05-21 Thread Luke
Attached is the code that allows you to use solve with equations that have Symbol, Function, or Derivative instances in them. It passed all tests on my machine. Let me know if there are any problems. I will be working on a similar patch to do the same thing for diff() Thanks, ~Luke

[sympy] Re: How do I test a function without putting it in __init__.py?

2009-05-21 Thread Ondrej Certik
On Wed, May 20, 2009 at 10:54 PM, Aaron S. Meurer asmeu...@gmail.com wrote: I wrote a function for dsolve that is very complex and should be well tested, but it is also very specialized (making it more modular would require much more work), so I don't necessarily want it showing up in

[sympy] How to integrate a customised function ?

2009-05-21 Thread Christophe
Hello, I would like to integrate a custom functions but the following code doesn't work. Christophe. import sympy x = sympy.Symbol('x') f = x**3+4*x+1/x print sympy.integrate(f,x) --~--~-~--~~~---~--~~ You received

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Aaron S. Meurer
It worked for me in the stable build, as well as in the git repository: import sympy x = sympy.Symbol('x') f = x**3+4*x+1/x print sympy.integrate(f,x) log(x) + 2*x**2 + 1/4*x**4 What output are you getting, and what versions of Python and SymPy are you using? Aaron Meurer On May

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Christophe
Hello, I use Python 26, and the installation was made with sympy-0.6.4.win32.exe. I'm under Windows XP. Christophe. PS : here is the output. *** File

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Ondrej Certik
On Thu, May 21, 2009 at 10:38 AM, Christophe projet...@gmail.com wrote: Hello, I use Python 26, and the installation was made with sympy-0.6.4.win32.exe. I'm under Windows XP. Christophe. PS : here is the output.

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Ondrej Certik
On Thu, May 21, 2009 at 10:47 AM, Ondrej Certik ond...@certik.cz wrote: On Thu, May 21, 2009 at 10:38 AM, Christophe projet...@gmail.com wrote: Hello, I use Python 26, and the installation was made with sympy-0.6.4.win32.exe. I'm under Windows XP. Christophe. PS : here is the output.

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Aaron S. Meurer
OK. My stable version was actually 0.6.3. Aaron Meurer On May 21, 2009, at 11:47 AM, Ondrej Certik wrote: On Thu, May 21, 2009 at 10:38 AM, Christophe projet...@gmail.com wrote: Hello, I use Python 26, and the installation was made with sympy-0.6.4.win32.exe. I'm under Windows XP.

[sympy] Re: How to integrate a customised function ?

2009-05-21 Thread Christophe
Thanks a lot. Christophe. Ondrej Certik a écrit : On Thu, May 21, 2009 at 10:38 AM, Christophe projet...@gmail.com wrote: Hello, I use Python 26, and the installation was made with sympy-0.6.4.win32.exe. I'm under Windows XP. Christophe. PS : here is the output.

[sympy] Poll on usage of solve()

2009-05-21 Thread Luke
Does anybody use solve() by passing the function and/or the symbol arguments as a set, rather than a list or a tuple? I can't see a reason why using it with a set would be beneficial, and without support for sets, there are some aspects of solve that would become easier with regard to being able

[sympy] div and curl with sympy

2009-05-21 Thread Ondrej Certik
Hi, I need the div and curl operators in sympy, 3D is enough. I am attaching a simple script, that takes the vector potential A, calculates B and then div B: A: [0, 0, 16*x**2*y**2*(1 - x)**2*(1 - y)**2] B: [-16*x**2*y**2*(1 - x)**2*(2 - 2*y) + 32*y*x**2*(1 - x)**2*(1 - y)**2, 16*x**2*y**2*(1 -

[sympy] Re: div and curl with sympy

2009-05-21 Thread Alan Bromborsky
Alan Bromborsky wrote: Ondrej Certik wrote: Hi, I need the div and curl operators in sympy, 3D is enough. I am attaching a simple script, that takes the vector potential A, calculates B and then div B: A: [0, 0, 16*x**2*y**2*(1 - x)**2*(1 - y)**2] B: [-16*x**2*y**2*(1 - x)**2*(2 -

[sympy] Re: div and curl with sympy

2009-05-21 Thread Ondrej Certik
On Thu, May 21, 2009 at 6:58 PM, Alan Bromborsky abro...@verizon.net wrote: Ondrej Certik wrote: Here's the code (attached): Wow, that was quick. Here is the output of it: A = (16*x**2*y**2*(1 - x)**2*(1 - y)**2)e_z B = curl(A) = (-16*x**2*y**2*(1 - x)**2*(2 - 2*y) + 32*y*x**2*(1 - x)**2*(1 -

[sympy] Re: div and curl with sympy

2009-05-21 Thread Alan Bromborsky
Alan Bromborsky wrote: Alan Bromborsky wrote: Ondrej Certik wrote: Hi, I need the div and curl operators in sympy, 3D is enough. I am attaching a simple script, that takes the vector potential A, calculates B and then div B: A: [0, 0, 16*x**2*y**2*(1 - x)**2*(1 - y)**2] B:

[sympy] Problem with matches()

2009-05-21 Thread Aaron S. Meurer
I tried the following, a = Wild('a', exclude=[f(x).diff(x)]) b = Wild('b', exclude=[f(x).diff(x)]) eq = x+f(x) - (x - f(x))*diff(f(x), x) r = eq.match(a+b*diff(f(x),x)) r is None. I need it to be{a:x+f(x), b:-(x-f(x))}. This works for other things similarly formatted, for example:

[sympy] Re: Problem with matches()

2009-05-21 Thread Ondrej Certik
On Thu, May 21, 2009 at 7:33 PM, Aaron S. Meurer asmeu...@gmail.com wrote: I tried the following,   a = Wild('a', exclude=[f(x).diff(x)])   b = Wild('b', exclude=[f(x).diff(x)])   eq = x+f(x) - (x - f(x))*diff(f(x), x)   r = eq.match(a+b*diff(f(x),x)) r is None.  I need it to

[sympy] Re: Problem with matches()

2009-05-21 Thread Aaron S. Meurer
http://code.google.com/p/sympy/issues/detail?id=1429 Aaron Meurer On May 21, 2009, at 8:36 PM, Ondrej Certik wrote: On Thu, May 21, 2009 at 7:33 PM, Aaron S. Meurer asmeu...@gmail.com wrote: I tried the following, a = Wild('a', exclude=[f(x).diff(x)]) b = Wild('b',