Re: [sympy] Re: Spam filters

2021-07-19 Thread Oscar Benjamin
On Tue, 20 Jul 2021 at 01:06, Aaron Meurer wrote: > > On Mon, Jul 19, 2021 at 5:49 PM Oscar Benjamin > wrote: > > > > I think I let that one through. > > No worries. I'm not trying to assign blame. I think in the past a > cursory glance would be fine, but that's

Re: [sympy] Common shape with lambdify on Matrix expression

2021-07-19 Thread Oscar Benjamin
On Tue, 20 Jul 2021 at 00:47, Aaron Meurer wrote: > > On Mon, Jul 19, 2021 at 4:56 PM Oscar Benjamin > wrote: > > > > On Mon, 19 Jul 2021 at 21:32, Aaron Meurer wrote: > > > > > > On Mon, Jul 19, 2021 at 9:12 AM Oscar Benjamin > > > wr

Re: [sympy] Common shape with lambdify on Matrix expression

2021-07-19 Thread Oscar Benjamin
On Mon, 19 Jul 2021 at 21:32, Aaron Meurer wrote: > > On Mon, Jul 19, 2021 at 9:12 AM Oscar Benjamin > wrote: > > > > For now the best workaround for this is probably lambdifying the > > separate expressions for each element like: > > > > import numpy as

Re: [sympy] Re: Spam filters

2021-07-19 Thread Oscar Benjamin
I think I let that one through. Looking at it now it doesn't seem like a great conversation starter but that's not really a criterion. I wonder if it was created by an AI somehow or if someone spent a little time crafting a vaguely believable but not quite sensical message. This list seems an odd

Re: [sympy] Re: Why is matrix inversion so slow?

2022-01-11 Thread Oscar Benjamin
On Tue, 11 Jan 2022 at 20:48, Gerardo Suarez wrote: > > Sorry, you're right I made a mistake while deriving that equation in python the actual matrix that I computed using mathematica is > > e = Matrix([[-gamma_c*(n_c + 1) - gamma_h*(n_h + 1), 0, 0, 0, 0, gamma_c*n_c, 0, 0, 0, 0, gamma_h*n_h, 0,

Re: [sympy] Re: Why is matrix inversion so slow?

2022-01-11 Thread Oscar Benjamin
On Tue, 11 Jan 2022 at 12:30, Gerardo Suarez wrote: > > Sure, sorry about the image, I was unaware of how easy is to generate python > code with the print methods > > from sympy import Symbol, Matrix,I > gamma_c = Symbol('gamma_c') > n_c = Symbol('n_c') > gamma_h = Symbol('gamma_h') > n_h =

Re: [sympy] Re: Why is matrix inversion so slow?

2022-01-11 Thread Oscar Benjamin
On Tue, 11 Jan 2022 at 12:30, Gerardo Suarez wrote: > > Sure, sorry about the image, I was unaware of how easy is to generate python > code with the print methods Thanks for that. I just wanted to test it to see if I could see what was slow or whether there is already a faster way to do this

Re: [sympy] Looking for reviewers: Update of German SymPy webpage

