Re: [sympy] validating dimensional consistency of expression

2020-05-27 Thread Ben
I agree with your assessment. Here's my minimum working example where I don't use eval(str()) and get the problem. >>> import sys >>> sys.version '3.6.9 (default, Apr 18 2020, 01:56:04) \n[GCC 8.4.0]' >>> import sympy >>> sympy.__version__ '1.5.1' >>> from sympy.physics.units import mass,

Re: [sympy] validating dimensional consistency of expression

2020-05-27 Thread Aaron Meurer
Why are you using eval(str(eq.lhs))? That should just give back eq.lhs. Aaron Meurer On Wed, May 27, 2020 at 6:35 PM Ben wrote: > > Thanks Aaron for your help. > > With your guidance, I solved my problem (though my use of eval() feels hacky). > > >>> import sympy > >>> from sympy.physics.units

Re: [sympy] validating dimensional consistency of expression

2020-05-27 Thread Ben
Thanks Aaron for your help. With your guidance, I solved my problem (though my use of eval() feels hacky). >>> import sympy >>> from sympy.physics.units import mass, length, time >>> from sympy.physics.units.systems.si import dimsys_SI >>> from sympy.parsing.latex import parse_latex >>> eq =

Re: [sympy] validating dimensional consistency of expression

2020-05-27 Thread Aaron Meurer
You're right that you have to define the Python variable name to access F like that. See https://docs.sympy.org/latest/tutorial/gotchas.html. You can get all the symbols in an expression with eq.free_symbols. Or if you know the symbol is F you can just set F = symbols('F') since symbols with

Re: [sympy] Reason for this output.

2020-05-27 Thread Mohit Shah
I got that. :members: only shows non private methods. I got that when I read the document on autodoc again. Is that right? On Thursday, May 28, 2020 at 1:55:01 AM UTC+5:30, Mohit Shah wrote: > > [image: SympyAssumption2.PNG] > It is something like this. > > But recently, I saw that I am getting

Re: [sympy] Reason for this output.

2020-05-27 Thread Mohit Shah
I got that. :members: only shows non private methods. I got that when I read the document on autodoc again. Thanks. On Thursday, May 28, 2020 at 1:55:01 AM UTC+5:30, Mohit Shah wrote: > > [image: SympyAssumption2.PNG] > It is something like this. > > But recently, I saw that I am getting some

[sympy] Re: Error while following steps of sympy document

2020-05-27 Thread Mohit Shah
Yes, I tried that as well. I don't know how but when I cloned the project again from github, It worked. Thanks for the help. On Wednesday, May 27, 2020 at 10:08:36 PM UTC+5:30, S.Y. Lee wrote: > > Have you tried > sudo apt-get update > > > On Tuesday, May 26, 2020 at 10:49:46 PM UTC+9, Mohit Shah

[sympy] validating dimensional consistency of expression

2020-05-27 Thread Ben
Hello, I have a string written in Latex for which I know the dimensions of each symbol. My goal is to validate the dimensional consistency of the expression. I'm having trouble with substitution. For example, >>> from sympy.physics.units import mass, length, time >>> from

Re: [sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread Aaron Meurer
I think we can modify the backend, but we should be prepared as mentors to do the programming work. Conversely, I don't know if it would make sense to make any changes without feedback from a technical writer if we are going to get one, so I don't know if it makes sense to do anything like this

[sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread S.Y. Lee
It just gives an another reason to hurry up setting up the static web framework. Unfortunately, I don't think that it is possible to edit sympy.org than messing with html files, besides the translations, so it will not be easy for technical writers. On Tuesday, May 26, 2020 at 1:20:01 AM

Re: [sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread Aaron Meurer
I 100% agree with Jason here. In fact, I would say that the mentors should help do any programming/tooling related fixes that are needed to support the GSoD technical writers. This makes GSoD a harder program to mentor than GSoC. Aaron Meurer On Wed, May 27, 2020 at 11:51 AM Jason Moore wrote:

Re: [sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread Jason Moore
I think a GSOD spot would be better spent on working on content, not tooling and other things. Its a key distinction in the GSoC and GSoD programs. The docs program is supposed to be suitable for people that don't necessarily have programming know how. Jason moorepants.info +01 530-601-9791 On

Re: [sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread Aaron Meurer
It is a possibility. It mainly depends on what we would gain from doing so. I would add that, at least in my opinion, our website isn't in too bad of a state, especially compared to the NumPy site as it was before the refactor. As a reminder, this is what it used to look like

[sympy] Re: Error while following steps of sympy document

2020-05-27 Thread S.Y. Lee
Have you tried sudo apt-get update On Tuesday, May 26, 2020 at 10:49:46 PM UTC+9, Mohit Shah wrote: > > I am getting the following error while I was following steps through sympy > document. Please help to resolve this error. > Thanks > > [image: SympyError.PNG] > > -- You received this

Re: [sympy] Simple definition of equations that might be worth folding into SymPy...

2020-05-27 Thread Jonathan Gutow
On Wednesday, May 27, 2020 at 3:26:00 AM UTC-5, czgdp1807 wrote: > > Hi, > > Is https://github.com/sympy/sympy/issues/5031 related to your work? > Sort of. This https://github.com/sympy/sympy/pull/18174 and https://github.com/sympy/sympy/issues/4986 (where Oscar Benjamin

Re: [sympy] Question on using Symbol as instance naming

2020-05-27 Thread mcpl snu
Can you recall why it was rejected, please? I really would like to know. 2020년 5월 27일 수요일 오전 4시 51분 16초 UTC+9, Aaron Meurer 님의 말: > > I think this was discussed in the past and we decided we don't want a > String object. Unfortunately GitHub's issue search is kind of bad so > I'm having a hard

[sympy] Re: Can a GSOD slot be used to improve the website?

2020-05-27 Thread S.Y. Lee
I see numpy.org is now using hugo. We may have consider changing the static site generator like https://github.com/numpy/numpy.org/issues/29 On Tuesday, May 26, 2020 at 1:20:01 AM UTC+9, Jason Moore wrote: > > I was admiring the new NumPy website: https://numpy.org/ and thinking how > some of

Re: [sympy] Re: tests for parsing Latex input to Sympy

2020-05-27 Thread Francesco Bonazzi
Parsing a LaTeX expression should ideally return candidate SymPy expressions with a matching probability. In case of unambiguous matching, only one expression should have a high matching probability. In case of ambiguous matching, two or more SymPy expressions should have high probability.

Re: [sympy] Simple definition of equations that might be worth folding into SymPy...

2020-05-27 Thread Gagandeep Singh (B17CS021)
Hi, Is https://github.com/sympy/sympy/issues/5031 related to your work? With Regards, Gagandeep Singh Github - https://github.com/czgdp1807 LinkedIn - https://www.linkedin.com/in/czgdp1807 On Wed, 27 May, 2020, 11:20 AM Jonathan Gutow, wrote: > Dear SymPy Community, > > For use by my students