Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Angadh Nanjangud
I think this error may be due to the whole rebasing issue. I have fixed this in my last commit. Sorry for the confusion. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7606048 -- You received this message because you are subscribed

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Angadh Nanjangud
@certik I am uncertain of how to interpret the docstring error but I have corrected what I believe was causing the error. I believe I have addressed all the concerns. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7607337 -- You

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2073861) (merged 5492ef80 into 15c2c89a). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7607658 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Ondřej Čertík
Thanks. This PR is +1 from me. I am just waiting for one last pass of Stefan's bot to make sure the make html passes as well, and then I'll merge it. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7616275 -- You received this

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Stefan Krastanov
**SymPy Bot Summary:** :red_circle: There were test failures. @angadhn: Please fix the test failures. *Test command:* setup.py test *master hash*: 15c2c89ad53f5715d7d42a9daf29ae819a8779fb *branch hash*: 5492ef80cfd9b63b0e65fb6432948ff6df012dd1 **Interpreter 1:** :eight_spoked_asterisk: All

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Ondřej Čertík
Ok, so the make html has to be fixed. @angadhn, are you able to reproduce the warning? Just do make html, try to build the docs and see if you can see the warning. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7617497 -- You

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Ondřej Čertík
m*r*v*N.z return self.point.pos_from(point) ^ (self.mass * self.point.vel(frame)) + +def kinetic_energy(self, frame): +Kinetic energy of the particle + +The kinetic energy, T, of a particle,P, is given by + +T = 0.5 * m *

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Ondřej Čertík
@angadhn, there are several warnings, see my log here: https://gist.github.com/3305562, and no warnings in master. Do: ``` cd doc make html ``` and let me know if you can reproduce my log. Then the next step will be to fix the warnings. --- Reply to this email directly or view it on GitHub:

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
m*r*v*N.z return self.point.pos_from(point) ^ (self.mass * self.point.vel(frame)) + +def kinetic_energy(self, frame): +Kinetic energy of the particle + +The kinetic energy, T, of a particle,P, is given by + +T = 0.5 * m *

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Angadh Nanjangud
m*r*v*N.z return self.point.pos_from(point) ^ (self.mass * self.point.vel(frame)) + +def kinetic_energy(self, frame): +Kinetic energy of the particle + +The kinetic energy, T, of a particle,P, is given by + +T = 0.5 * m *

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2082091) (merged e16691a6 into dd8352a0). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7631884 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
**[SymPy Bot][sympy-bot] Summary**: :red_circle: There were test failures (merged angadhn/dev (e16691a608a1f55c30dd2a3b7bd1a74dde485111) into master (dd8352a0582b91b286a98fabfb0af7486faeeb03)). @angadhn: Please fix the test failures. **Build HTML Docs:** :red_circle: There were test

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Stefan Krastanov
**SymPy Bot Summary:** :eight_spoked_asterisk: All tests have passed. *Test command:* setup.py test *master hash*: dd8352a0582b91b286a98fabfb0af7486faeeb03 *branch hash*: e16691a608a1f55c30dd2a3b7bd1a74dde485111 **Interpreter 1:** :eight_spoked_asterisk: All tests have passed. *Interpreter:*

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
@angadhn try `make clean; make html`. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7633594 -- You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group, send email to

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Angadh Nanjangud
still nothing. but it looks like the tests passed. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7633637 -- You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group, send

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
**[SymPy Bot][sympy-bot] Summary**: :red_circle: There were test failures (merged angadhn/dev (e16691a608a1f55c30dd2a3b7bd1a74dde485111) into master (dd8352a0582b91b286a98fabfb0af7486faeeb03)). @angadhn: Please fix the test failures. **Build HTML Docs:** :red_circle: There were test

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
I also can't reproduce it outside of sympy-bot. So I don't know what's going on. Sphinx seems to be quite buggy. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7633847 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-09 Thread Aaron Meurer
**[SymPy Bot][sympy-bot] Summary**: :eight_spoked_asterisk: All tests have passed (merged angadhn/dev (e16691a608a1f55c30dd2a3b7bd1a74dde485111) into master (dd8352a0582b91b286a98fabfb0af7486faeeb03)). **Build HTML Docs:** :eight_spoked_asterisk: All tests have

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Stefan Krastanov
**SymPy Bot Summary:** :red_circle: There were test failures. @angadhn: Please fix the test failures. *Test command:* setup.py test *master hash*: 0d88b25d001e4bf91d5ec36fddd06eb6cba77348 *branch hash*: caa2aa8836cadb302a33bf511f9f6264f762e9d5 **Interpreter 1:** :eight_spoked_asterisk: All

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
if not isinstance(bodylist, list): raise TypeError('System elements must be supplied as a list') else: -angularmomentum_sys = 0 +angular_momentum_sys = 0 done. --- Reply to this email directly or view it on GitHub:

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
I have also fixed the html doc errors in the latest commit and addressed all issues brought up thus far. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7581049 -- You received this message because you are subscribed to the Google

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2065828) (merged 57f1c042 into 0d88b25d). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7581070 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2065891) (merged 2fa49af6 into 0d88b25d). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7581366 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Ondřej Čertík
@angadhn, did you see my comment about rebasing? See also: https://groups.google.com/d/topic/sympy/T2NfDo17wqc/discussion Please stop rebasing, just keep pushing new patches in. You still didn't address the points, that I mentioned: https://github.com/sympy/sympy/pull/1407/files#r1306927

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
+ from sympy.physics.mechanics import Point, Particle, ReferenceFrame + from sympy.physics.mechanics import RigidBody, outer, potential_energy + from sympy import symbols + M, m, g, h = symbols('M m g h') + N = ReferenceFrame('N') + O = Point('O') +

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
10*N.z +bodylist = list(bodylist) fixed this. I didn't realise this was in the momenta functions too. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407/files#r1336833 -- You received this message because you are subscribed

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
10*N.x + 500*N.y +bodylist = list(bodylist) if not isinstance(bodylist, list): same as below. addressed now. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407/files#r1336838 -- You received this message because you are

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
+ +Examples + + + from sympy.physics.mechanics import Particle, Point + from sympy import symbols + m, g, h = symbols('m g h') + O = Point('O') + P = Particle('P', O, m) + P.set_potential_energy(m * g * h) + +

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Angadh Nanjangud
@certik I have stopped rebasing. Sorry about that mess. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7597305 -- You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group,

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2070253) (merged 50b2496f into 0d88b25d). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7597848 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-08 Thread Stefan Krastanov
**SymPy Bot Summary:** :red_circle: There were test failures. @angadhn: Please fix the test failures. *Test command:* setup.py test *master hash*: 15c2c89ad53f5715d7d42a9daf29ae819a8779fb *branch hash*: 50b2496fba8ef6df10c5032088b1c4965dbf2f7c **Interpreter 1:** :eight_spoked_asterisk: All

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
@angadhn, can you please address all Aaron's and Jason's comments above? E.g. things about the isinstance as well as the +=. Then we can merge it. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7571749 -- You received this message

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Angadh Nanjangud
Hi @certik, I believe I have already addressed the issues. https://github.com/angadhn/sympy/commit/53b6bc2d1f2dd99f6d27a4c154481fa463b0a2ec --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7571850 -- You received this message because

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
First one note for any PR just keep adding patches to your branch, so that we can quickly see what has changed and one can read the whole PR as a history or story. If you rebase, then suddenly all the test results stop having any sense. Only at the very end, when the PR is ready to go in,

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
for e in bodylist: if isinstance(e, (RigidBody, Particle)): -lm_individual = e.linearmomentum(frame) -linearmomentum_sys = linearmomentum_sys + lm_individual +lm_individual = e.linear_momentum(frame) +

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
10*N.x + 500*N.y +bodylist = list(bodylist) if not isinstance(bodylist, list): @angadhn, this comment still applies I think. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407/files#r1328300 -- You received this message

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
+ from sympy.physics.mechanics import Point, Particle, ReferenceFrame + from sympy.physics.mechanics import RigidBody, outer, potential_energy + from sympy import symbols + M, m, g, h = symbols('M m g h') + N = ReferenceFrame('N') + O = Point('O') +

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Ondřej Čertík
Looks like you rebased again... --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7572129 -- You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group, send email to

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2062711) (merged 1ba125ec into bd49e6a0). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7572588 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Angadh Nanjangud
Must've done that again mistakenly. Apologies. --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7573127 -- You received this message because you are subscribed to the Google Groups sympy-patches group. To post to this group, send

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Jason Moore
+ + from sympy.physics.mechanics import Particle, Point, outer + from sympy.physics.mechanics import RigidBody, ReferenceFrame + from sympy import symbols + b = ReferenceFrame('b') + M, g, h = symbols('M g h') + P = Point('P') + I =

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread The Travis Bot
This pull request [passes](http://travis-ci.org/sympy/sympy/builds/2063189) (merged caa2aa88 into bd49e6a0). --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1407#issuecomment-7573678 -- You received this message because you are subscribed to the

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Gilbert Gede
if not isinstance(bodylist, list): raise TypeError('System elements must be supplied as a list') else: -linearmomentum_sys = 0 +linear_momentum_sys = 0 Would returning S(0) here be better, to get a SymPy object? I've had other difficulties in mechanics

Re: [sympy] Kinetic and potential energy functionality. (#1407)

2012-08-07 Thread Gilbert Gede
if not isinstance(bodylist, list): raise TypeError('System elements must be supplied as a list') else: -angularmomentum_sys = 0 +angular_momentum_sys = 0 Same comment about S(0) --- Reply to this email directly or view it on GitHub: