Re: [sympy] SymPy 1.11 released

2022-08-24 Thread Oscar Benjamin
he output of lambdify is a numpy.ndarray of the same shape >>> as the sm.Matrix. >>> With cse=True, the output is is list. >>> (I guess, this is what you said, would happen.) >>> >>> Does this mean, if I somehow manage to convert the lists into ndarrays of

Re: [sympy] Re: bug in sympy solve method for multi dimentional problems

2022-08-24 Thread Oscar Benjamin
Thanks for the bug report Souvik. Can you please open an issue on GitHub rather than post here? Also can you extract the code from the notebook and just post a minimal block of code that reproduces the problem? -- Oscar On Wed, 24 Aug 2022 at 21:50, SOUVIK CHAKRABORTY wrote: > > Kindly look

[sympy] SymPy 1.11 released

2022-08-23 Thread Oscar Benjamin
time for this release. Thanks to everyone who contributed to this release! - Saksham Alok* - anutosh491 - Alexander Behrens* - Oscar Benjamin - Varenyam Bhardwaj* - Anurag Bhat - Akshansh Bhatt - Francesco Bonazzi - Islem BOUZENIA* - Arie Bovenberg* - Riley Britten* - Zaz Brown* - cocolato* - Björn

Re: [sympy] get sqrt to work

2022-08-22 Thread Oscar Benjamin
On Mon, 22 Aug 2022 at 15:36, Peter Stahlecker wrote: > > Dear Oscar, > > Thanks for your hint about these parameters!. > Probably dumb question of mine: > Could one not define f_Vi_est directly as > > def_Vi_est(gamma, alfa, beta, eta, L, K, VA): >Vi_est = gamma - (1 / eta)….. >

[sympy] SymPy 1.11.1 released

2022-08-30 Thread Oscar Benjamin
Hi all, I've just put out a bugfix release SymPy 1.11.1. There is only one change since 1.11 was released a week ago which is to fix a bug with using lambdify with the cse=True flag (as discussed here on the mailing list). Thanks to Jason Moore and Chris Smith for getting a quick fix together.

Re: [sympy] SymPy 1.11 released

2022-08-24 Thread Oscar Benjamin
On Wed, 24 Aug 2022 at 08:55, Peter Stahlecker wrote: > > I have upgraded to sympy 1.11 > I wanted to try the cse keyword. > > If I set cse = False, all seems to work fine. > If I set cse = True, lambdify(..) seems to work fine, but solve_ivp(..) gives > and error. It looks like cse=True

Re: [sympy] Is this correct?

2022-10-26 Thread Oscar Benjamin
On Wed, 26 Oct 2022 at 12:09, Juan Francisco Puentes Calvo wrote: > > Something as simple as below: > > import sympy as sp; > U1, red, green = sp.symbols("U1, red, green"); > sp.ask(sp.Ne(U1,red), assumptions=sp.Eq(U1,green)); > > Returns None, but. > > sp.ask(sp.Eq(U1,green),

Re: [sympy] Cannot solve simultaneous trig equation

2022-09-24 Thread Oscar Benjamin
On Sat, 24 Sept 2022 at 09:24, Peter Stahlecker wrote: > > Thanks! I did not know about nsolve. > Would nsolve be ‚better‘ than converting the equations to numpy, using > lambdify, and the use scipy.optimize.fsolve ? When you use nsolve more or less the same thing happens: the equations are

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-05 Thread Oscar Benjamin
You should be able to obtain a parametric Groebner basis to represent the solutions of this system. Whether that leads to an explicit solution in radicals is hard to say without trying. I would demonstrate how to do this but the code for putting together the equations is incomplete. On Fri, 5

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-05 Thread Oscar Benjamin
That code still doesn't work: it gives SyntaxError. Please test the code yourself in a fresh Python process before sending it. On Fri, 5 Aug 2022 at 15:51, Kevin Pauba wrote: > > As you suspected, Jeremy, the simplify=False didn't have any visible affect. > > BTW, earlier, I should have posted

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-05 Thread Oscar Benjamin
I just had a quick look and I think that maybe this has a positive dimensional solution set. On Fri, 5 Aug 2022 at 16:08, Kevin Pauba wrote: > > Here's the minimal working example (except for it hanging on solve()): > > import sympy as sym > from sympy import sqrt > > q1, q2, s, s1, s2, q_dp1,

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-06 Thread Oscar Benjamin
The equations you are attempting to solve lead to a very complicated Groebner basis that is slow to compute (I'm not sure how long it takes) and probably gives quite a complicated expression for the solution. It might be better if you can derive the equations without introducing radicals i.e. to

Re: [sympy] Re: solve doesn't return when solving a simultaneous equation

2022-08-07 Thread Oscar Benjamin
The question is just if you can derive equations without radicals that are simpler than those generated by unrad. The ones generated by unrad are already too complicated because you have a pair of multivariate quartics. Only if you are lucky could that lead to any explicit analytic solution in

Re: [sympy] storing big integers as prime factors

2022-08-07 Thread Oscar Benjamin
On Sun, 7 Aug 2022 at 08:37, wrote: > > If the numbers are represented as prime factors to begin with, finding the > gcd is easier. Then, calculating the sum requires multiplying out the > numerators, which should be easier than factoring the decimal representation. > But that's just my

Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-12 Thread Oscar Benjamin
On Fri, 12 Aug 2022 at 11:15, David Bailey wrote: > > On 09/08/2022 23:56, Oscar Benjamin wrote: > > I forgot to mention that to install this release you can use: > > > > pip install --pre sympy > > > > -- > > Oscar > > > Oscar, > > Whe

Re: [sympy] storing big integers as prime factors

2022-08-08 Thread Oscar Benjamin
On Mon, 8 Aug 2022 at 08:26, wrote: > > In order to install gmpy2 I ran pip install and added an import statement. Do > I need anything else? If gmpy2 is installed then it will be used automatically by the polys module for internal calculations. It is not used by Rational so whether it gets

[sympy] SymPy 1.11rc1 released

2022-08-09 Thread Oscar Benjamin
to everyone who contributed to this release! - Saksham Alok* - anutosh491 - Alexander Behrens* - Oscar Benjamin - Varenyam Bhardwaj* - Anurag Bhat - Akshansh Bhatt - Francesco Bonazzi - Islem BOUZENIA* - Arie Bovenberg* - Riley Britten* - Zaz Brown* - cocolato* - Björn Dahlgren - Nikhil Date

[sympy] Re: SymPy 1.11rc1 released

2022-08-09 Thread Oscar Benjamin
I forgot to mention that to install this release you can use: pip install --pre sympy -- Oscar -- 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

Re: [sympy] get sqrt to work

2022-08-17 Thread Oscar Benjamin
On Wed, 17 Aug 2022 at 14:38, Zohreh Karimzadeh wrote: > > Dear sympy group > Thanks for your sympy. > > I am working on a code, after creating my big expression using sympy it > includes sqrt. > > I need to lambdify my expression to make it consistent with numpy and other > suffs. > > expr =10

Re: [sympy] Re: SymPy 1.11rc1 released

2022-08-17 Thread Oscar Benjamin
serious, just what semi retired engineers do. :-)) > > Thanks, Peter > > On Sat 13. Aug 2022 at 02:09, David Bailey wrote: >> >> On 12/08/2022 11:37, Oscar Benjamin wrote: >> > On Fri, 12 Aug 2022 at 11:15, David Bailey wrote: >> >> On 09/08/2022 23:56,

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] 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] 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] 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] 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] Sympy plotting module save figure as svg string

