hannorein / rebound

💫 An open-source multi-purpose N-body code.
https://rebound.readthedocs.io/
GNU General Public License v3.0
849 stars 219 forks source link

added add sub mul div #646

Closed dtamayo closed 1 year ago

dtamayo commented 1 year ago

This is great!

I've added add etc. so that we can write e.g.

Ltot = sim.angular_momentum() + rebx.spin_angular_momentum()

Should we make repr print something less ctypesy, closer to Vec3d([1,2,3])?

I added a little bit of text to the orbit classmethod for Rotation, which I see has given up on putting a 'from' or a 'to' 😂

hannorein commented 1 year ago

Thanks!

Yes to your question.