2022-01-15 Thread Oscar Benjamin
On Fri, 14 Jan 2022 at 08:45, Andreas Schuldei wrote: > I started a review. not sure if you can see that already. I will continue > as i manage. > Thanks for reviewing! I can't see any of your review. I don't think it becomes visible before you click the "submit review" button (or whatever it

Re: [sympy] more unified (and usable) solve output

2022-03-04 Thread Oscar Benjamin
On Fri, 4 Mar 2022 at 14:57, Chris Smith wrote: > > We could just make a wrapper named `solved = lambda f,*s,**k: solve(f, *s, > **k, dict=True)` If there is to be a new API then there are a *lot* of other things that I would want to change about it compared to solve so it definitely wouldn't

Re: [sympy] more unified (and usable) solve output

2022-03-05 Thread Oscar Benjamin
still just want to make a new solve function that isn't compatible with any of the existing ones. > On Fri, Mar 4, 2022 at 8:27 AM Oscar Benjamin > wrote: > > > > On Fri, 4 Mar 2022 at 14:57, Chris Smith wrote: > > > > > > We could just make a wrapper named `solv

Re: [sympy] Re: New SymPy Gamma with Pyodide Implementation

2022-03-16 Thread Oscar Benjamin
On Sat, 12 Mar 2022 at 06:52, Aman Sharma wrote: > > > Hello everyone > I have made some progress with SymPy Gamma on Pyodide. The only major thing > not implemented is Plotting. If you are interested, please check out the demo > and leave your thoughts. >

Re: [sympy] musings about roots of expressions

2022-03-16 Thread Oscar Benjamin
On Fri, 11 Mar 2022 at 23:13, Chris Smith wrote: > > Given two expressions, `p` and `q` > > p = x*y + x + y*z > q = p + z > > it is easy to show that `q = (x + z)*(y + 1)`. But I'm wanting to avoid > factoring but would like to know whether a solution for `x` from `p = 0` or > `q = 0` is a

Re: [sympy] PDEs module

2022-03-16 Thread Oscar Benjamin
On Tue, 15 Mar 2022 at 08:51, KSHITIJ SONI 19PE10041 wrote: > > Hey! > > I went through all the SymPy ideas, I also mailed Aaron regarding my interest > in Risch Algorithm. But as GSoC allow open ideas. I would like to take up the > task of solving PDEs. > > To start with we can develop : > 1.

Re: [sympy] PDEs module

2022-03-16 Thread Oscar Benjamin
On Wed, 16 Mar 2022 at 23:33, Peter Stahlecker wrote: > > Dear Oscar, Hi Peter! > Just for my understanding: > > Why do you feel, it would be useful for sympy to be able to numerically solve > ordinary differential equations? > Scipy seems to have very good routines to do this - or am I wrong,

Re: [sympy] more unified (and usable) solve output

2022-03-09 Thread Oscar Benjamin
On Wed, 9 Mar 2022 at 19:29, Chris Smith wrote: > > For the case of `eqs = [x+y+a, x+y+1]` you get the solution for `a = 1` if > you give it the freedom to tell you that: `solve(eqs) -> {a: 1, x: -y - 1}`. > This gives you the conditions for a solution: a value for `a` and a > relationship

Re: [sympy] SymPy 1.10 final released

2022-03-06 Thread Oscar Benjamin
On Sun, 6 Mar 2022 at 20:14, Jeremy Monat wrote: > > By the way, I noticed that a documentation change, the What's Next page > (merged on Feb 2) at the end of the tutorial, isn't included in the 1.10 > docs. (What's Next page is in the 1.11 dev docs.) Is that how the > documentation releases

[sympy] SymPy 1.10 final released

2022-03-06 Thread Oscar Benjamin
* - Oscar Benjamin - Anurag Bhat* - Ayush Bisht - Remco de Boer - Francesco Bonazzi - Zach Carmichael - Kaustubh Chaudhari - James Cotton - Björn Dahlgren - Nikhil Date* - Risiraj Dey* - Travis Ens* - Isuru Fernando - Tom Fryers* - Matthias Geier - Naman Gera - Pieter Gijsbers* - Oscar Gustafsson

Re: [sympy] SymPy 1.10rc1 released

2022-02-18 Thread Oscar Benjamin
On Fri, 18 Feb 2022 at 22:30, Aaron Meurer wrote: > > On Fri, Feb 18, 2022 at 3:24 PM Oscar Benjamin > wrote: >> >> On Fri, 18 Feb 2022 at 20:58, Aaron Meurer wrote: >> > >> > On Fri, Feb 18, 2022 at 12:59 PM Oscar Benjamin >> > wrote: &g

Re: [sympy] SymPy 1.10rc1 released

2022-02-18 Thread Oscar Benjamin
On Fri, 18 Feb 2022 at 20:58, Aaron Meurer wrote: > > On Fri, Feb 18, 2022 at 12:59 PM Oscar Benjamin > wrote: >> >> Hi all, >> >> I've just released the release candidate SymPy 1.10rc1. If no issues >> are reported then this will be released as SymPy

[sympy] SymPy 1.10rc1 released

2022-02-18 Thread Oscar Benjamin
contributed for the first time for this release. Thanks to everyone who contributed to this release! - Wang Ran (汪然)* - Advait* - AkuBrain* - alijosephine* - anutosh491* - Leo Battle* - Oscar Benjamin - Anurag Bhat* - Ayush Bisht - Remco de Boer - Francesco Bonazzi - Zach Carmichael - Kaustubh

Re: [sympy] SymPy 1.10rc1 released

2022-02-18 Thread Oscar Benjamin
On Sat, 19 Feb 2022 at 01:28, Aaron Meurer wrote: > > On Fri, Feb 18, 2022 at 3:38 PM Oscar Benjamin > wrote: >> >> On Fri, 18 Feb 2022 at 22:30, Aaron Meurer wrote: >> > >> > On Fri, Feb 18, 2022 at 3:24 PM Oscar Benjamin >> > wrote: >&g

Re: [sympy] Optimum factoring of multinomial expression

2022-02-16 Thread Oscar Benjamin
On Wed, 16 Feb 2022 at 22:26, brombo wrote: > > Does sympy have the capability to optimally factor (minimum number of > numerical operations) a polynomial or better yet a multinomial for numerical > evaluation. The simple example for a polynomial would be consider the > polynomial - > > y =

Re: [sympy] Re: Why is matrix inversion so slow?

2022-02-20 Thread Oscar Benjamin
On Thu, 17 Feb 2022 at 19:04, Gerardo Suarez wrote: > > Hi, sorry for not replying before I ended up solving my problem using > mathematica since I needed to compute this things quite a few times. But if > you could perhaps give out some references and some pointers as to how this > "gcd

Re: [sympy] Re: Why is matrix inversion so slow?

2022-02-20 Thread Oscar Benjamin
On Sun, 20 Feb 2022 at 13:33, Oscar Benjamin wrote: > > On Thu, 17 Feb 2022 at 19:04, Gerardo Suarez > wrote: > > > > Hi, sorry for not replying before I ended up solving my problem using > > mathematica since I needed to compute this things quite a few times. But

[sympy] SymPy 1.10rc2 released

2022-02-21 Thread Oscar Benjamin
Hi all, Following the previous release of SymPy 1.10rc1 a few days ago I discovered a few problems with the test suite. Certain tests failed under certain configurations depending on which other libraries were installed. I've since fixed these and so I have now released a second candidate SymPy

Re: [sympy] Help with Git and GitHub

2022-02-22 Thread Oscar Benjamin
On Tue, 22 Feb 2022 at 07:58, Kuldeep Borkar wrote: > > Hi SymPy Community, > > Few days ago I ran into a problem regarding Git and GitHub; > > Problem: Whenever I try to make a PR by creating a new branch from master > branch, the past commits showed up in the commit history (which I think is

Re: [sympy] SymPy 1.10rc1 released

2022-02-22 Thread Oscar Benjamin
On Tue, 22 Feb 2022 at 04:43, Jason Moore wrote: > > HI, > > I really like the bot and it forces you to at least think about the release > notes (even if all you do is write NO ENTRY). Yes, our review culture should > be that we don't let NO ENTRY through as much, but that is a culture change.

Re: [sympy] SymPy 1.10rc2 released

2022-02-23 Thread Oscar Benjamin
On Mon, 21 Feb 2022 at 16:09, Jeremy Monat wrote: > > I tested the release candidate with a simple use case I have (solving sets of > inequalities), and it worked fine. Thanks Jeremy. There have been some reports of bugs related to the downstream unyt and SAGE projects. As a result there will

Re: [sympy] more unified (and usable) solve output

2022-03-03 Thread Oscar Benjamin
On Thu, 3 Mar 2022 at 20:28, Aaron Meurer wrote: > On Thu, Mar 3, 2022 at 8:28 AM Chris Smith wrote: > > > > Although the dict=True or set=True will give a standard output, can we at > > least unify the case for when variables are given so we always get a list > > of one or more dictionaries?

[sympy] SymPy 1.10rc3 release candidate released

2022-02-26 Thread Oscar Benjamin
Hi all, I've just released SymPy 1.10rc3 release candidate. Following the previous release 1.10rc2 release candidate a couple of regressions were reported: https://github.com/sympy/sympy/issues/23144 https://github.com/sympy/sympy/issues/23148 Thanks to Matthias Koeppe and Clément Robert for

Re: [sympy] SymPy 1.10rc3 release candidate released

2022-02-26 Thread Oscar Benjamin
,s,t): >>> from sympy import Equality, Eq, laplace_transform >>> if isinstance(eqn,Equality): >>> return >>> Eq(laplace_transform(eqn.lhs,t,s),laplace_transform(eqn.rhs,t,s)) >>> else: >>> return laplace_transform(e

Re: [sympy] Issue in the ODE dsolve module (GSOC)

2022-04-05 Thread Oscar Benjamin
On Sun, 3 Apr 2022 at 23:39, kang li wrote: > There is an issue in the sympy.dsolve module. When I was trying to solve > the ode: -B(t)^2 - B'(t) +1 =0. The proper result should be tanh(C_1 - t), > while the given result is the 1/tanh(C_1 - t). > > On Tue, 5 Apr 2022 at 03:31, kang li wrote: >

[sympy] SymPy 1.10.1 released

2022-03-20 Thread Oscar Benjamin
to this release. People with a * by their names contributed a patch for the first time for this release; 0 people contributed for the first time for this release. Thanks to everyone who contributed to this release! Oscar Benjamin Paul Spiering SHA256 hashes for the release files

Re: [sympy] Contributing to the continuum mechanics module

2022-03-28 Thread Oscar Benjamin
I haven't personally used or contributed to the beam module so I can't really advise. I expect Aaron would say the same. Personally I'm only really interested in projects that improve the core parts of sympy. -- Oscar On Mon, 28 Mar 2022 at 16:38, Yashvardhan Prasad wrote: > > The beam

Re: [sympy] more unified (and usable) solve output

2022-03-23 Thread Oscar Benjamin
On Wed, 23 Mar 2022 at 19:42, Aaron Meurer wrote: > > So I'm starting to wonder if the real fix here isn't so much to "fix > solve" (although solve() should definitely be improved and cleaned > up), but rather to treat solve() as the "interactive only" function > for equation solving, just as

Re: [sympy] Re: AUTHORS file and .mailmap

2022-01-30 Thread Oscar Benjamin
On Sun, 30 Jan 2022 at 15:26, 36 AI Kuldeep Borkar wrote: > > Thank you for your mail Sir Oscar Benjamin, > As a new contributor I was having difficulty after making a pull request > authors check failed but then after observing the details I have done these > things > &g

Re: [sympy] Dependencies (mpmath and rubi/MatchPy)

2022-01-31 Thread Oscar Benjamin
On Mon, 31 Jan 2022 at 20:53, Aaron Meurer wrote: > > On Mon, Jan 31, 2022 at 2:16 AM Oscar Gustafsson > wrote: > > > > Dear all, > > > > two issues that I've been thinking about that are maybe related. > > > > 1. It seems like the maintenance of mpmath is a bit on hold. I seem to > > recall

Re: [sympy] Re: AUTHORS file and .mailmap

2022-02-01 Thread Oscar Benjamin
On Tue, 1 Feb 2022 at 04:51, 36 AI Kuldeep Borkar wrote: > > Thank you for the response and help Sir Oscar Benjamin and Sir Aaron Meurer > I used the command mailmap_check.py and my name was there in the .mailmap but > my github user name and email was recorded in the format &g

Re: [sympy] Re: AUTHORS file and .mailmap

2022-01-30 Thread Oscar Benjamin
On Mon, 31 Jan 2022 at 01:13, Aaron Meurer wrote: > > > > On Sun, Jan 30, 2022 at 11:48 AM Oscar Benjamin > wrote: >> >> On Sun, 30 Jan 2022 at 15:26, 36 AI Kuldeep Borkar >> wrote: >> > >> > Thank you for your mail Sir Oscar Benjamin, >

Re: [sympy] What is Sympy's interface promise for evalf?

2022-02-08 Thread Oscar Benjamin
On Tue, 8 Feb 2022 at 20:07, Luke Hartman wrote: Hi Luke, > When you use evalf, you can provide an argument n, which is "the number of > digits of precision" that you want > > One straightforward interpretation of this is that Sympy's evalf interface > always returns a number whose nth

Re: [sympy] Conditional substitution

2022-01-06 Thread Oscar Benjamin
On Thu, 6 Jan 2022 at 14:41, David Bailey wrote: > > Dear group, > > A substitution like this is easy to make with SymPy: > > (a*x**2+b*x+c).subs(x,y) > > However, how can I make a conditional substitution, such as: > > a) One that would replace even powers of x only. > > b) One which would

Re: [sympy] Conditional substitution

2022-01-06 Thread Oscar Benjamin
On Thu, 6 Jan 2022 at 21:23, David Bailey wrote: > > On 06/01/2022 16:41, Oscar Benjamin wrote: > > You can use replace to make arbitrary conditions on substitution. > > There are different syntaxes so here's how you do it using wild > > pattern-matching: > > >

[sympy] AUTHORS file and .mailmap

2022-01-24 Thread Oscar Benjamin
Hi all, I've just merged https://github.com/sympy/sympy/pull/22754 This means that new contributors are required to add themselves to the .mailmap file before their PR can be merged. It also means that if someone adds multiple commits with different git date for author and email then they need

Re: [sympy] Re: AUTHORS file and .mailmap

2022-01-25 Thread Oscar Benjamin
On Tue, 25 Jan 2022 at 22:20, Jeremy Monat wrote: > > Thanks, Oscar. What do existing contributors need to do? Nothing if the name is already recorded in .mailmap: https://github.com/sympy/sympy/blob/b9b33b424f63727f57e5277bfc6fc8a6619d0cdf/.mailmap#L546

Re: [sympy] GSoC 2022: Cylindrical Algebraic Decomposition

2022-04-11 Thread Oscar Benjamin
‪On Sun, 10 Apr 2022 at 16:40, 'كاي' via sympy wrote:‬ > > Hi Oscar, > > Thanks for the advice, I am looking to prompty begin condensing my proposal > and making contributions to the SymPy codebase. > > To eliminate some confusion, would you be able to explain how a solver for a > linear system

Re: [sympy] GSoC : Improving Polynomial GCD and Univariate Polynomials over Algebraic Structures

2022-04-06 Thread Oscar Benjamin
On Mon, 4 Apr 2022 at 20:38, kevin andre wrote: > > email : ndjeme...@gmail.com > > Greeting to the SymPy Community, > > My name is NYEMB NDJEM EONE ANDRE KEVIN, I desire to contribute in Improving > the high priority Polynomial GCD and the mathematics Univariate Polynomials > Over Algebraic

Re: [sympy] Polynomial GCD - GSoC

2022-04-08 Thread Oscar Benjamin
On Thu, 7 Apr 2022 at 05:55, obayda haj yahya wrote: > > Hi , > I'm obaida , a student of Computer Science at Tel-Aviv University. > > I'm looking for participating in GSoC and contributing to SymPy. > I'm interested in improving the high priority Polynomial GCD because I have > the knowledge

Re: [sympy] Re: Wrong Answer in the sympy.dsolve for ode

2022-04-08 Thread Oscar Benjamin
It is wrong or at least useless since B(t) appears in the integral. A correct and simple result is given by the 1st_linear hint: In [111]: dsolve(expr, hint='1st_linear') Out[111]: ⎛ ⌠ ⎞ ⎜ ⎮ ⌠ ⎟ ⌠ ⎜ ⎮ -⎮ a(t) dt ⎟ ⎮ a(t) dt ⎜

Re: [sympy] GSoC 2022: Cylindrical Algebraic Decomposition

2022-04-10 Thread Oscar Benjamin
‪On Sun, 10 Apr 2022 at 01:46, 'كاي' via sympy wrote:‬ > > I would be interested in implementing the cylindrical algebraic decomposition > algorithm in SymPy over the course of this program, and I am currently > writing my proposal for doing so. I think implementing CAD itself is way too much

Re: [sympy] Re: GSoC 2022:Simplex method for linear programming.

2022-04-15 Thread Oscar Benjamin
On Thu, 14 Apr 2022 at 18:54, Qijia Liu wrote: > > SciPy has simplex method implemented. Do we need to re-implement it in SymPy? The SciPy implementation only works for floats. It should be possible to solve linear programming problems at least using exact rational numbers. Something like this

Re: [sympy] Discussion regarding the GSOC project - Benchmarks and performance

2022-04-15 Thread Oscar Benjamin
On Fri, 11 Mar 2022 at 14:53, praneeth ratna wrote: > > Hi all, > > As mentioned in the project description here , > https://github.com/sympy/sympy/wiki/GSoC-Ideas#benchmarks-and-performance , > the sympy_benchmarks misses some benchmarks which are needed to be shifted > fro the sympy main

Re: [sympy] GSoC 2022: Linear Algebra

2022-04-14 Thread Oscar Benjamin
On Thu, 14 Apr 2022 at 03:13, Oscar René Garzón Castro wrote: > > I mean the points in the Linear algebra subsection of Idea Prompts > (https://github.com/sympy/sympy/wiki/GSoC-Ideas#idea-prompts). I am > interested in some of this points but I'm not sure how many of them are > expected for a

Re: [sympy] Re: GSoC 2022:Simplex method for linear programming.

2022-04-15 Thread Oscar Benjamin
> Den tors 14 apr. 2022 19:54Qijia Liu skrev: >> >> SciPy has simplex method implemented. Do we need to re-implement it in SymPy? >> On Fri, 15 Apr 2022 at 07:37, Oscar Gustafsson wrote: > > There are two (I think, at least one) PRs that are not merged that does this. > So it would be better to

Re: [sympy] SymPy presentations at SageDays (online, June 1-3)

2022-04-14 Thread Oscar Benjamin
On Tue, 12 Apr 2022 at 19:26, Matthias Köppe wrote: > > Hi Aaron, > > On Tuesday, April 12, 2022 at 5:17:22 AM UTC-7 asme...@gmail.com wrote: >> >> On Sun, Apr 10, 2022 at 7:44 PM Matthias Köppe wrote: >> > We are in the early stages of planning an online SageDays event >> >

[sympy] Faster symbolics

2022-04-14 Thread Oscar Benjamin
On Thu, 14 Apr 2022 at 18:16, Tirthankar Mazumder wrote: > > On Thursday, April 14, 2022 at 10:04:28 PM UTC+5:30 Oscar wrote: >> >> On Tue, 12 Apr 2022 at 19:26, Matthias Köppe wrote: >> >> > - status and plans regarding SymEngine >> >> I don't know about the status of SymEngine. I can't say

Re: [sympy] Faster symbolics

2022-04-14 Thread Oscar Benjamin
On Thu, 14 Apr 2022 at 23:22, Aaron Meurer wrote: > > On Thu, Apr 14, 2022 at 3:12 PM Oscar Benjamin > wrote: > > > > On Thu, 14 Apr 2022 at 20:30, Aaron Meurer wrote: > > > > > > On Thu, Apr 14, 2022 at 12:26 PM Oscar Benjamin > > > wrote: &

Re: [sympy] Faster symbolics

2022-04-14 Thread Oscar Benjamin
On Thu, 14 Apr 2022 at 20:30, Aaron Meurer wrote: > > On Thu, Apr 14, 2022 at 12:26 PM Oscar Benjamin > wrote: > > > > As an example it would be trivial in SymPy to make substitutions > > involving large expressions and many replacements much faster with a > > s

Re: [sympy] Discussion regarding the GSOC project - Benchmarks and performance

2022-04-15 Thread Oscar Benjamin
On Fri, 15 Apr 2022 at 21:46, Aaron Meurer wrote: > > On Fri, Apr 15, 2022 at 6:54 AM Oscar Benjamin > wrote: > > > > 1. The benchmarks are based on ASV which is awkward to use. It's > > unnecessarily difficult even just to run a single benchmark. A better > > fr

[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] 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

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] 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] 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] 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] 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

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