2022-11-21 Thread Oscar Benjamin
SymPy's save function is just using matplotlib so the question is not really about SymPy but about matplotlib: https://stackoverflow.com/questions/5453375/matplotlib-svg-as-string-and-not-a-file Oscar On Mon, 21 Nov 2022 at 10:57, Anton Makarov wrote: > > Hi, i need to save figure from svg

Re: [sympy] Dimensional Analysis

2022-11-17 Thread Oscar Benjamin
The ordinary Python round function can do this: https://docs.python.org/3/library/functions.html#round On Thu, 17 Nov 2022 at 09:46, Peter Stahlecker wrote: > you might want to check floating point numbers in the sympy documentation. > > Am Do., 17. Nov. 2022 um 10:18 Uhr schrieb 'XR-7 RKE'

Re: [sympy] Re: Convert sympy results to svg string

2022-11-17 Thread Oscar Benjamin
On Thu, 17 Nov 2022 at 14:01, Anton Makarov wrote: > > I need to convert sympy tree expression to svg, for instance: > a = sympify("1+2/3") > b = sympify("x+5/x+3*sin(x)") > c = a + b > and i need to convert c expression to svg string Your question is very ambiguous. Since SVG is an image format

Re: [sympy] Re: Convert sympy results to svg string

2022-11-17 Thread Oscar Benjamin
On Thu, 17 Nov 2022 at 14:17, Anton Makarov wrote: > > Yes i need typeset equation in a webpage. I know about mathjax, i understand > that there is a possibility to convert sympy tree expression to latex and > then handle it on client web page and convert to svg with mathjax. > But is there any

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] 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: Re[2]: [sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Oscar Benjamin
I don't know how you get the handle to the matplotlib figure but there should be some way to do it. On Mon, 21 Nov 2022 at 14:01, Антон Макаров wrote: > > Thank you for answer. As far as I can understand the p1 variable in my sample > code is the object of mathplotlib library, right? > > > >

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

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

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

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] 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] 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] 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] 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] Simple methods for row operations

2022-11-04 Thread Oscar Benjamin
On Fri, 4 Nov 2022 at 14:23, Phil Williams wrote: Hi Phil, > I use sympy for matrix calculations in my Finite Math class that I teach. I > have students working in a Jupyter Notebook. What I want is a > student-friendly interface for in-place row operations on matrices, so that > they can

Re: [sympy] refine with multiple variables

2022-11-01 Thread Oscar Benjamin
Ideally things like this would work but support for multivariate systems of inequalities is practically nonexistent in refine right now. Oscar On Mon, 31 Oct 2022 at 19:10, Joseph Nasser wrote: > > Hello, > > I would like to check whether an inequality with multiple variables is > satisfied

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

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

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

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

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

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

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

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

[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

[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

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

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

<    2   3   4   5   6   7   8   >