Re: [sympy] Introducing Equation module

2021-05-12 Thread JSS95
Jonathan, may I squash the commits when the PR is merged? This means that your 80 commit logs will be lost, but you will still have the credits as a co-author. Jisoo Song 2021년 5월 12일 수요일 오전 9시 24분 39초 UTC+9에 gu...@uwosh.edu님이 작성: > > I called myself naive, in that I suppose I think it would

Re: [sympy] Idiomatic way to evaluate a scalar field at a given vector value?

2021-05-12 Thread Alan Bromborsky
Look at the following link.  Galgebra is built on top of sympy - https://galgebra.readthedocs.io/en/latest/ You can define a set of basis vectors say e1, e2, and e3, and coefficients a1, a2, and a3, then a general vector a1*e1+a2*e2+a3*e3.  The coefficients can be functions of the

[sympy] Idiomatic way to evaluate a scalar field at a given vector value?

2021-05-12 Thread Ryan D Johnson
I've been using sympy in jupyter notebooks as a simple free symbolic algebra system while helping my kids review calculus and physics in anticipation of starting as freshman at an engineering school in the fall. We made it through all of single variable calculus without too much trouble, but

Re: [sympy] Rewriting with instance as rule

2021-05-12 Thread Aaron Meurer
I would just pass the object through to the function, like expr.rewrite(expr2) calls expr._eval_rewrite(expr2) except it should still prefer the existing API if a method matches. This way, the function can do whatever dispatching is necessary. Another thing to think about for this is that

Re: [sympy] Rewriting with instance as rule

2021-05-12 Thread JSS95
Any idea to improve the API? The first that comes to my mind is singledispatch, but probably it's an overkill. Jisoo Song 2021년 5월 12일 수요일 오후 12시 40분 11초 UTC+9에 asme...@gmail.com님이 작성: > I also never liked how rewrite transforms the class name into a string > for the method name. That makes it