[sympy] Re: Interest in advanced physics libraries?

2019-01-07 Thread Michael Ryan
Ill need a few more days until I can fully stabilize my repo but check this out -> https://github.com/spacetimeengineer/spacetime-toolkit This is very new but it is much like what you described. Perhaps you could build from it or at-least shoot me some ideas. All you need is Sympy and a termina

[sympy] Re: Interest in advanced physics libraries?

2018-12-04 Thread Francesco Bonazzi
As another advice, I would suggest to focus more on pattern matching and rewriting rules. Implementing group theory and differential geometry in a rigorous manner might be very difficult, and often physicists are not even very precise with its usage. I recommend focusing on a good API (design o

Re: [sympy] Re: Interest in advanced physics libraries?

2018-12-03 Thread Aaron Meurer
That's a pretty broad question. I'm not sure if we have any general documentation on making your own SymPy types with subclassing. In general you don't have to override any methods unless you want to define that behavior. The main thing is to make sure the args of the expression are all Basic and c

[sympy] Re: Interest in advanced physics libraries?

2018-12-03 Thread Nicholas Ondo
Thanks for the responses, I was wondering --is there any tutorial on how to integrate SymPy dependencies into a new module? So let's say I wanted to make my own Tensor class. What does it need to inherit (other than Expr), what methods needs to be implemented, what dunder's need to be overridd

[sympy] Re: Interest in advanced physics libraries?

2018-12-03 Thread Francesco Bonazzi
On Monday, 3 December 2018 00:00:39 UTC+1, Nicholas Ondo wrote: > > So I'm a former theoretical physicist, and I am interested in writing a > library that will implement important functionality needed for formal HEP > physics/gravitational physics research. There's loads of calculations I > d

[sympy] Re: Interest in advanced physics libraries?

2018-12-03 Thread Kasper Peeters
If anyone, including you, is going to spend serious time on including some of that functionality, I would suggest you have a look first at what is already present in Cadabra (https://cadabra.science). It is possible to re-use its algorithms elsewhere by writing a bit of Python glue code, and po