Re: [sympy] [SymPy] Is this a bug or a feature?

2021-02-10 Thread gu...@uwosh.edu
I'm swamped with grading and class preparation, but wanted to comment briefly on the items below: On Wednesday, February 10, 2021 at 3:58:21 PM UTC-6 asme...@gmail.com wrote: > On Wed, Feb 10, 2021 at 1:44 PM Oscar Benjamin > wrote: > > Yes, DivideSides would make sense for unevaluated

Re: [sympy] [SymPy] Is this a bug or a feature?

2021-02-10 Thread Aaron Meurer
On Wed, Feb 10, 2021 at 1:44 PM Oscar Benjamin wrote: > On Wed, 10 Feb 2021 at 20:24, Aaron Meurer wrote: > > > > On Wed, Feb 10, 2021 at 6:47 AM David Bailey wrote: > >> > >> On 10/02/2021 00:53, Oscar Benjamin wrote: > >> > >> On Tue, 9 Feb 2021 at 23:58, S.Y. Lee wrote: > >> > >> > >> And

Re: [sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Michał Pawłowski
Thank you so much, it works great now! :) I haven't installed it. I have newest version I used to used git pull .. Thank U Mike środa, 10 lutego 2021 o 22:14:07 UTC+1 Oscar napisał(a): > Do you particularly want to use the master version of sympy from git? > > It's usually better to use the

