Well, you might consider working on the expressions <lef-hend part>-<right-hand part>. A quick test with Sympy:
Python 3.8.3 (default, May 14 2020, 11:03:12) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> python.el: native completion setup loaded >>> from sympy import * >>> p,V,n,R,T=symbols("p,V,n,R,T") >>> Ex1=p*V-n*R*T >>> Ex1 -R*T*n + V*p >>> Ex1/V (-R*T*n + V*p)/V >>> solve(Ex1,p) [R*T*n/V] But Sympy *has* the Eq operator, which allows you to build, store and use symbolic equations : >>> Eq1=Eq(p*V, n*R*T) >>> Eq1 Eq(V*p, R*T*n) >>> solve(Eq1,p) [R*T*n/V] OTOH, Sage isn't *that* much heavier than Sympy... HTH, Le jeudi 21 mai 2020 15:30:42 UTC+2, Jonathan a écrit : > > Dear All, > > I have a use case where I need something lighter weight than the whole of > Sagemath. I think SymPy + the ability to handle math on symbolic equations > as Sagemath does it might be enough. Thus I wanted to see if I could > extract from Sagemath the code supporting math on symbolic expressions and > overlay that on SymPy or at least use that as a template. Can somebody > please point me to the place to start looking in the codebase? > > To make sure people understand what I am interested in, here is a simple > example of the ability I would like to extract: > >>>eq1 = p*V==n*R*T > >>>eq1 > p*V=n*R*T > >>>eq2=eq1/V > >>>eq2 > p=n*R*T/V > > Thanks, > Jonathan > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/cac3707c-0983-479e-ab67-4b0b2122f23e%40googlegroups.com.