News for hackers. Stuff that matters.
Re:SymPy: Symbolic Mathematics in Python by bluish29 on Wednesday February 28, 2024 @09:46AM (#39538605)
A decade ago when I was interested in General Relativity I wanted to write a simple program to handle symbolic calculations for Einstein field equations (Starting with metric and calculated affine connections, ricci tensor …etc.). Sympy was an option (better because python was the only language I know well) but I found it hard and actually couldn't make it work. I used mathematica which was new for me but did it in a couple of hours. I expanded it later and used it to calculate a lot of things in a black hole paper I published later.

I checked now, and it seems that on this front a lot of development in sympy made it possible that we know how very good libraries built on top of it [1] [2]. There is even now a Jupyter notebook example on schwarzschild metric [3].

[1] https://docs.einsteinpy.org

[2]https://github.com/spacetimeengineer/spacetimeengine

[3] https://github.com/sympy/sympy/blob/master/examples/intermed...

Re:SymPy: Symbolic Mathematics in Python by dsqrt on Wednesday February 28, 2024 @10:34AM (#39539254)
You should check out Sage Manifolds [1]. It's built on top of Sage Math, but I think it can also use SymPy as computational engine.

[1] https://sagemanifolds.obspm.fr/