Re: [sympy] SymPy Wedge Product Question

2024-04-28 Thread Oscar Benjamin
I don't know enough about this topic bur there is also galgebra which is a library that depends on SymPy: https://galgebra.readthedocs.io/en/latest/tutorials/algebra.html Does that do what is needed? On Sun, 28 Apr 2024 at 09:37, 'Carsten' via sympy wrote: > > HI, > > I almost do not follow

Re: [sympy] SymPy, Flint, and sparse polynomial representations

2024-03-12 Thread Oscar Benjamin
Hi Jake, I would be happy to meet (online) with you and your supervisor at some point if that helps. Oscar On Tue, 12 Mar 2024 at 11:49, Jake Moss wrote: > > Thank you for such a detailed reply! Seems like there will be plenty for me > to do. > > I'll reach out to David Einstein on GitHub

Re: [sympy] In memory of Kalevi Suominen

2024-03-11 Thread Oscar Benjamin
tions to SymPy will live on. I believe he mentored GSoC students. > If anyone knows more about Kalevi and can share, that would be much > appreciated. > > Sincerely, > > Jason > moorepants.info > +01 530-601-9791 > > > On Sun, Mar 10, 2024 at 5:31 PM Oscar Benjamin

Re: [sympy] SymPy, Flint, and sparse polynomial representations

2024-03-11 Thread Oscar Benjamin
On Mon, 11 Mar 2024 at 13:06, Jake Moss wrote: > > Hi, Hi Jake, > I'm looking at SymPy and Flint, and their sparse polynomial representations > under the direction of my supervisor for an Honours thesis at the University > of Queensland, Australia and I was wondering about the status of the

[sympy] In memory of Kalevi Suominen

2024-03-10 Thread Oscar Benjamin
Hi all SymPy community, It is with great sadness that I bring the news that Kalevi Suominen (@jksuom on GitHub) passed away on the 4th of March. Kalevi's son Risto passed on this news to me and some others by email yesterday. I never met Kalevi in person but we had many conversations online over