[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 ∊ ℤ⎬

[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

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] 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] 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] Respecting Tradition

2022-04-21 Thread Oscar Benjamin
On Thu, 21 Apr 2022 at 18:53, Aaron Meurer wrote: > > If you want the expression to print in the same way that it was > originally entered, then it needs to keep track of that information > when it is created. That's not something that currently happens. > > If you just want the printers to have

Re: [sympy] Re: SymPy documentation website down

2022-04-20 Thread Oscar Benjamin
On Wed, 20 Apr 2022 at 10:50, David Bailey wrote: > > On 20/04/2022 08:10, Aaron Meurer wrote: > > The documentation is back online now. > > > Great news! Is it possible to say anything about the problem? I mean had > some proprietary information made its way onto the SymPy website, or was > it

Re: [sympy] Re: SymPy documentation website down

2022-04-20 Thread Oscar Benjamin
On Wed, 20 Apr 2022 at 18:03, David Bailey wrote: > > I am sure I speak for everyone when I say thanks that you solved this so > quickly. I don't want to give the impression that I solved this much less that I did so on my own. The DMCA emails were sent to Ondrej, Aaron and Me and we discussed

Re: [sympy] Faster symbolics

2022-04-16 Thread Oscar Benjamin
On Sat, 16 Apr 2022 at 02:53, Isuru Fernando wrote: > > Hi Oscar, > > Here's a few things that are different in SymEngine than SymPy. > > > As an example it would be trivial in SymPy to make substitutions > involving large expressions and many replacements much faster with a > small redesign. The

