Re: [sympy] Names that aren't unique

2021-04-12 Thread Aaron Meurer
The best way to avoid this issue is to be hygienic in how you define Symbols. My recommended best practices would be - Always define symbols at the top of your file/notebook, or top of the function if your use of sympy is restricted to a single function. - Assign symbols to variables. Don't

Re: [sympy] Sympy apart() with complex variables

2021-04-12 Thread Oscar Benjamin
On Mon, 12 Apr 2021 at 14:14, s5s wrote: > > I am trying to do partial fractions involving a complex variable. I was > wondering if one can do this with sympy apart function. Below is the code to > attempt this but it does not return a decomposed expression. > > > from sympy import * > x, y, z

Re: [sympy] Names that aren't unique

2021-04-12 Thread Oscar Benjamin
On Mon, 12 Apr 2021 at 13:23, 'Bruce Allen' via sympy wrote: > > Hi Oscar, > > > It wouldn't be hard to make any new definition of a Symbol with the > > same name as a previously created symbol raise an error but it would > > break the assumption that it is okay to define a symbol that is only >

[sympy] Sympy apart() with complex variables

2021-04-12 Thread s5s
Hi, I am trying to do partial fractions involving a complex variable. I was wondering if one can do this with sympy apart function. Below is the code to attempt this but it does not return a decomposed expression. from sympy import * x, y, z = symbols('x, y, z') s= symbols('s', complex=True,

Re: [sympy] Names that aren't unique

2021-04-12 Thread 'Bruce Allen' via sympy
Hi Oscar, It wouldn't be hard to make any new definition of a Symbol with the same name as a previously created symbol raise an error but it would break the assumption that it is okay to define a symbol that is only used local to some context and that assumption is depended on by many users and

Re: [sympy] New student - want to apply for GSoC - Improving plotting modules

2021-04-12 Thread Alan Bromborsky
In the Asymptote galleries look at webgl and movies.  I especially like the klein bottle in webgl that you can rotate - https://asymptote.sourceforge.io/gallery/3Dwebgl/Klein.html Clicking on klein.asy under the thumbnail shows the code. On 4/12/21 4:07 AM, Yaser wrote: Thanks for replying.

Re: [sympy] Names that aren't unique

2021-04-12 Thread Oscar Benjamin
On Mon, 12 Apr 2021 at 12:03, 'Bruce Allen' via sympy wrote: > > Hi David, > > > However, my feeling is that some proportion of SymPy users will work > > interactively - in one scope - without defining any Python functions. So > > they might calculate a polynomial without regard to any

Re: [sympy] Names that aren't unique

2021-04-12 Thread 'Bruce Allen' via sympy
Hi David, However, my feeling is that some proportion of SymPy users will work interactively - in one scope - without defining any Python functions. So they might calculate a polynomial without regard to any assumptions, and then wish to apply an assumption for one specific calculation and

Re: [sympy] Names that aren't unique

2021-04-12 Thread David Bailey
On 12/04/2021 06:53, 'Bruce Allen' via sympy wrote: Hi David, Thanks for picking this up.  I wanted to comment that in your example, the two symbols are defined differently: Symbol("x", positive=True) Symbol("x") that is to say, with different assumptions. For the issue that I was

Re: [sympy] New student - want to apply for GSoC - Improving plotting modules

2021-04-12 Thread Yaser
Thanks for replying. This asymptote package (language) looks quite useful. I found this python wrapper called PyAsy , but I suppose it's still not as good as needed. I could work on improving it but I need time to research. Also May I ask if there is still

[sympy] GSoc '21 Proposal

2021-04-12 Thread mit videos
Hello everyone, I've made a proposal for GSoc'21 on implementing a neural network to solve symbolic integeration problem. It would be really helpful if someone could provide feedback on this. https://docs.google.com/document/d/1AIL5APXj3qeFYqhDuJEOKK1RaCUSjXah-KTG9hJ5lvU/edit?usp=sharing Open