[sympy] guidance for GSOC

2014-02-11 Thread Aditya Shah
Hi,
I am Aditya Shah and I am currently pursuing Bachelors in Computer Science 
at BITS-Pilani university. I am interested in contributing to Sympy as a 
part of GSOC 2014. Can anyone please guide me for the same?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: guidance for GSOC

2014-02-11 Thread Sergey Kirpichev
https://groups.google.com/forum/?fromgroups=#!topic/sympy/K7qNXgdlQIg

On Tuesday, February 11, 2014 3:09:20 PM UTC+4, Aditya Shah wrote:

 Hi,
 I am Aditya Shah and I am currently pursuing Bachelors in Computer Science 
 at BITS-Pilani university. I am interested in contributing to Sympy as a 
 part of GSOC 2014. Can anyone please guide me for the same?
 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: guidance for GSOC

2014-02-11 Thread Saurabh Jha
Adding to to what Sergey replied, you also need to set up your environment 
according to [1]

[1] https://github.com/sympy/sympy/wiki/Development-workflow

On Tuesday, February 11, 2014 4:39:20 PM UTC+5:30, Aditya Shah wrote:

 Hi,
 I am Aditya Shah and I am currently pursuing Bachelors in Computer Science 
 at BITS-Pilani university. I am interested in contributing to Sympy as a 
 part of GSOC 2014. Can anyone please guide me for the same?
 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: Electrodynamics in Physics Module

2014-02-11 Thread Sachin Joglekar
To correct Jason, I had set out to build an electromagnetism module, but we 
realised many issues with the framework that needed to be solved first. 
Currently, I have an open PR that deals with the field functions you 
mentioned. It will be integrated into the new sympy.physics.vector module. 
I also have an open PR dealing with electrostatics, which you can 
contribute to. For electrodynamics, especially the E-M interactions, our 
vector framework would need to be beefed up, with advanced vector calculus. 
The idea for that is up here - https://pydy.org/gsoc_2014_ideas . About 
having support for spherical/cylindrical coordinates, Prasoon would be able 
to guide you better.
You can start by looking at how you would implement these enhancements to 
the core first, and then proceed. What would you like to see in the module 
you propose?

On Monday, February 10, 2014 7:09:44 PM UTC+5:30, Rajath Shashidhara wrote:

 Hello,

 I'm interested in implementing electrodynamics in sympy.
 Any thoughts about this?

 I don't seem to find any documentation about grad, divergence, and curl.
 Are they implemented?
 I'm willing to do this as well.

 Please give me feedback.

 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: guidance for GSOC

2014-02-11 Thread Aditya Shah
Thanks a lot! it helped!

On Tuesday, 11 February 2014 16:39:20 UTC+5:30, Aditya Shah wrote:

 Hi,
 I am Aditya Shah and I am currently pursuing Bachelors in Computer Science 
 at BITS-Pilani university. I am interested in contributing to Sympy as a 
 part of GSOC 2014. Can anyone please guide me for the same?
 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Electrodynamics in Physics Module

2014-02-11 Thread Rajath Shashidhara
Hi Sachin,

Some things I'd like to be there in the electrodynamics module:
1. Point Charges, Continuous charge distributions - Electric Field and
Potential
2. Magnetic field - Magnetic Vector Potential
3. Maxwell's Equations
5. Energy, Momentum Conservations - Poynting Vector, Momentum Tensor
6. Relativistic Electrodynamics

are some broad fields that are in general useful.
The specifics, I guess I'll have to think about it.

Right now, I don't even see curl,grad and divergence in the sympy module.
Also, support for curvilinear co-ordinates is lacking.

So, a lot of work needs to be done.


On Tue, Feb 11, 2014 at 5:15 PM, Sachin Joglekar srjoglekar...@gmail.comwrote:

 To correct Jason, I had set out to build an electromagnetism module, but
 we realised many issues with the framework that needed to be solved first.
 Currently, I have an open PR that deals with the field functions you
 mentioned. It will be integrated into the new sympy.physics.vector module.
 I also have an open PR dealing with electrostatics, which you can
 contribute to. For electrodynamics, especially the E-M interactions, our
 vector framework would need to be beefed up, with advanced vector calculus.
 The idea for that is up here - https://pydy.org/gsoc_2014_ideas . About
 having support for spherical/cylindrical coordinates, Prasoon would be able
 to guide you better.
 You can start by looking at how you would implement these enhancements to
 the core first, and then proceed. What would you like to see in the module
 you propose?


 On Monday, February 10, 2014 7:09:44 PM UTC+5:30, Rajath Shashidhara wrote:

 Hello,

 I'm interested in implementing electrodynamics in sympy.
 Any thoughts about this?

 I don't seem to find any documentation about grad, divergence, and curl.
 Are they implemented?
 I'm willing to do this as well.

 Please give me feedback.

 Thanks.

  --
 You received this message because you are subscribed to a topic in the
 Google Groups sympy group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/sympy/77KcEdT6rXE/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 sympy+unsubscr...@googlegroups.com.
 To post to this group, send email to sympy@googlegroups.com.
 Visit this group at http://groups.google.com/group/sympy.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Rajath S,