Re: [sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Oscar Benjamin
Hi Anton, To be clear I am not against adding SymPy to SPEC 0. I just want to understand what this means in practice. Presumably if SymPy is added there then people will have some expectation that it means something somehow. I don't really know how to answer the question "which versions of SymPy

Re: [sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Oscar Benjamin
Hi Anton, What difference does it make to you in practice whether or not SymPy is listed in SPEC 0? SymPy does not really support old versions with maintenance releases so it does not really have a "support cycle" in the sense that SPEC 0 seems to describe. There can be a bugfix release shortly

Re: [sympy] Add some links to README.md

2024-03-03 Thread Oscar Benjamin
You don't need to worry about those errors. They are not related to the changes in your PR and any PR can be merged even if those tests fail. It looks like those same errors are showing on all PRs right now. The errors that you see are in the numpy nightly test job. This is a job that runs the

Re: [sympy] Proposal for Enhancements to the Pow Class in SymPy

2024-03-02 Thread Oscar Benjamin
On Sat, 2 Mar 2024 at 17:16, Mariyala Rohith wrote: > > Dear Sympy Mentors, > > I hope this message finds you well! > I am writing to propose a couple of enhancements to the Pow class > in SymPy that I believe could extend its functionality and usefulness. > > 1. Roots of

Re: [sympy] Code Quality test failing on github even though local tests doesn't give any error

2024-02-18 Thread Oscar Benjamin
We should just remove slotscheck from CI. It isn't useful enough to justify any CI maintenance burden. -- Oscar On Tue, 13 Feb 2024 at 13:20, Shishir Kushwaha wrote: > > I have opened a PR which potentially fixes the issue , however the warnign > about the deprecated modules remain kindly

Re: [sympy] Closing Old Issues

2024-02-06 Thread Oscar Benjamin
On Tue, 6 Feb 2024 at 07:42, Shishir Kushwaha wrote: > > I was going over the open issues i could potentially solve and I think some > of them are still open after their solution PR has been merged. What do I do > about those issues . Should I leave a comment on the issue on its closing or >

Re: [sympy] Reviewing PRs and old SymPy issues

2024-02-06 Thread Oscar Benjamin
e triage permissions to >> just about anyone so they can go through and label old issues (triage >> permissions give you permissions to label issues). Just ask me or >> Oscar. >> >> Aaron Meurer >> >> On Mon, Feb 5, 2024 at 2:25 PM Oscar Benjamin >>

[sympy] Reviewing PRs and old SymPy issues

2024-02-05 Thread Oscar Benjamin
Hi all, There are currently a large number of new contributors opening various pull requests and commenting on issues in the SymPy repo. This is great to see, and I want to thank everyone who has been contributing. I would like to highlight though that opening pull requests is not the only way

Re: [sympy] Releasing SymPy 1.13

2024-02-02 Thread Oscar Benjamin
On Fri, 2 Feb 2024 at 22:36, Aaron Meurer wrote: > > On Fri, Feb 2, 2024 at 3:28 PM Oscar Benjamin > wrote: > > > > Without making python-flint a hard dependency there is no way to > > specify what versions should be acceptable in an install so I think > &

Re: [sympy] Doubt Regarding .mailmap file

2024-02-02 Thread Oscar Benjamin
It's hard to tell from a screenshot. Do you have a link to the PR? On Fri, 2 Feb 2024 at 17:36, Shishir Kushwaha wrote: > > Do I need to add my details everytime to thee .mailmap file when making a PR > , I did it in my first PR as mentioned in the documentation but when creating > a new

Re: [sympy] Releasing SymPy 1.13

2024-02-02 Thread Oscar Benjamin
On Fri, 2 Feb 2024 at 21:52, Aaron Meurer wrote: > > On Fri, Feb 2, 2024 at 9:41 AM Oscar Benjamin > wrote: > > > > I think that probably the right way to do this is just for SymPy to > > use python-flint by default if it is installed but with an almost > > exact

[sympy] Releasing SymPy 1.13

2024-02-02 Thread Oscar Benjamin
Hi all, It is past time that a new release of SymPy is needed. Let's get SymPy 1.13 out ASAP. I had been meaning to put out a bugfix release of SymPy 1.12.1 because of a few things that have been fixed since SymPy 1.12 but it didn't happen. In particular compatibility with Python 12's ast module

[sympy] python-flint 0.6.0 released

2024-02-02 Thread Oscar Benjamin
Hi all, Yesterday I pushed a new release of python-flint version 0.6.0 to PyPI. I expect that this release will appear in conda soon as well. The new release can be installed with pip install --upgrade python-flint As in previous releases there are binary wheels available for CPython

Re: [sympy] Need GSoC mentors and help updating ideas page

2024-01-24 Thread Oscar Benjamin
On Wed, 24 Jan 2024 at 23:32, Aaron Meurer wrote: > > A lot of the advanced ideas are important enough that if we found > someone willing and actually able to do them, then we should make an > effort to actually find someone who could mentor them. Particularly > the ideas relating to the polys

Re: [sympy] Need GSoC mentors and help updating ideas page

2024-01-24 Thread Oscar Benjamin
t confusing otherwise. I already submitted the application with the > link to https://github.com/sympy/sympy/wiki/GSoC-Ideas, so whatever is > on that page will be "the ideas page". > > Aaron Meurer > > On Wed, Jan 24, 2024 at 12:54 PM Oscar Benjamin > wrote: &g

Re: [sympy] Need GSoC mentors and help updating ideas page

2024-01-24 Thread Oscar Benjamin
Hi Aaron, I think we should start by removing everything from the ideas page and moving it to an "old ideas" page with a clear note indicating that some might still be relevant but others are likely not. I don't think it is good to leave things on there and just let them roll over from one year

Re: [sympy] Contribution to SymPy Projects + Polynomials representation ideas

2024-01-17 Thread Oscar Benjamin
On Wed, 17 Jan 2024 at 15:54, Spiros Maggioros wrote: > So we showed that, using AVL trees instead of arrays is much better(note > that even linked lists is slower cause the insertion time complexity is > O(n)). > Interesting. Did you compare the AVL tree with other sparse data structures? >

Re: [sympy] Contribution to SymPy Projects + Polynomials representation ideas

2024-01-17 Thread Oscar Benjamin
On Wed, 17 Jan 2024 at 15:16, Spiros Maggioros wrote: > > Hi everyone! Hi Spiros, > My name is Spiros Maggioros and i'm a 3rd year undegraduate electrical & > computer engineering student at National Technical University of Athens.I've > worked as a machine learning engineering intern at

Re: [sympy] Interest in Contributing to Sympy Projects

2024-01-13 Thread Oscar Benjamin
Hi Shishir, There is a guide for contributing to SymPy here: https://docs.sympy.org/dev/contributing/index.html#contributing The main thing is to find something that you can work on to improve SymPy. The starting point for that is usually to look at the open issues on GitHub, especially those

Re: [sympy] Go a step back after a bad manipulation

2023-12-07 Thread Oscar Benjamin
I think what you mean here is more like "variables" rather than "symbols". You might want to try using Spyder which can show you the values of all of the Python variables you have defined. On Thu, 7 Dec 2023 at 17:16, Mario Lemelin wrote: > > If I had one functionality to have in Sympy, it would

Re: [sympy] LLL and sympy

2023-11-07 Thread Oscar Benjamin
On Mon, 6 Nov 2023 at 11:46, Oscar Benjamin wrote: > > I don't anticipate any changes to the LLL code between now and the > 1.13 release except that I might try to add the lll method to Matrix > so that it is not necessary to convert to DomainMatrix explicitly. I just did

Re: [sympy] LLL and sympy

2023-11-06 Thread Oscar Benjamin
On Mon, 6 Nov 2023 at 03:22, T-Rex wrote: > > Thanks @oscar! I didn't think I would get a reply from the blog's owner :-) > > Re setting of the environment variable SYMPY_GROUND_TYPES=flint: (1) Would > that be in conflict with other parts of sympy/numpy/scipy? (2) After it is > set to

Re: [sympy] LLL and sympy

2023-11-05 Thread Oscar Benjamin
On Sun, 5 Nov 2023 at 15:04, T-Rex wrote: > > According to https://oscarbenjamin.github.io/blog/czi/post2.htmlsympy > now has LLL, but when I consulted the sympy documentation I could not find > actual commands that produces an LLL-reduced basis. SymPy has a new matrix type called

[sympy] python-flint 0.5.0 released

2023-10-22 Thread Oscar Benjamin
Hi all, Earlier today I pushed a new release of python-flint version 0.5.0 to PyPI. I expect that this release will appear in conda soon as well. The new release can be installed with pip install python-flint There are binary wheels available for CPython 3.9-3.12 for Windows, OSX (intel and

[sympy] Spam being posted to the SymPy mailing list

2023-10-08 Thread Oscar Benjamin
Hi all, There are many spam messages being sent to the SymPy mailing list. So far I and others have deleted and blocked these from the moderation queue. I'm not sure what has prompted the sudden urge to promote what look like Indonesian gambling websites on the SymPy mailing list but I guess that

Re: [sympy] Trouble with a simple trig equation and solveset

2023-10-05 Thread Oscar Benjamin
This is a bug. Can you open an issue with sympy on GitHub? The correct answer is given if you use exact rational numbers (S(1)/2 or Rational(1, 2)) rather than the float 1/2: In [6]: solveset(Eq(sin(x), S(1)/2), x, Reals) Out[6]: ⎧5⋅π │ ⎫ ⎧π │ ⎫ ⎨2⋅n⋅π + ─── │ n ∊ ℤ⎬

Re: [sympy] Future of SymPy part 2: polynomials

2023-09-10 Thread Oscar Benjamin
On Sun, 10 Sept 2023 at 16:37, David Bailey wrote: > > On 07/09/2023 00:07, Oscar Benjamin wrote: > > Hi all, > > > > I have a new blog post following the last one: > > https://oscarbenjamin.github.io/blog/czi/post2.html > > > > This one discusses SymPy'

Re: [sympy] Future of SymPy part 2: polynomials

2023-09-07 Thread Oscar Benjamin
On Thu, 7 Sept 2023 at 11:14, wrote: > > Dear Oscar, > > While 99% is way above my head (I studied engineering 40+ years ago), it is > fascinating reading! > I had no idea, how much 'math' was in sympy. > > In your post you write: > > if gmpy2 is installed then SymPy will use it and will be a

[sympy] Future of SymPy part 2: polynomials

2023-09-06 Thread Oscar Benjamin
Hi all, I have a new blog post following the last one: https://oscarbenjamin.github.io/blog/czi/post2.html This one discusses SymPy's polynomial system, improvements that can be made and in particular how to make use of python-flint to speed up polynomial operations in SymPy. -- Oscar -- You

Re: [sympy] Blog post about the the future of SymPy

2023-09-04 Thread Oscar Benjamin
On Sun, 3 Sept 2023 at 21:08, Aaron Meurer wrote: > > On Sun, Sep 3, 2023 at 11:43 AM emanuel.c...@gmail.com > wrote: > > > > I wonder if this problem could be handled with a auto_evaluate context > > handler, signalling to the symbolic expression system that the automatic > > evaluation is

Re: [sympy] hyint: hybrid (symbolic-numeric) integration

2023-09-01 Thread Oscar Benjamin
On Fri, 1 Sept 2023 at 06:45, Aaron Meurer wrote: > > I like the idea of using some faster linear algebra as a preprocessor > to reduce the size of the problem to be solved. You could then take > the reduced problem and solve it with exact symbolic arithmetic. The > worst that can happen is you

Re: [sympy] Hello there

2023-08-31 Thread Oscar Benjamin
On Mon, 14 Aug 2023 at 12:38, Prasoon wrote: > > First of all, Good morning everyone ( as this is my very first message) in > the channel and recently i get to know a few things about python libraries. > Does anybody think that can we able to see the contents present in python > modules like

Re: [sympy] hyint: hybrid (symbolic-numeric) integration

2023-08-31 Thread Oscar Benjamin
On Tue, 29 Aug 2023 at 07:09, Shahriar Iravanian wrote: > > Hi All, > Hi Shahriar, > I have uploaded a new package, hyint, to github and PyPi. It is a hybrid > (symbolic-numeric) integration package on top of SymPy and numpy/scipy. I > would appreciate it if it is added to the list of

Re: [sympy] Matrix cannot be solved in reasonable time

2023-08-26 Thread Oscar Benjamin
On Fri, 25 Aug 2023 at 18:38, Ralf Schlatterbeck wrote: > > Hello Oscar, > First, thanks for the very quick answer! > > On Fri, Aug 25, 2023 at 03:19:31PM +0100, Oscar Benjamin wrote: > > > > > > Trying to solve this with the 'LU' solver produces a really huge

Re: [sympy] Matrix cannot be solved in reasonable time

2023-08-25 Thread Oscar Benjamin
On Fri, 25 Aug 2023 at 14:08, Ralf Schlatterbeck wrote: > > Hi all, > > [This is quite long, tl;dr: I cannot solve a matrix in reasonable time > that can be solved with Maxima in 8s.] > > I'm using Lcapy (which in turn uses sympy) for computing a transfer > function of a simple circuit (see below

Re: [sympy] Blog post about the the future of SymPy

2023-08-20 Thread Oscar Benjamin
On Sat, 19 Aug 2023 at 22:52, David Bailey wrote: > > On 16/08/2023 16:13, Oscar Benjamin wrote: > > Hi all, > > > > I have written a blog post about recent work on SymPy and what I think > > should be future development plans: > > > > https://o

[sympy] Blog post about the the future of SymPy

2023-08-16 Thread Oscar Benjamin
Hi all, I have written a blog post about recent work on SymPy and what I think should be future development plans: https://oscarbenjamin.github.io/blog/czi/post1.html This is the first in a series of posts and in this one I describe what I think are the core parts of SymPy and outline from a

Re: [sympy] Introducing Diane Tchuindjo to the project

2023-07-18 Thread Oscar Benjamin
Hi Diane and welcome, I'm looking forward to seeing hypothesis used with SymPy. It seems like it could be really useful and I looked at it a few times but I just couldn't quite get my head round what the workflow would be, like exactly how we could use it... If you can figure that out (and

Re: [sympy] We should rename 'master' to 'main'

2023-07-18 Thread Oscar Benjamin
On Tue, 18 Jul 2023 at 05:23, Aaron Meurer wrote: > > But note that this is not a trivial thing to do, which is why it > hasn't happened yet. It's not as simple as just renaming the branch. > We also have to fix all the references to "master" everywhere, > including making sure that all our

Re: [sympy] We should rename 'master' to 'main'

2023-07-18 Thread Oscar Benjamin
On Tue, 18 Jul 2023 at 04:25, Sangyub Lee wrote: > > I think that github decided to do that in 2020. > And the main reason to do this is that 'master' is agreed to be politically > offensive terminology: I've been wondering for a long time now when someone would bring this up. Having watched

Re: [sympy] Easy way to use S()

2023-07-03 Thread Oscar Benjamin
On Mon, 3 Jul 2023 at 00:16, David Bailey wrote: > > On 02/07/2023 23:44, Oscar Benjamin wrote: > > On Sun, 2 Jul 2023 at 23:06, David Bailey wrote: > >> Dear Group, > >> > >> If I want to enter m+1/2, I define m as a symbol and write: > >&g

Re: [sympy] Easy way to use S()

2023-07-02 Thread Oscar Benjamin
On Sun, 2 Jul 2023 at 23:06, David Bailey wrote: > > Dear Group, > > If I want to enter m+1/2, I define m as a symbol and write: > > m+S(1)/2. > > However if I have a complicated expression with lots of fractions, such as: > > 1 + x*(m + 1/2)/(2*m + 1) + x**2*(m + 1/2)*(m + 3/2)/(2*(2*m +

Re: [sympy] How to obtain explicit formula of coefficients for generating functions

2023-06-19 Thread Oscar Benjamin
On Sat, 17 Jun 2023 at 03:42, Melis Gezer wrote: > > Is there any function to obtain an explicit formula of coefficients for > generating functions? > > It should give, for example, (1/(n+1))C(2n,n) if I gave the generating > function of Catalan numbers. I don't understand exactly what you are

Re: [sympy] Simplify expressions involving complex numbers

2023-05-23 Thread Oscar Benjamin
On Tue, 23 May 2023 at 06:51, Paul Royik wrote: > > How do I simplify the following expressions: i**(-2*i), (-i)**(-2*i), > ((-sqrt(3) - i)/2)**(-2*i), ((sqrt(3) - i)/2)**(-2*i) ? > > Is there any built-in function? > > For example, i**(-2*i) should give e^pi and ((sqrt(3) - i)/2)**(-2*i) should

Re: [sympy] SymPy 1.12 released

2023-05-11 Thread Oscar Benjamin
On Thu, 11 May 2023 at 19:46, David Bailey wrote: > > Many thanks Oscar for this release! > > Since it has been some time since 1.11 (or indeed 1.12rc1) was released, > I guess there were some deep and messy problems to be resolved! > > It installed for me and runs my code. > > Should we expect a

[sympy] SymPy 1.12 released

2023-05-11 Thread Oscar Benjamin
for this release; 42 people contributed for the first time for this release. Thanks to everyone who contributed to this release! - Jyn Spring 琴春* - anutosh491 - Ayush Aryan* - Blair Azzopardi - Stefan Behnle* - Oscar Benjamin - Evandro Bernardes* - Anurag Bhat - Francesco Bonazzi - Sam Brockie* - Pontus

Re: [sympy] GSoC 2023 Final Proposal on Sympy Gamma

2023-04-04 Thread Oscar Benjamin
There is now SymPy Beta: https://sympy-beta.vercel.app/ I'm not sure that we want to work on improving SymPy Gamma (rather than improving SymPy Beta instead). -- Oscar On Tue, 4 Apr 2023 at 19:53, Tilo RC wrote: > > Hi Aman. I am another GSoC applicant and I wanted to let you know that when I

Re: [sympy] Enabling precommit.ci to fix common PR problems automatically

2023-04-04 Thread Oscar Benjamin
On Tue, 4 Apr 2023 at 08:33, Aaron Meurer wrote: > > On Sun, Apr 2, 2023 at 10:29 AM Oscar Benjamin > wrote: > > > > > > I have figured out though a way that I could automate updates for > > requirements.txt files using the create-pull-request action and > &g

Re: [sympy] Enabling precommit.ci to fix common PR problems automatically

2023-04-02 Thread Oscar Benjamin
On Sun, 2 Apr 2023 at 02:19, Aaron Meurer wrote: > > On Sat, Apr 1, 2023 at 5:04 AM Oscar Benjamin > wrote: > > > > On Sat, 1 Apr 2023 at 06:36, Aaron Meurer wrote: > > > > > > On Fri, Mar 31, 2023 at 10:33 PM Jason Moore wrote: > > > > >

Re: [sympy] Enabling precommit.ci to fix common PR problems automatically

2023-04-01 Thread Oscar Benjamin
On Sat, 1 Apr 2023 at 06:36, Aaron Meurer wrote: > > On Fri, Mar 31, 2023 at 10:33 PM Jason Moore wrote: > > > > When the # of dependencies is large, dependabot is a very annoying feature. > > I contributed to a Javascript lib and the dependabot floods your inbox and > > notifications with

Re: [sympy] Enabling precommit.ci to fix common PR problems automatically

2023-03-31 Thread Oscar Benjamin
e commit, but it is >> the author's choice to do so. >> >> Jason >> moorepants.info >> +01 530-601-9791 >> >> >> On Tue, Mar 28, 2023 at 3:41 PM Oscar Benjamin >> wrote: >>> >>> Hi all, >>> >>> There are two

Re: [sympy] Improving Polynomial GCD proposal for GSoC 2023

2023-03-31 Thread Oscar Benjamin
Hi Abhishek, This is a nice looking proposal. I think what is proposed to do is over-ambitious though. I expect that it is not possible to make really good implementations of all of the algorithms listed within the time of a single GSOC project. In practice probably various other things will need

Re: [sympy] Enabling precommit.ci to fix common PR problems automatically

2023-03-28 Thread Oscar Benjamin
On Tue, 28 Mar 2023 at 17:13, Tirthankar Mazumder wrote: > > Adding a bit to this, the Rust repository does something similar to the > pre-commit hook thing: When you set up your dev environment, you can > optionally run ./x.py setup which optionally installs a pre-commit hook (with > the

[sympy] Enabling precommit.ci to fix common PR problems automatically

2023-03-28 Thread Oscar Benjamin
Hi all, There are two open PRs discussing the potential use of pre-commit and pre-commit.ci in SymPy: https://github.com/sympy/sympy/pull/24908 https://github.com/sympy/sympy/pull/24941 I want to know what others think specifically about enabling pre-commit.ci on the sympy repo or otherwise

Re: [sympy] GSOC Application: Creating a Wolfram Mathematica Interpreter with Sympy

2023-03-24 Thread Oscar Benjamin
There already is mathics which is a Wolfram Language interpreter that is based on SymPy. It would seem a bit odd to create a new one. On Fri, 24 Mar 2023 at 19:48, Aaron Meurer wrote: > > I believe the primary function of this project is to make it easier to > integrate the RUBI integrator into

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-22 Thread Oscar Benjamin
On Wed, 22 Mar 2023 at 21:34, Atahan Haznedar wrote: > > Unfortunately I couldn't make any progress fixing an issue for the Sympy > repository these couple days. This is the first time for me trying to make a > contribution to an open source community. Is it normal that I get overwhelmed > and

Re: [sympy] Intrested in working on Optimizing floating point expressions

2023-03-21 Thread Oscar Benjamin
On Tue, 21 Mar 2023 at 06:58, Mohitabinav Mohan Babu wrote: > > Hello everyone, I am Mohit, a sophomore pursuing Btech in Indian Institute of > Technology Madras. i am interested in working on the project "Optimize > Floating Point Expressions" as a part of GSoC-2023. I looked in to the >

Re: [sympy] Intro and Potential GSOC Project Ideas

2023-03-21 Thread Oscar Benjamin
On Tue, 21 Mar 2023 at 09:02, Tilo RC wrote: > > Hello! My name is Tilo and I am a sophomore at Pomona College in Claremont, > California. Currently, I am double majoring in math and cs. I am highly > interested in participating in GSoC with sympy because I believe it would be > a great

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-17 Thread Oscar Benjamin
On Fri, 17 Mar 2023 at 20:39, Aaron Meurer wrote: > > On Sun, Mar 12, 2023 at 3:04 PM Atahan Haznedar > wrote: > > > > Hello Oscar, > > > > Sorry for the late reply, after seeing the post you have made, I can pretty > > much can say that I am really excited! There are lots of things on the > >

[sympy] SymPy 1.12rc1 release candidate released

2023-03-13 Thread Oscar Benjamin
* - anutosh491 - Ayush Aryan* - Blair Azzopardi - Stefan Behnle* - Oscar Benjamin - Evandro Bernardes* - Anurag Bhat - Francesco Bonazzi - Sam Brockie* - Pontus von Brömssen* - Zach Carmichael - Michele Ceccacci* - cocolato - Costor* - Björn Dahlgren - Nikhil Date - Eric Demer* - Devansh* - Pieter

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-08 Thread Oscar Benjamin
Hi Atahan, I don't think that there has been any work on Groebner bases in SymPy in the last year. I just looked at the Groebner bases project idea. I guess you mean this one: https://github.com/sympy/sympy/wiki/GSoC-Ideas#efficient-groebner-bases-and-their-applications I would say that there

Re: [sympy] sort expression for power series

2023-03-06 Thread Oscar Benjamin
The degree function can be imported like from sympy import degree It is used to get the degree of a polynomial expression. On Mon, 6 Mar 2023 at 14:53, Thomas Ligon wrote: > > Thanks! That's a big help, but I am not finished yet. Here is where I am now: > > Step 1: Use your code. > name

Re: [sympy] sort expression for power series

2023-03-05 Thread Oscar Benjamin
On Sun, 5 Mar 2023 at 08:32, Thomas Ligon wrote: > > I have a lot of power series that look like this (but going up to t**12): > exp1 = -2867.70035529489*t**5 + 147.938724526848*t**3 - 2.56500070531002*t > While trying to gain some insight into the mathematics that creates them, I > want to

Re: [sympy] Re: Releasing SymPy 1.12

2023-03-03 Thread Oscar Benjamin
On Fri, 3 Mar 2023 at 23:29, Oscar Benjamin wrote: > > On Fri, 3 Mar 2023 at 21:32, David Bailey wrote: > > > > Oscar, > > > > The release of SymPy 1.12 seemed to be very close, but nothing has > > happened! > > > > It doesn't really matt

Re: [sympy] Re: Releasing SymPy 1.12

2023-03-03 Thread Oscar Benjamin
On Fri, 3 Mar 2023 at 21:32, David Bailey wrote: > > Oscar, > > The release of SymPy 1.12 seemed to be very close, but nothing has > happened! > > It doesn't really matter to me, but it would be interesting to explore > whatever is new. Hi David, I should have sent an announcement to the

Re: [sympy] Integration of asymptotic function using Poly.integrate()

2023-02-26 Thread Oscar Benjamin
On Sun, 26 Feb 2023 at 11:33, Suchit K wrote: > > Why does Poly.integrate() function doesn't give correct answer for asymptotic > expressions like O(x**2)? > Example: > from sympy import * > x = Symbol('x') > exp = Poly(O(x**4)) > print(exp.integrate()) #prints 1/2*O(x**4)**2 instead of O(x**5)

Re: [sympy] pickle for Function and Derivative

2023-01-28 Thread Oscar Benjamin
On Sat, 28 Jan 2023 at 16:38, Thomas Ligon wrote: > > Should pickle work for Function and Derivative? I found Sympy issue #4297 and > the answer seems to be no. > Nevertheless, here is what I have: > I have a private dictionary containing expressions of symbols, and everything > works fine. >

Re: [sympy] Re: Releasing SymPy 1.12

2023-01-26 Thread Oscar Benjamin
On Thu, 26 Jan 2023 at 20:28, David Bailey wrote: > > On 26/01/2023 12:56, Oscar Benjamin wrote: > > I've opened an issue to track releasing SymPy 1.12: > > https://github.com/sympy/sympy/issues/24601 > > > I went ahead and installed what I thought would be sy

[sympy] Re: Releasing SymPy 1.12

2023-01-26 Thread Oscar Benjamin
I've opened an issue to track releasing SymPy 1.12: https://github.com/sympy/sympy/issues/24601 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sympy] Releasing SymPy 1.12

2023-01-26 Thread Oscar Benjamin
Hi all, I'm thinking about putting out a release of SymPy 1.12 soon. Does anyone know of any issues that should be resolved before release? The current release notes for 1.12 are here: https://github.com/sympy/sympy/wiki/release-notes-for-1.12 -- Oscar -- You received this message because

Re: [sympy] Re: Area of Surface of Revolution Integral too Hard to be Computed By JULIA’ SymPy and Python’ SymPy

2023-01-25 Thread Oscar Benjamin
On Wed, 25 Jan 2023 at 21:15, emanuel.c...@gmail.com wrote: > > There seems to be some funamental differences between Sympy's integration > algorithm an other ones (say Sage, Maxima, Giac, Fricas or Mathematica). > Sympy : > > ``` > >>> from sympy import * > >>> x=symbols("x", positive=True) >

Re: [sympy] Order Add args when printing latex

2023-01-21 Thread Oscar Benjamin
On Sat, 21 Jan 2023 at 15:24, Paul Royik wrote: > > Thank you very much for the response. > Is there any other ways without evaluate=False? > What about def _parse_order(cls, order): function? > Can I specify a custom order? I don't think anything like this is possible but it would be good to

Re: [sympy] Simplification of Non-Linear Systems

2023-01-21 Thread Oscar Benjamin
On Fri, 30 Dec 2022 at 20:00, jesse grabowski wrote: > > Hello everyone! > > I am (trying) to use Sympy to automatically derive first order conditions and > a log-linear approximation to non-linear systems of equations from user > provided problem descriptions. An example system might look

Re: [sympy] Order Add args when printing latex

2023-01-21 Thread Oscar Benjamin
On Fri, 13 Jan 2023 at 11:10, Paul Royik wrote: > > Hello. > > Is it possible to render cos ^2 (x)- sin ^2 (x) as "cos ^2 (x)- sin ^2 (x)", > not "- sin ^2 (x)+cos^2(x)"? I want terms with negative sign be last. > > I've discovered that there is def _print_Add(self, expr, order=None): > > How

Re: [sympy] Good First issue ???

2023-01-21 Thread Oscar Benjamin
On Sat, 14 Jan 2023 at 18:05, Siddharth k wrote: > > May someone tell me which issue can i work on for my first ? since I tried > some of them by label (Easy to Fix) but can't seem to understand much or > somehow just dropped on trying to solve. Perhaps if you post a link to one that you

Re: [sympy] Beginner contributor to Sympy

2023-01-21 Thread Oscar Benjamin
On Fri, 20 Jan 2023 at 17:00, Mohit Kumar wrote: > > I want to contribute to sympy so, I ran tests using `$./setup.py test` . Now > I want to know if there would have been any error , I mean what it would show? It is better to run tests by running the bin/test script or using pytest. The full

Re: [sympy] negative-weight single source shortest paths in near-linear time

2023-01-20 Thread Oscar Benjamin
On Fri, 20 Jan 2023 at 06:14, Chris Smith wrote: > > Just read about https://arxiv.org/abs/2203.03456 in Quanta artical > https://www.quantamagazine.org/finally-a-fast-algorithm-for-shortest-paths-on-negative-graphs-20230118/. > One of the algorithms used in the solution computes a low-diameter

Re: [sympy] Add meijerg = False in dsolve

2023-01-18 Thread Oscar Benjamin
On Wed, 18 Jan 2023 at 08:33, 'Tom van Woudenberg' via sympy wrote: > > Disabling integration would be a neat solution! However, as Aaron stated, > dsolve() hangs when using all_Integral. That's a separate issue that should also be fixed. > What would be the best way to proceed? Would a flag

Re: [sympy] Add meijerg = False in dsolve

2023-01-17 Thread Oscar Benjamin
On Tue, 17 Jan 2023 at 14:57, 'Tom van Woudenberg' via sympy wrote: > > Would it be possible to implement a meijerg=false option for dsolve as well? It would be better to have a simple way of disabling integration in dsolve. -- You received this message because you are subscribed to the Google

Re: [sympy] Solve integratals

2023-01-17 Thread Oscar Benjamin
On Tue, 17 Jan 2023 at 11:31, Oscar Benjamin wrote: > > On Tue, 17 Jan 2023 at 10:39, 'Tom van Woudenberg' via sympy > wrote: > > > > Hi there, > > > > I'm trying to symbolically evaluate an integral with SymPy: > > Which version of sympy are you using?

Re: [sympy] Solve integratals

2023-01-17 Thread Oscar Benjamin
On Tue, 17 Jan 2023 at 10:39, 'Tom van Woudenberg' via sympy wrote: > > Hi there, > > I'm trying to symbolically evaluate an integral with SymPy: > > import sympy as sp > q, L, H = sp.symbols('q L H',positive=True,real=True) > x = sp.symbols('x',real=True) > Lexact =

Re: [sympy] Grouping Terms

2023-01-16 Thread Oscar Benjamin
On Mon, 16 Jan 2023 at 16:05, brombo wrote: > > I have a sum of terms some of which are multiplied by cos(th). I want to > group these terms together (in parenthesis) and have the terms not multiplied > by cos(th). A complicating issue is that the sum is a numerator in a > fraction.

Re: [sympy] Feedback requested on new deprecations policy

2023-01-15 Thread Oscar Benjamin
On Sun, 15 Jan 2023 at 16:12, Peter Stahlecker wrote: > > Just to increase my understanding: why would one deprecate 'things' which > work? > Is this related to python's development? Sometimes things sort of work in some cases but don't really work properly and it isn't possible to fix them

Re: [sympy] Feedback requested on new deprecations policy

2023-01-15 Thread Oscar Benjamin
On Sun, 15 Jan 2023 at 12:26, Jason Moore wrote: > > 1 year seems too short from my perspective. As a downstream package > maintainer, I release many packages less often than SymPy makes releases and > keeping up with deprecations disappearing effectively each SymPy release > would be

Re: [sympy] Re: Convert string of a named expression in sympy to the expression itself

2023-01-09 Thread Oscar Benjamin
This question was also asked and answered in other places: https://github.com/sympy/sympy/discussions/24483 https://stackoverflow.com/questions/75057460/convert-string-of-a-named-expression-in-sympy-to-the-expression-itself The OP wants eval: In [1]: expr1 = x*y + 1 In [2]: expr1 Out[2]: x⋅y +

Re: [sympy] Re: Step-by-Step mathematics in SymPy

2023-01-03 Thread Oscar Benjamin
On Tue, 3 Jan 2023 at 01:12, gu...@uwosh.edu wrote: > > On Monday, January 2, 2023 at 6:33:38 AM UTC-6 syle...@gmail.com wrote: >> >> I think that simplify or evaluation should rather be decomposed in many >> components > > > To a great extent I think sympy already does this through the

Re: [sympy] If a^2+b^2+c^2=1, how do you find all real-valued triplets that make the equation true?

2022-12-31 Thread Oscar Benjamin
On Sat, 31 Dec 2022 at 04:56, Carl K wrote: > > I'm playing with physics problems. Can SymPy solve problem like this? > > Question: a**2+b**2+c**2==1 (real valued) > Answer: -1<=a<=1, > -sqrt(1-a**2)<=b<=sqrt(1-a**2), > c is +- sqrt(1-a**2-b**2) What you are

Re: [sympy] Issue Comparing Two SolveSet Groups

2022-12-23 Thread Oscar Benjamin
On Fri, 23 Dec 2022 at 07:27, Kevin Moore wrote: > > Hello! I'm trying to get my head wrapped around how to use SolveSet (and > whether I should be using solve or some other method instead), and I ran into > the following problem. The question is why you are trying to compare these sets. I

Re: [sympy] Dataclasses for symbolic computation

2022-12-22 Thread Oscar Benjamin
On Thu, 22 Dec 2022 at 04:52, S.Y. Lee wrote: > > Hashcons looks interesting, but as simple as making every object as singletons > I would have a question how this would be implemented effectively on top of > python, for example, how to keep the hash table not grow infinitely with dead >

Re: [sympy] Python Versions We Support

2022-12-14 Thread Oscar Benjamin
Hi Simon, Yes, I think that SymPy 1.11 was released shortly before CPython 3.11. It was tested against 3.11 through all the beta versions etc. I don't immediately have 3.11 to hand. Does pip still install SymPy from PyPI under 3.11? Oscar On Wed, 14 Dec 2022 at 14:39, Simon Cross wrote: > >

Re: [sympy] Displaying quantities in SI base units

2022-11-28 Thread Oscar Benjamin
On Sat, 26 Nov 2022 at 07:13, Teo wrote: > > Hi all. I just started using Sympy this week. According to this video, when > the following code was run, the units of ohm would be returned in SI base > units. > > import sympy.physics.units as u > u.ohm > > However, when I tried, I got the symbol

Re: [sympy] Physics related projects

2022-11-28 Thread Oscar Benjamin
On Sat, 26 Nov 2022 at 10:11, Vaani Pathariya wrote: > > Hello everyone ! > I started working with sympy a few months back and I really love the work the > organisation is doing .My indent is towards Physics related topics and have > even contributed to solve things related to physics units .I

Re: [sympy] Guidance Required

2022-11-28 Thread Oscar Benjamin
On Sun, 27 Nov 2022 at 07:39, Allan Anilson wrote: > > I am Allan Anilson, 19. > I have been using python for around 2 months now. I'm currently pursuing my > undergraduate studies in Computer Science and engineering. I am new to sympy > and open source, I want to start contributing to the

Re: [sympy] Issue with sympy quantum module

2022-11-21 Thread Oscar Benjamin
This is perhaps related to this issue: https://github.com/sympy/sympy/issues/24153 On Mon, 21 Nov 2022 at 17:03, Iman wrote: > > It runs on my PC. > I imported additional modules: > from sympy.physics.quantum import * > from sympy.physics.quantum.qubit import * > from sympy.physics.quantum.gate

Re: [sympy] Issue with sympy quantum module

2022-11-21 Thread Oscar Benjamin
On Mon, 21 Nov 2022 at 16:51, Iman wrote: > > I encountered a issue with the output of the following script: > > from sympy.physics.quantum import * > represent(Y(0)*Y(0),nqubits=1) > > I am expecting the ouput being a 2 by 2 identity matrix. But instead, > the output is a single number 1. > > I

  1   2   3   4   5   6   7   8   >