Re: [sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Oscar Benjamin
Do you particularly want to use the master version of sympy from git? It's usually better to use the latest release (currently 1.7.1) unless you are planning to work on making changes to sympy itself. You can install the latest release by running e.g "pip install sympy" (or "conda install sympy"

Re: [sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Michał Pawłowski
Thanks. I used git clone ... thats all środa, 10 lutego 2021 o 21:53:02 UTC+1 Oscar napisał(a): > On Wed, 10 Feb 2021 at 20:47, Michał Pawłowski > wrote: > > > > Hi. > > > > I have such problem. > > > > I've created py file: > > > > #!/usr/bin/python3 > > > > from sympy import * > > x =

Re: [sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Michał Pawłowski
Thank you for quick reply. I'm not sure. I've input git clone ... Thats all. śr., 10.02.2021, 21:53 użytkownik Oscar Benjamin napisał: > On Wed, 10 Feb 2021 at 20:47, Michał Pawłowski > wrote: > > > > Hi. > > > > I have such problem. > > > > I've created py file: > > > > #!/usr/bin/python3 >

Re: [sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Oscar Benjamin
On Wed, 10 Feb 2021 at 20:47, Michał Pawłowski wrote: > > Hi. > > I have such problem. > > I've created py file: > > #!/usr/bin/python3 > > from sympy import * > x = Symbol('x') > print(expand(sin(x)*(x-1)*(x+1))) > > When it is inside of SymPy lib dir, it returns correct result in console. >

[sympy] Execute .py file -> not recognizing Symbol, when file isn't inside of sympy dir

2021-02-10 Thread Michał Pawłowski
Hi. I have such problem. I've created py file: #!/usr/bin/python3 from sympy import * x = Symbol('x') print(expand(sin(x)*(x-1)*(x+1))) When it is inside of SymPy lib dir, it returns correct result in console. But, when I put it not inside the lib dir, it tells me, that: NameError: name

Re: [sympy] [SymPy] Is this a bug or a feature?

2021-02-10 Thread Oscar Benjamin
On Wed, 10 Feb 2021 at 20:24, Aaron Meurer wrote: > > On Wed, Feb 10, 2021 at 6:47 AM David Bailey wrote: >> >> On 10/02/2021 00:53, Oscar Benjamin wrote: >> >> On Tue, 9 Feb 2021 at 23:58, S.Y. Lee wrote: >> >> >> And we would also arrive in questions like: If equation brings its own >>

Re: [sympy] [SymPy] Is this a bug or a feature?

2021-02-10 Thread Aaron Meurer
On Wed, Feb 10, 2021 at 6:47 AM David Bailey wrote: > On 10/02/2021 00:53, Oscar Benjamin wrote: > > On Tue, 9 Feb 2021 at 23:58, S.Y. Lee > wrote: > > > And we would also arrive in questions like: If equation brings its own > algebra system, there should be an equation of equations? How

[sympy] Re: Simplify, how return code instead of TeX?

2021-02-10 Thread Michał Pawłowski
Thank you very much! :) środa, 10 lutego 2021 o 20:22:09 UTC+1 gu...@uwosh.edu napisał(a): > `print(expand((x**2+1)*(x-1)))` > > On Wednesday, February 10, 2021 at 1:20:38 PM UTC-6 > michal.bozyd...@gmail.com wrote: > >> Thank you. It works in this example. But if I'd like to do this: >> >>

[sympy] Re: Simplify, how return code instead of TeX?

2021-02-10 Thread gu...@uwosh.edu
`print(expand((x**2+1)*(x-1)))` On Wednesday, February 10, 2021 at 1:20:38 PM UTC-6 michal.bozyd...@gmail.com wrote: > Thank you. It works in this example. But if I'd like to do this: > > print((x**2+1)*(x-1)) > > It prints me string without compute it. I'd like to have : > > x**3-x**2+x-1 > >

[sympy] Re: Simplify, how return code instead of TeX?

2021-02-10 Thread Michał Pawłowski
Thank you. It works in this example. But if I'd like to do this: print((x**2+1)*(x-1)) It prints me string without compute it. I'd like to have : x**3-x**2+x-1 Is it possible? Thanks Mike środa, 10 lutego 2021 o 19:59:55 UTC+1 gu...@uwosh.edu napisał(a): > wrap your expression in a

[sympy] Re: Simplify, how return code instead of TeX?

2021-02-10 Thread gu...@uwosh.edu
wrap your expression in a `print()` statement: `print(1+x+x**2+x**3)`. On Wednesday, February 10, 2021 at 9:43:44 AM UTC-6 michal.bozyd...@gmail.com wrote: > Hi. > > I'd like to generate code of simplified formula. I.E: > > When I pass: 1+x+x**2+x**3 > I'd like to have: x**3+x**2+x+1 > > Is it

Re: [sympy] Google Season of Docs 2021

2021-02-10 Thread Soumi7
Hi Tejasvi, This issue (https://github.com/sympy/sympy/issues/19591) has links to all modules that have been updated. You can start by updating other modules to follow the documentation style guide mentioned here : https://docs.sympy.org/latest/documentation-style-guide.html. Thanks, Soumi.

Re: [sympy] Google Season of Docs 2021

2021-02-10 Thread C.S.R. Tejasvi
Hi Aaron and Oscar, I am Tejasvi Chebrolu, a computer science sophomore at International Institute of Information Technology, Hyderabad. I have recently been trying to improve my technical writing skills and would like to work with SymPy as a part of GSoD-2021. After going through the ideas on

Re: [sympy] GSoC Idea discussion

2021-02-10 Thread Sudeep Sidhu
Jason, Thanks for clarifying things for me , I actually got confused because your name wasn't in potential mentors list so I thought about that "good to go". Other than looking in other dynamics packages I wanted to learn a bit theory about Joints and JointsMethod , searching google is showing

[sympy] Simplify, how return code instead of TeX?

2021-02-10 Thread Michał Pawłowski
Hi. I'd like to generate code of simplified formula. I.E: When I pass: 1+x+x**2+x**3 I'd like to have: x**3+x**2+x+1 Is it possible to achieve it? Thanks Mike -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop

Re: [sympy] GSoC Idea discussion

2021-02-10 Thread Jason Moore
Sudeep, We don't tell you what is "good to go". Every applicant can propose whatever they want. The applications are judged on the scope, the likelihood of success, the writer's communication, alignment with sympy's roadmap, and their applicant's interaction with the community. Jason

Re: [sympy] GSoC Idea discussion

2021-02-10 Thread Sudeep Sidhu
Jason, I'll surely look into it. So is JointsMethod good to go as GSoC project? On Wed, 10 Feb 2021, 19:15 Jason Moore, wrote: > Sudeep, > > The only thing I can think of to look it is how people do this in other > dynamics software. Many of them let the user define a system based on >

Re: [sympy] [SymPy] Is this a bug or a feature?

2021-02-10 Thread David Bailey
On 10/02/2021 00:53, Oscar Benjamin wrote: On Tue, 9 Feb 2021 at 23:58, S.Y. Lee wrote: And we would also arrive in questions like: If equation brings its own algebra system, there should be an equation of equations? How should we solve them? It's not an "algebra system": it's just a few

Re: [sympy] GSoC Idea discussion

2021-02-10 Thread Jason Moore
Sudeep, The only thing I can think of to look it is how people do this in other dynamics software. Many of them let the user define a system based on descriptions of rigid bodies and different joint types. That description is the used to define the mathematics of the kinematics. The software

Re: [sympy] GSoC Idea discussion

2021-02-10 Thread Sudeep Sidhu
Jason, I went through the previous JointsMethod work, I think it would be wise to complete the previous 2 PRs of Joint Methods because it contains some good work and completing them would take less time rather than starting from scratch. Please refer a source to read more about Joints and