Re: [sympy] SymPy presentations at SageDays (online, June 1-3)

2022-05-28 Thread Oscar Benjamin
I can't remember if I filled this out. Is the schedule already fixed yet? Oscar On Thu, 19 May 2022 at 19:40, Matthias Köppe wrote: > > Hi Aaron, Oscar, > Following up regarding the SageDays event. > https://wiki.sagemath.org/days112.358 > We are now in the phase of collecting abstracts for

Re: [sympy] SymPy presentations at SageDays (online, June 1-3)

2022-05-29 Thread Oscar Benjamin
ll speak at 20:00 UTC). > I'll be happy to schedule a presentation at 22:00 UTC if that works > for you -- or let me know about your availability and I can find > another slot. > > Matthias > > On Sat, May 28, 2022 at 11:00 AM Oscar Benjamin > wrote: > > > > I can

Re: [sympy] Release SymPy 1.11 soon

2022-07-08 Thread Oscar Benjamin
On Sat, 18 Jun 2022 at 13:25, Oscar Gustafsson wrote: > > I've marked a few PRs as candidates to be merged, one requires resolving > merge conflicts, but as far as I can tell there are no major arguments > against merging them. Feel free to remove the milestone and point out what > still may

Re: [sympy] RFC on solve being used to solve for undetermined coefficients

