Re: [sympy] Faster symbolics

2022-04-15 Thread Isuru Fernando
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 problem though is backwards compatibility: each expression class

[sympy] Season of Docs

2022-04-15 Thread Aaron Meurer
SymPy has been accepted into Google's Season of Docs program again this year. This year, Jeremy Monat will be working with SymPy to improve the solvers documentation. You can find more information about the project at

Re: [sympy] Creating a built in function

2022-04-15 Thread Aaron Meurer
On Fri, Apr 15, 2022 at 5:01 PM David Bailey wrote: > > Thanks again for a near instantaneous reply! > > On 15/04/2022 23:39, Aaron Meurer wrote: > > > > You are calling arg[0], but arg is already the argument of the > > function. The [0] is typically only used when you have *args to accept > >

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 > > framework should be found. > > Just

Re: [sympy] Creating a built in function

2022-04-15 Thread David Bailey
Thanks again for a near instantaneous reply! On 15/04/2022 23:39, Aaron Meurer wrote: You are calling arg[0], but arg is already the argument of the function. The [0] is typically only used when you have *args to accept an arbitrary number of arguments and you want to get the first one. OK -

Re: [sympy] Creating a built in function

2022-04-15 Thread Aaron Meurer
On Fri, Apr 15, 2022 at 3:40 PM David Bailey wrote: > > Thanks for such an amazingly fast and detailed reply! > > On 15/04/2022 21:32, Aaron Meurer wrote: > > > > Yes, you can have it separate. The location of a function in the code > > has no bearing on its behavior. > That is good! > > When you

Re: [sympy] Creating a built in function

2022-04-15 Thread David Bailey
Thanks for such an amazingly fast and detailed reply! On 15/04/2022 21:32, Aaron Meurer wrote: Yes, you can have it separate. The location of a function in the code has no bearing on its behavior. That is good! When you run 'import bailey' then 'bailey' will be the module (because you called

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

2022-04-15 Thread Aaron Meurer
On Fri, Apr 15, 2022 at 6:54 AM Oscar Benjamin wrote: > > 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

Re: [sympy] Creating a built in function

2022-04-15 Thread Aaron Meurer
On Fri, Apr 15, 2022 at 2:23 PM David Bailey wrote: > > Dear Group, > > I would like to understand the workings of SymPy a little better, and to > that end, I thought it would be instructive to create a trivial 'special > function' that had some or all of the properties of the SymPy in-built >

[sympy] Creating a built in function

2022-04-15 Thread David Bailey
Dear Group, I would like to understand the workings of SymPy a little better, and to that end, I thought it would be instructive to create a trivial 'special function' that had some or all of the properties of the SymPy in-built functions. The following link was helpful:

[sympy] GSOC'22 Project Discussion: Bond Graph tools

2022-04-15 Thread Varenyam Bhardwaj
Hello all, I am Varenyam Bhardwaj, Currently pursing for Btech in Electronics and Computer Engineering at Thapar Institute of Engineering and Technology. I have formulated a proposal for the implementation of Bond Graph tools in sympy. Due to running low on time, I prioritized formulating the

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] Re: Classical Mechanics : Forces and Torques

2022-04-15 Thread praneeth ratna
Hi Jason, I have made a draft of my proposal https://docs.google.com/document/d/13hmPNM2JdEhnMhctH5hsbuTOnA0916WUvrFOzvb98ig/edit?pli=1, Most of examples were added from here: https://github.com/moorepants/learn-multibody-dynamics/pull/57, could you please provide your feedback on my

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

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

2022-04-15 Thread praneeth ratna
Hi all, I have already mailed regarding my interest in the project - Benchmarks and performance but have not recieved a reply , could the potential mentor please guide me on this project? Thanks, Praneeth On Friday, March 11, 2022 at 8:23:10 PM UTC+5:30 praneeth ratna wrote: > Hi all, > >

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] Re: GSoC 2022:Simplex method for linear programming.

2022-04-15 Thread Oscar Gustafsson
There are two (I think, at least one) PRs that are not merged that does this. So it would be better to sort one of those out. Iirc there is limiterd work left, like documentation and testing. BR Oscar Den tors 14 apr. 2022 19:54Qijia Liu skrev: > SciPy has simplex method implemented. Do we