[sympy] Error in following code

2022-06-23 Thread Yashvardhan Prasad
Hey everyone.

Currently I am working on a PR dealing with deprecation. However, I am 
getting an error in the stacklevel argument which I do not understand at 
all. Kindly help through it.
Here's the link of my PR:
Fixing physics.units module 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/887762f6-0ba6-4a5a-a979-caeaa2e7e887n%40googlegroups.com.


[sympy] Introduction

2022-06-23 Thread 2 False
Hello from Brazil,

I'm Luis (18) and I've been programming in Python nearly every day for 
close to four years on websites like Codewars. I have only completed High 
School but have taken several college classes: Proof-based Linear Algebra, 
Introduction to Classical Mechanics (Lagrangian Mechanics), AP Calculus BC, 
Real Analysis, both AP Computer Science A and P, and AP Physics C. I'm 
deeply interested in Calculus and Number Theory, in particular. I used 
Sympy in some of my projects but I'm far from familiarized. However, the 
idea of Sympy captivated me to a degree that made me want to help in its 
development. It will be my first Open Source contribution so you'll need to 
bear with me if I stumble on something obvious, and I apologize in advance. 

Thank you and I'm excited to begin writing my first PR,

Luis (2 False)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/7836d219-4175-4a77-b178-3fdc88a6c25fn%40googlegroups.com.


[sympy] Sympy.physics.mechancis: RigidBody // inertia

2022-06-23 Thread Peter Stahlecker
I = me.inertia(A, iXX….) gives the inertia in the (normally) body  - fixed 
frame A
Body = Me.RigidBody( ‚Body‘, mass center, frame, mass, ( I, P))

My question: Does RigidBody ‚assume‘, that mass center = P ?

Reason behind my question:
 For regular homogenious bodies, iXX, IYY, etc are often known relative to 
the geometric center of the body.
If the mass center is not equal to the geometric center of the body, would 
RigidBody know, that the inertia is relative to the geometric center?

In my program, the kinetic energy comes out right, if I set mass center = 
geometric center, but incorrect if I do not.
Therefore, I wonder, whether there is a mistake in my program, or whether 
RigidBody assumes that P = mass center.

Thanks a lot for any help!


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/0d3101eb-1fe7-4c24-a125-bab8c8a58145n%40googlegroups.com.