2022-07-01 Thread Oscar Benjamin
On Thu, 30 Jun 2022 at 23:27, Chris Smith wrote: > > Nearly from the beginning, `solve` has recognized the `undetermined > coefficients` case wherein a single equation is solved for a set of symbols > which will simultaneously set it equal to zero. This is different than the > normal use of

Re: [sympy] RFC on solve being used to solve for undetermined coefficients

2022-07-01 Thread Oscar Benjamin
On Fri, 1 Jul 2022 at 13:01, gu...@uwosh.edu wrote: > > +1 for separating out undetermined coefficients. > I am sure this will break somebody's code. However, I agree that the behavior > of solve is so inconsistent that I do not think there is a reasonable way of > deprecating this. I generally

Re: [sympy] CZI Grant Developer Hired: Dr. Sam Brockie

2022-07-06 Thread Oscar Benjamin
Welcome Sam. Looking forward to working with you! Oscar On Thu, 16 Jun 2022 at 06:05, Jason Moore wrote: > > SymPy community, > > As many of you know, Oscar, Aaron, and I were awarded a 2 year CZI grant that > will fund Oscar, Aaron, and a postdoctoral researcher to complete the > objectives

[sympy] Organisation of the API reference docs

2022-06-08 Thread Oscar Benjamin
Hi all, I was looking at the SymPy docs earlier today and I found that it was quite difficult to find the docs for the polys module. I'm interested to know what people think about how the API docs are organised because I see at least some problems but I'd like to know more from a user perspective

