I posted a message on the message board about contributing to the SymPy package… definitely a bit premature! I talked about helping with differential equations and got responses about debugging it. After spending some time looking through the test cases, I must say the system seems stressed enough.
After taking my time to look through the parts I feel I’d be able to contribute to and comparing that to the level of development, I feel I would be most useful in expanding the vectors module. I have two years of grad school level physics (Georgia Tech) under my belt, if you were curious. Is there a team looking to develop this more, specifically adding spherical, cylindrical, and curvilinear coordinate systems to the module? If so, could you put me in touch with them? If not, let me know and I’ll see what I can do to help out. There would need to be options added across the board (integration, del operators, etc.) and don’t want to embark on this process if someone else is working on it already!
Also, I really feel this should be done in sympy and not the sympy/physics module; I feel this falls under core mathematics, and they seem to focus on reference frames and what-have-you.
Cheers,
Justin
--
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+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/d5d3c49e-49a7-4d51-9155-26995263fe69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ok, I was looking through the changes earlier (and will continue tomorrow). I have made two important checks thus far:1) div(curl(A)) = 02) curl(grad(f)) = 0
They both check out. Next, something will have to be done for dot products to check:3) grad(fg) = f laplacian(g) + 2 * grad(f) (dot) grad(g) + g laplacian(f)And, the laplacian will need added to deal with vector laplacian to check:4) curl(curl(A)) = grad(div(A)) - laplacian(A)I will see what I can do for this as well. For the time being I'll stay in the dev environment under his branch. If we are working simultaneously we might need to do some special merges.
I'll see if I can get a hold of him and see where he is at (or, if you (Upabjojr) keep up with posts, message me on here).
I am afraid some sort of pprint() will need to be arranged for this spherical stuff because, as of now, the base scalars and base vectors append spherical_ on the normal ones (x, y, z, i, j, k).
Something I'd really like to see changed in the vector module, is the dependence of these operators on the coordinate system. That is, you define the grad, curl, div operators for every coordinate system. This is not necessary, because base_scalars and base_vectors all contain a reference to their coordinate system instance.
In SymPy, remember to access to parameters passed to the constructor with obj.args
They both check out. Next, something will have to be done for dot products to check:
TypeError: r cannot be interpreted correctly
>>> r + r * (dr & dr)
2 * spherical_r
So something will need to be added to the order of operations handler... any idea on how to start on this? Is that an error from decorators.py?
3) grad(fg) --> laplacian(fg) = f laplacian(g) + 2 * grad(f) (dot) grad(g) + g laplacian(f)
4) curl(curl(A)) = grad(div(A)) - laplacian(A)
Did you write some code? Did you post it on github?
I'll see if I can get a hold of him and see where he is at (or, if you (Upabjojr) keep up with posts, message me on here).
Hello there!
--
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+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/a43cffe0-c8f1-4654-8c3b-ac319a0a66ad%40googlegroups.com.
This is fixed in Python and is not something we can change. My opinion is that overloading the operators like this at all is a bad idea in Python. I'd rather not have them there at all.
Here are some of the changes that were requested. I will continue to work but I'm afraid I'm going to need to take a full day to work out the SymPy Expr Tree (focusing on vectors) to do any kind of symbolic vector programming. Here is the link to my commit:https://github.com/jbbskinny/sympy/commit/793539fe13c1136750452a8796b16a5516863d51 -- Forked from Upabjojr/sympy:vector_all_coord_sys
This is fixed in Python and is not something we can change. My opinion is that overloading the operators like this at all is a bad idea in Python. I'd rather not have them there at all.Out of curiosity, which Python function does this? Adding a whole new operator is interesting.. and, of course, debatable.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6JN77y4PLyWWnhPWMZX_ach5h0vX8N-fOjLTuN7t7U5AA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CALOxT-mP6Lcb-AFsdrwVq9kMJoaiKpQoYBoH8GDL2pkJX3OUGQ%40mail.gmail.com.
I will help you get your dev environment setup and give info on how to make PRs, etc.
On Wednesday, 21 October 2015 17:37:31 UTC+2, Jason Moore wrote:I will help you get your dev environment setup and give info on how to make PRs, etc.
I'd recommand using PyCharm, it has excellent Python code analysis, debugger and github integration.
https://www.jetbrains.com/pycharm/download/
Community Edition is free and open source.
--
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+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/af67bd50-bf8f-49d8-8b3a-bb3d4109c4aa%40googlegroups.com.