M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
Birla Institute of Technology and Science - Pilani,
Pilani

-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: Electrodynamics in Physics Module

2014-02-11 Thread Sachin Joglekar
As I mentioned, a PR for these functions is in the _pipeline_, which means 
you wont be able to see the commit changes in the master as yet. The 
earlier PR had to be closed due to the git conflicts caused by the creation 
of the new module. The features you suggest are a must for any such module. 
Do think on those lines and tell us your ideas.

On Monday, February 10, 2014 7:09:44 PM UTC+5:30, Rajath Shashidhara wrote:

 Hello,

 I'm interested in implementing electrodynamics in sympy.
 Any thoughts about this?

 I don't seem to find any documentation about grad, divergence, and curl.
 Are they implemented?
 I'm willing to do this as well.

 Please give me feedback.

 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: ispoly

2014-02-11 Thread Vincent MAILLE
Thanks, for the answer, it works ! 
Vincent


Le jeudi 2 janvier 2014 17:44:42 UTC+1, Vincent MAILLE a écrit :

 Hi, 

 I found an example of ispoly here : 
 http://code.google.com/p/sympy/source/browse/trunk/tests/test_polynomials.py?spec=svn800r=800
 but it seems not work with de 7.4.1 version. Does someone can help me ? 

 Thanks, 

 Vincent



-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: why eigenvectors very slow

2014-02-11 Thread Vinzent Steinberg
On Monday, February 10, 2014 11:27:09 PM UTC-5, monde wilson wrote:

 why eigenvectors very slow

 what is the difference between numpy and sympy when doing matrix 
 calculation


Sympy calculates eigenvectors symbolically (thus exactly), numpy calculates 
them numerically using floating point arithmetic.
In general you don't want to use sympy to calculate the eigenvectors for 
matrices larger than 2x2, because the symbolic results can be very 
complicated. (IIRC, the eigenvalues are calculated by finding roots of the 
characteristic polynomial, which can lead to nasty expressions for 
dimension 3 and beyond.)
 

 will numpy faster and more accurately


Numpy will be a lot faster, but not more accurate. If you only need 
numerical results, you probably should use numpy for this.

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Set of all possible matches

2014-02-11 Thread Vincent MAILLE
Hi, is it possible to find all possible matches : 

exp = S('3*x**2+2*x**3')
k, n, A,B  = Wild('k',exclude = [0]), Wild('n',exclude =  
set([0,1])),Wild('A'), Wild('B')
T = (A+k*x**n+B).matches(exp)

returns 

{k_: 2, n_: 3, A_: 0, B_: 3*x**2}

But can I have : 
[{k_: 2, n_: 3, A_: 0, B_: 3*x**2}, {k_: 3, n_: 2, A_: 2*x**3, B_: 0}]

Thanks

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Set of all possible matches

2014-02-11 Thread Aaron Meurer
I don't think it's implemented.

Note that in general you would have n choose 2 possibilities if you
have n extra terms. And that's not considering that you could add and
subtract anything and it would still technically be a valid match.

Aaron Meurer

On Tue, Feb 11, 2014 at 3:40 PM, Vincent MAILLE htcvi...@gmail.com wrote:
 Hi, is it possible to find all possible matches :

 exp = S('3*x**2+2*x**3')
 k, n, A,B  = Wild('k',exclude = [0]), Wild('n',exclude =
 set([0,1])),Wild('A'), Wild('B')
 T = (A+k*x**n+B).matches(exp)

 returns

 {k_: 2, n_: 3, A_: 0, B_: 3*x**2}

 But can I have :
 [{k_: 2, n_: 3, A_: 0, B_: 3*x**2}, {k_: 3, n_: 2, A_: 2*x**3, B_: 0}]

 Thanks

 Vincent

 --
 You received this message because you are subscribed to the Google Groups
 sympy group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sympy+unsubscr...@googlegroups.com.
 To post to this group, send email to sympy@googlegroups.com.
 Visit this group at http://groups.google.com/group/sympy.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


[sympy] Re: Stop sympy from rationalizing?

2014-02-11 Thread Chris Smith
evaluate=False is the way to do this:

 Pow(2, -S.Half, evaluate=False)
1/sqrt(2)
 p=_
 3*p,p+1
(3*sqrt(2)/2, sqrt(2)/2 + 1)

Note that using the unevaluated power in an expression undoes the 
unevaluation; you can get by, perhaps, by making a symbol have that name.

 p=Symbol(str(p))
 3*p,p+1
(3*1/sqrt(2), 1/sqrt(2) + 1)


On Monday, February 10, 2014 4:11:27 PM UTC-6, Mike Witt wrote:

 Is there any way to stop sympy from automatically 
 rationalizing denominators? In other words, to 
 make is so that 1/sqrt(2) returns 1/sqrt(2) rather 
 than sqrt(2)/2. 


-- 
You received this message because you are subscribed to the Google Groups 
sympy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.