Re: [sympy] Organisation of the API reference docs

2022-06-08 Thread Oscar Benjamin
On Wed, 8 Jun 2022 at 23:55, Jeremy Monat wrote: > > Google searches seem like a "a reasonable metric for what's relevant to > users." I posted the top 1000 Google search terms for a year's worth of > searches. I agree to some extent but here we are talking about the reference API rather than

[sympy] Release SymPy 1.11 soon

2022-06-18 Thread Oscar Benjamin
Hi all, I'm thinking about making a release of SymPy 1.11. Until now I've been too busy at work to make a release but things are beginning to ease up at the end of the academic year. We're already at the point where we're getting new reports for bugs that were fixed months ago so a new release

Re: [sympy] Release SymPy 1.11 soon

2022-06-19 Thread Oscar Benjamin
On Sun, 19 Jun 2022 at 09:01, Aaron Meurer wrote: > > On Sat, Jun 18, 2022 at 3:49 PM Oscar Benjamin > wrote: >> >> On Sat, 18 Jun 2022 at 13:45, Jeremy Monat wrote: >> > >> > Aaron Meurer pointed out that we should move the solving main page bef

[sympy] Making SymPy more mypy friendly

2022-06-18 Thread Oscar Benjamin
On Sat, 18 Jun 2022 at 13:42, Arthur Ryman wrote: > > Oscar B, > > As a theme, how about making SymPy more mypy-friendly? I ran into one > problem, caused by the mypy folks not accepting certain syntax. You diagnosed > it: > > class A: > pass > > # B = A# <--- this is fine > B = C = A

Re: [sympy] Release SymPy 1.11 soon

2022-06-18 Thread Oscar Benjamin
On Sat, 18 Jun 2022 at 13:45, Jeremy Monat wrote: > > Aaron Meurer pointed out that we should move the solving main page before the > next release, so the page is in its final location when it gets published to > the "latest" (not dev) version of the documentation web site. Given that, > I'll

Re: [sympy] Matrix.rank time

2022-06-12 Thread Oscar Benjamin
On Mon, 13 Jun 2022 at 00:51, Pure Virtual <1min...@gmail.com> wrote: > Hi there! Hi! > I've got a really simple task of finding the rank of a matrix of > *integers*. NumPy's matrix_rank() appeared to use floats internally (and > gave a clearly wrong answers when the matrix contained both

Re: [sympy] Determine Redundant Equations

2022-07-15 Thread Oscar Benjamin
On Fri, 15 Jul 2022 at 22:25, 'Ephraim Bryski' via sympy wrote: > > Hi, > > I'm using nsolve to solve systems of equations. There are cases where the > number of equations is greater than the number of variables, but it can still > be solved because some equations are redundant. I would like to

Re: [sympy] Faster symbolics

2022-04-17 Thread Oscar Benjamin
On Sun, 17 Apr 2022 at 11:47, David Bailey wrote: > > On 16/04/2022 12:18, Oscar Benjamin wrote: > > Yes, this does work differently in SymEngine compared to SymPy. If > > SymPy could be changed to work the same way then it could also be a > > lot faster (without need

Re: [sympy] Need help to start in SymPy

2022-04-17 Thread Oscar Benjamin
On Sun, 17 Apr 2022 at 10:33, Azhaan Md wrote: > > Hi, I am Azhaan and this is my first time at GSOC and I am not effecient with > Python Coding. But I have a good understanding of Mathematics which includes > topics like Calculus, Co-ordinate geometry, Polynomials. Can anyone suggest > where

Re: [sympy] Faster symbolics

2022-04-17 Thread Oscar Benjamin
On Sun, 17 Apr 2022 at 15:02, David Bailey wrote: > > On 17/04/2022 13:00, Oscar Benjamin wrote: > > On Sun, 17 Apr 2022 at 11:47, David Bailey wrote: > >> > >> I am curious as to how much of the difference in speed between SymPy and > >> SymEngin

Re: [sympy] Re: GSOC Proposal

2022-04-17 Thread Oscar Benjamin
Hi Kuldeep, I see that there is a proposal for working on probability in the ideas page: https://github.com/sympy/sympy/wiki/GSoC-Ideas#probability It is suggested there that Gagandeep Singh or Smit Lunagariya are potential mentors. I have not seen much involvement from either of these

Re: [sympy] GSoC Project: Rebuilding SymPy Gamma using Pyodide

2022-04-18 Thread Oscar Benjamin
On Mon, 18 Apr 2022 at 18:43, Aman Sharma wrote: > > Hello SymPy community, > I am Aman Sharma (mostlyaman on github). I plan to apply for GSoC 2022 for > porting SymPy Gamma to Pyodide. I have used SymPy Gamma countless times > during my first year calculus and electrical course. In my

Re: [sympy] GSoC Project: Rebuilding SymPy Gamma using Pyodide

2022-04-18 Thread Oscar Benjamin
On Mon, 18 Apr 2022 at 20:37, Aaron Meurer wrote: > > On Mon, Apr 18, 2022 at 1:16 PM Oscar Benjamin > wrote: > > > > On Mon, 18 Apr 2022 at 18:43, Aman Sharma > > wrote: > > > > > > Hello SymPy community, > > > I am Aman Sharma

Re: [sympy] GSoC Project: Rebuilding SymPy Gamma using Pyodide

2022-04-18 Thread Oscar Benjamin
On Mon, 18 Apr 2022 at 20:48, Aaron Meurer wrote: > > On Mon, Apr 18, 2022 at 1:44 PM Oscar Benjamin > wrote: > > > > On Mon, 18 Apr 2022 at 20:37, Aaron Meurer wrote: > > > > > > On Mon, Apr 18, 2022 at 1:16 PM Oscar Benjamin > > > wrote: &g

<    1   2   3   4   5   6   7   8   >