Re: [sympy] New feature possibility

2024-04-25 Thread Aaron Meurer
at's often called that contains many units that measure the same quantities. But the SymPy unit systems define a single unit for each quantity. So we may need to add multiple "systems" to represent the imperial units. Aaron Meurer On Thu, Apr 25, 2024 at 1:56 PM Aaron Meurer wrote: > &

Re: [sympy] New feature possibility

2024-04-25 Thread Aaron Meurer
I believe the imperial system should already be there, but if there's anything missing, we should fix that. Aaron Meurer On Thu, Apr 25, 2024 at 10:06 AM 'Henrique Miguel Cortes Soares' via sympy wrote: > > So, should the imperial system be added? If not, what system could

Re: [sympy] New feature possibility

2024-04-23 Thread Aaron Meurer
I would say that new unit systems should be added only if they are generally used and useful. General improvements to the units module are always welcome. Francesco is the main maintainer of the units module, so he would know more details on what needs to be done there. Aaron Meurer On Tue, Apr

Re: [sympy] Seeking Assistance with SymPy Simplification for Statistical Equations

2024-04-23 Thread Aaron Meurer
. For example, there is support for asymptotic expansions (aseries()), although I don't know if Sterling's approximation is implemented. Aaron Meurer On Tue, Apr 23, 2024 at 1:25 PM Matthew Robinson wrote: > > Dear SymPy Developers Group, > > I hope this email finds you well. I am current

Re: [sympy] Re: SymPy integration with LLM (generative AI)

2024-04-13 Thread Aaron Meurer
dumb questions, but I am not the greatest computer expert ☹ > > Peter > > -Original Message- > From: sympy@googlegroups.com On Behalf Of Aaron > Meurer > Sent: Sonntag, 14. April 2024 05:30 > To: sympy@googlegroups.com > Subject: Re: [sympy] Re: SymPy integration

Re: [sympy] Re: SymPy integration with LLM (generative AI)

2024-04-13 Thread Aaron Meurer
by a grammar-based parser in parse_latex()) at https://github.com/sympy/sympy/issues/26128. Aaron Meurer On Fri, Apr 12, 2024 at 12:17 AM Samith Kavishke wrote: > > Are there any plans from our side for the LLM that use Sympy? > > On Friday, April 12, 2024 at 2:11:13 AM UTC+5:30 Franc

Re: [sympy] live.sympy.org

2024-04-09 Thread Aaron Meurer
Actually it looks like other people are seeing this as well, and I just saw it myself https://github.com/sympy/live/issues/21. Aaron Meurer On Tue, Apr 9, 2024 at 1:13 PM Aaron Meurer wrote: > > It would mean there's some issue with jupyterlite or pyodide. I > checked and it loa

Re: [sympy] live.sympy.org

2024-04-09 Thread Aaron Meurer
seeing if turning it off fixes it. Aaron Meurer On Tue, Apr 9, 2024 at 9:29 AM Chris Smith wrote: > > Lately, the live.sympy.org page never finishes loading for me. Does anyone > know why this might be? > > /c > > -- > You received this message because you are subscri

Re: [sympy] Inquiry About GSoC Parsing Project

2024-04-08 Thread Aaron Meurer
Did you already submit your proposal? The deadline to submit was last week, and we are unable to extend it. Aaron Meurer On Mon, Apr 1, 2024 at 6:48 AM Aquazod wrote: > > Hello, > My name is Assem Ali and I'm currently working on my proposal for the Parsing > project. > > Fi

Re: [sympy] Diffgeom needs some major rethinking

2024-04-08 Thread Aaron Meurer
I would open an issue to discuss this, if you haven't already. These sorts of issues relating to what Add class is used to represent sums generally end up being pretty tricky and involve a lot of subtleties. Aaron Meurer On Mon, Apr 8, 2024 at 12:33 PM Davide Pittet wrote: > > I

Re: [sympy] Diffgeom needs some major rethinking

2024-04-08 Thread Aaron Meurer
of time coding them. If there's any changes you want to make that aren't potentially controversial, like bugfixes, you don't need to open issues for them first. Aaron Meurer On Sun, Apr 7, 2024 at 2:02 PM Davide Pittet wrote: > > Hello everyone, > > following up the discussion on Gi

Re: [sympy] Re: GSOC: Benchmark Project Questions

2024-04-01 Thread Aaron Meurer
I've updated the ideas page with a link to an issue that discusses some ways that benchmarks on GitHub Actions could be improved. Aaron Meurer On Mon, Apr 1, 2024 at 2:35 AM Sam Lubelsky wrote: > Yeah, I see no good reason for why the benchmark results show the Master > vs previous r

Re: [sympy] Re: GSOC: Benchmark Project Questions

2024-04-01 Thread Aaron Meurer
in PRs would be disallowed, the same as test failures in PRs are currently disallowed. Aaron Meurer On Mon, Apr 1, 2024 at 1:13 AM Jason Moore wrote: > > This is my opinion, not sure if it is shared, but I don't think anyone uses > the information that is displayed on the pull request. T

Re: [sympy] GSOC: Benchmark Project Questions

2024-04-01 Thread Aaron Meurer
roject description it says " the results are run and hosted Ad Hoc", > which I assumes means whatever computer is running all the other PR tests. > Just want to make sure this is correct. For the asv runs that run against every commit in history, those are indeed currently run

Re: [sympy] Re: Seeking Feedback on Floating Point Expression Optimization Project

2024-03-28 Thread Aaron Meurer
We would generally only accept one proposal for each project, unless the proposals are distinct enough that they can be done independently. Aaron Meurer On Thu, Mar 28, 2024 at 4:43 PM Tommaso Vaccari wrote: > > Thank you Aaron, I'll add it to the proposal, I have a question, more people

Re: [sympy] Re: allowing Eq as recognized subs argument?

2024-03-28 Thread Aaron Meurer
I think we should try to include something like this in SymPy. I'm a little confused by your screenshot. eq =@ c = d is not valid Python syntax. Are you extending the parser somehow to make it valid? Aaron Meurer On Thu, Mar 28, 2024 at 2:10 PM 'gu...@uwosh.edu' via sympy wrote: > > It

Re: [sympy] allowing Eq as recognized subs argument?

2024-03-28 Thread Aaron Meurer
correctly. Aaron Meurer On Wed, Mar 27, 2024 at 5:36 PM Chris Smith wrote: > > In https://github.com/sympy/sympy/pull/26399 there is proposal to allow > `subs` to recognize `Eq` so ` x.subs(x, 1) = x.subs( Eq(x, 1) ) = x.subs( [ > Eq(x, 1) ] ) = 1` but `x.subs(Eq(1, x)) = x`.

Re: [sympy] Re: Seeking Feedback on Floating Point Expression Optimization Project

2024-03-28 Thread Aaron Meurer
Remember that there is a requirement to make a pull request to SymPy. You should list any pull requests you have made to SymPy in your proposal. Aaron Meurer On Thu, Mar 28, 2024 at 1:43 AM Tommaso Vaccari wrote: > > Hello everyone, > Here's my proposal, I would like to seek some

Re: [sympy] Inquiry about the number of contributors SymPy can accept this year

2024-03-26 Thread Aaron Meurer
, we've accepted ~5 people each year and I would guess this year will likely be around the same number. You can look at the reports on the wiki to see the actual numbers for each year. Aaron Meurer On Tue, Mar 26, 2024 at 7:13 AM Xianrui “Oliver” Teng wrote: > > Dear mentors, > > I hop

Re: [sympy] Re: Seeking Feedback on Floating Point Expression Optimization Project

2024-03-18 Thread Aaron Meurer
You can put it on the wiki if you like to get public feedback. If there isn't a page for it, it just means no one has created it yet. Aaron Meurer On Mon, Mar 18, 2024 at 11:13 AM Tommaso Vaccari wrote: > > Ah ok thanks, I was asking because I have seen that in the previous

Re: [sympy] Re: Enhancing the flexibility of MatchPy

2024-03-13 Thread Aaron Meurer
think the core of it does need to remain independent of SymPy's types, especially if we want to try to write a Rust backend. Aaron Meurer On Tue, Mar 12, 2024 at 6:29 PM Samith Kavishke wrote: > > Hi, > If we are maintianing matchpy as our own repository, Is it okay for us to > make

Re: [sympy] In memory of Kalevi Suominen

2024-03-11 Thread Aaron Meurer
mportance to me that functions > would look familiar, sin(x), not Sin[x]. Instead of simply using > SymPy I finally found myself wanting to improve the library, > but that is another story. Aaron Meurer On Sun, Mar 10, 2024 at 10:31 AM Oscar Benjamin wrote: > > Hi all SymPy com

Re: [sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Aaron Meurer
e different packages support older versions. Aaron Meurer > > SymPy itself broadly tries to have wide version support for other > packages like numpy just because without listing them as hard > dependencies there is no way to indicate which versions sympy is > compatible with

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

2024-03-05 Thread Aaron Meurer
Mathics has a license that makes it incompatible with sympy. But regardless, I think we should find a way to make RUBI work without having to build a full Wolfram language interpreter. Aaron Meurer On Sat, Mar 2, 2024 at 10:10 AM Samith Kavishke wrote: > > Is that means this p

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

2024-03-04 Thread Aaron Meurer
Yes, that idea is new this year. Aaron Meurer On Sun, Mar 3, 2024 at 2:08 AM Samith Kavishke wrote: > > If that so, what are the ideas that we can really contribute? I hope > "Enhancing the flexibility of MatchPy" is still needed. > > On Sunday, March 3, 2024 at

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

2024-03-03 Thread Aaron Meurer
I've Cced Francesco Bonazzi about the Wolfram Interpreter idea. It relates to the RUBI project, but I don't know whether it is something that is still needed for it. Personally I would prefer to avoid creating a Wolfram Language interpreter if possible. Aaron Meurer On Sat, Mar 2, 2024 at 11:31

Re: [sympy] Re: How to avoid distributing a constant factor after differentiation?

2024-02-28 Thread Aaron Meurer
with distribute(False) and once with distribute(True) (because the current behavior also has to continue to work and be tested). This is how the _both_exp_pow decorator works https://github.com/sympy/sympy/blob/ab2fb691a90457b65bbf2a7c091c8265be9cee09/sympy/testing/pytest.py#L291. Aaron Meurer

Re: [sympy] Re: How to avoid distributing a constant factor after differentiation?

2024-02-26 Thread Aaron Meurer
d be more tricky > than one might expect. I might not be following exactly what you are saying here, but wouldn't something like assert f() == 2*(x + y) work regardless of whether distribution is enabled or not? It will either happen to both sides of the equation or to neither side. Aaron M

Re: [sympy] Re: How to avoid distributing a constant factor after differentiation?

2024-02-22 Thread Aaron Meurer
, as even currently automatic distribution is not guaranteed. For example, it doesn't happen with 2*x*(x + y). And it's not uncommon to have un-distributed expressions because functions like factor() create them. Aaron Meurer On Thu, Feb 22, 2024 at 2:15 PM Chris Smith wrote: > > In order to

Re: [sympy] Re: How to avoid distributing a constant factor after differentiation?

2024-02-21 Thread Aaron Meurer
fic test passes with automatic distribution turned off (similar to this one https://github.com/sympy/sympy/blob/ae13ee38f54aa9c8944ef7d103dda778d2a39dbd/sympy/testing/pytest.py#L291). That way we can start fixing the code incrementally, instead of taking an "all or nothing" approach, which has failed i

Re: [sympy] Re: How to avoid distributing a constant factor after differentiation?

2024-02-21 Thread Aaron Meurer
the fact as Chris suggests is probably the better solution. There's really no guarantees about what the form of an expression from diff() will look like. Aaron Meurer On Sun, Feb 18, 2024 at 12:10 PM Chris Smith wrote: > > Autodistribution of Number into an Add is how SymPy works

Re: [sympy] Use of flake8 seperately when we have ruff enabled

2024-02-15 Thread Aaron Meurer
I think maybe there were some checks that were done by flake8 that weren't yet implemented by ruff. I don't know if that's still the case. I agree we could probably just use ruff if it is doing everything flake8 does. Aaron Meurer On Thu, Feb 15, 2024 at 6:50 AM Shishir Kushwaha wrote: >

Re: [sympy] Reverse order of polynomial before printing

2024-02-13 Thread Aaron Meurer
The order argument to the printers is definitely under-documented. This has been an issue for some time. Aaron Meurer On Tue, Feb 13, 2024 at 10:41 AM Thomas Ligon wrote: > > Thanks! This does exaclty what I wanted. > Now, for the question, should I be embarassed for not finding

Re: [sympy] Reverse order of polynomial before printing

2024-02-12 Thread Aaron Meurer
break other things. Instead, you should use the existing flags in the printer in question, or customize the printer with a subclass if the built-in behavior doesn't meet your needs. Aaron Meurer On Sat, Feb 10, 2024 at 1:58 PM Thomas Ligon wrote: > > I am trying to reverse the

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

2024-02-12 Thread Aaron Meurer
t/configuration.html#configuration-file. This should be a straightforward thing to change if you want to make a PR. Aaron Meurer On Fri, Feb 9, 2024 at 3:51 PM Shishir Kushwaha wrote: > > I am getting the same errors on the master branch as well . Has it got > something to do with the de

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

2024-02-12 Thread Aaron Meurer
Another thing I forgot to mention: new this year is small projects, which are 90 hour projects, in addition to the 175 and 350 hour projects. Right now, none of the ideas specify 90 hours, but we should probably add some smaller projects to the list. Aaron Meurer On Wed, Jan 24, 2024 at 11:49 AM

Re: [sympy] What's the Meaning of S and X while running tests .

2024-02-09 Thread Aaron Meurer
of these dependencies, you can ignore those tests. xfail means that a test is expected to fail. These are tests that are added for behavior that doesn't work yet. You can ignore these. Aaron Meurer On Fri, Feb 9, 2024 at 10:28 AM Shishir Kushwaha wrote: > > S and X have been coming on a few test when I ran

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

2024-02-09 Thread Aaron Meurer
The slotscheck test is run on CI but isn't included in the normal local tests run. If you want to run it locally you will need to install slotscheck and run 'slotscheck sympy/' Aaron Meurer On Fri, Feb 9, 2024 at 2:02 PM Shishir Kushwaha wrote: > > I am getting an error in > Check for

Re: [sympy] Reviewing PRs and old SymPy issues

2024-02-05 Thread Aaron Meurer
I'll also add that if you want to, we'll give 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 wrote: > >

Re: [sympy] Releasing SymPy 1.13

2024-02-02 Thread Aaron Meurer
On Fri, Feb 2, 2024 at 3:28 PM Oscar Benjamin wrote: > > 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

Re: [sympy] Doubt Regarding .mailmap file

2024-02-02 Thread Aaron Meurer
email. Aaron Meurer On Fri, Feb 2, 2024 at 10:36 AM 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 comitt on another issue , the

Re: [sympy] Releasing SymPy 1.13

2024-02-02 Thread Aaron Meurer
opt-in is just an extra step for those people. The only way this wouldn't be the case is if we add flint as a dependency in the conda package like we do for gmpy, but it sounds like it's a bit early to do that. Although I'm wondering about Sage. Does Sage always install both SymPy and python-flint? A

Re: [sympy] Please help me setup documentation

2024-02-01 Thread Aaron Meurer
I'm not sure what's going on then. I just tested the docker container and it works for me. You may need to delete the container and rebuild it. Aaron Meurer On Thu, Feb 1, 2024 at 1:15 PM Shishir Kushwaha wrote: > > Yes that's what I did , I followed the steps mentioned in the documen

Re: [sympy] Please help me setup documentation

2024-01-31 Thread Aaron Meurer
to your local environment and build without using docker. Aaron Meurer On Wed, Jan 31, 2024 at 1:43 AM Shishir Kushwaha wrote: > > I was trying to build documentation using docker and on running the commands > mentioned in the documentation , I was getting this error . > >

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

2024-01-24 Thread Aaron Meurer
really like the low hanging fruit ideas because they generate a lot of low quality applications and noise, but at the same time, we have definitely had some good people in the past who have started with such projects. Aaron Meurer On Wed, Jan 24, 2024 at 4:16 PM Oscar Benjamin wrote: > > I'm

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

2024-01-24 Thread Aaron Meurer
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: > > Hi Aaron, > > I think we should start by removing e

[sympy] Need GSoC mentors and help updating ideas page

2024-01-24 Thread Aaron Meurer
mentor but want to help review applications, just let me know. If you are someone who is interested in applying to SymPy for GSoC, start here. https://github.com/sympy/sympy/wiki/GSoC-Student-Instructions Aaron Meurer -- You received this message because you are subscribed to the Google Groups

Re: [sympy] Numbering in init_printing(latex_mode='equation')

2024-01-15 Thread Aaron Meurer
p? I'm really only > interested in this for static presentation output (pdf, html) so it wouldn't > matter if it doesn't work in interactive modes. I think the only way to know if it will work or not is to test it. I suspect it will work for pdf output, but I have no idea if it will work in the

Re: [sympy] Which interpreter is best?

2024-01-15 Thread Aaron Meurer
recommend using Jupyterlab or Jupyter notebook. If you are running into performance issues, it is likely the issue has to do with SymPy itself rather than your interpreter. Aaron Meurer On Mon, Jan 15, 2024 at 2:33 AM Abhay Kumar wrote: > > Hi > I have gone through this contributing to Sym

[sympy] SymPy GPT

2024-01-10 Thread Aaron Meurer
on it if people like it. Aaron Meurer -- 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+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: [sympy] Nice display of integral, sum, product, etc. for Sympy on MS Windows

2024-01-01 Thread Aaron Meurer
. Of course, you can also just run SymPy in a Jupyter notebook, which will render output using MathJax, which generally looks better than the Unicode output, and works on any platform. Aaron Meurer On Mon, Jan 1, 2024 at 11:45 PM Robert Dodier wrote: > > Hi, I am working on a nicer terminal d

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

2023-12-07 Thread Aaron Meurer
solutions for you. Aaron Meurer On Thu, Dec 7, 2023 at 10:17 AM Mario Lemelin wrote: > > If I had one functionality to have in Sympy, it would be the possibility to > get access to a list of symbols that I am using in my notebook. A function > called, let's say LstSymbols(), which g

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

2023-12-06 Thread Aaron Meurer
n all" in your notebook to reset the state and ensure everything runs again. Aaron Meurer On Mon, Dec 4, 2023 at 10:24 AM Mario Lemelin wrote: > > Hello, > This is my first time. Just wondering if there is a command that I can do > when, in a jupyter notebook, when I want to go b

Re: [sympy] SymPy CZI Grant Code Generation & Biomechanics Outcomes

2023-11-14 Thread Aaron Meurer
to upstream it. I'm excited to see that codegen for matrix expressions is finally starting to improve. Aaron Meurer On Fri, Oct 27, 2023 at 12:31 AM Jason Moore wrote: > > Hi, > > I've made a blog post summarizing all the work we did for 1/3 of the CZI > grant: > > https:

Re: [sympy] Matrix vector multiplication

2023-11-06 Thread Aaron Meurer
. If you want to use NumPy to do numeric calculations on these expressions, this should be done explicitly at the end after converting your SymPy expression into a NumPy function using lambdify(). Aaron Meurer On Thu, Nov 2, 2023 at 4:45 AM Lenni Lemoy wrote: > > Hi Aaron, thank you for your

Re: [sympy] LLL and sympy

2023-11-05 Thread Aaron Meurer
on the LLL-parts first > while waiting for 1.1.3 to become available. There's no reason to not ask this question. And anyways, Oscar mentioned to me that he wants to make a release soon so (hopefully) it should be out before the end of the year, if not month. Aaron Meurer > > MAN

Re: [sympy] SymPy CZI Grant Documentation Blog Post

2023-11-02 Thread Aaron Meurer
Yes, although a few pages are only available in the dev docs (https://docs.sympy.org/dev/index.html). All the relevant pages are linked to from the blog post. Aaron Meurer On Thu, Nov 2, 2023 at 3:12 AM wrote: > > Dear Aaron, > > Thanks! > Is this new documentation available now?

[sympy] SymPy CZI Grant Documentation Blog Post

2023-11-02 Thread Aaron Meurer
I have written a blog post about the documentation work that I did as part of the CZI EOSS cycle 4 grant. https://labs.quansight.org/blog/sympy-documentation Feedback on the new documentation pages or documentation feedback in general is always welcome. Aaron Meurer -- You received

Re: [sympy] Matrix vector multiplication

2023-11-01 Thread Aaron Meurer
l#separate-symbolic-and-numeric-code Aaron Meurer On Wed, Nov 1, 2023 at 8:15 PM Lenni Lemoy wrote: > > Hi everybody, > > I just started using SymPy, and tried to multiply a matrix M by a vector x > holding sympy.symbols. > > I expected that M*x will be a vector again, but it is a

Re: [sympy] New featured project

2023-10-04 Thread Aaron Meurer
I think it can be added. Can you make a pull request? Aaron Meurer On Wed, Oct 4, 2023 at 10:18 AM Mathias Louboutin wrote: > > Hi > > Would it be possible to add our project devito: > > https://www.devitoproject.org/ > > to the "Project using sympy" in the d

Re: [sympy] Re: looking for a numerical expression to fail this test

2023-09-22 Thread Aaron Meurer
trol over how much computation is done. And you end up with defaults that try to do way too much computation, which ends up slowing things down. Aaron Meurer > > I don't really appreciate the preference for using `is_gt(a,b)` instead of > `(a > b) is S.true` or else I may have

Re: [sympy] Re: looking for a numerical expression to fail this test

2023-09-19 Thread Aaron Meurer
at causes SymPy to hang on very simple things that should return instantly (see https://github.com/sympy/sympy/issues/10800 for another example of this). We need to move to a model where evalf is never called automatically, except for cases where it is known that it will be very cheap. Aaron Meure

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

2023-09-08 Thread Aaron Meurer
Also I resubmitted part 1 at the request of the HN mods and it has some comments as well https://news.ycombinator.com/item?id=37430759 Aaron Meurer On Fri, Sep 8, 2023 at 1:09 AM Aaron Meurer wrote: > > I posted this to Hacker News, where it got some comments. > https://news.ycombi

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

2023-09-08 Thread Aaron Meurer
By the way, if you install SymPy from conda-forge, they gmpy2 will be installed automatically. If you use conda-forge chances are you've already been using it this whole time. Aaron Meurer On Fri, Sep 8, 2023 at 1:13 AM wrote: > Dear Oscar, > > Thanks! > I installed it (I used anac

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

2023-09-08 Thread Aaron Meurer
I posted this to Hacker News, where it got some comments. https://news.ycombinator.com/item?id=37426080 Aaron Meurer On Wed, Sep 6, 2023 at 5:08 PM Oscar Benjamin wrote: > > Hi all, > > I have a new blog post following the last one: > https://oscarbenjamin.github.io/blog

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

2023-09-03 Thread Aaron Meurer
l lead to an endless number of bugs and unexpected behavior. Basically, when evaluation happens all the time and certain invariants about expressions always hold, then functions are written assuming those invariants. It isn't even done intentionally most of the time. The only way out of this is to have a core tha

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

2023-09-01 Thread Aaron Meurer
On Fri, Sep 1, 2023 at 4:12 AM Oscar Benjamin wrote: > > 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 > >

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

2023-08-31 Thread Aaron Meurer
so wondering if you've thought about symbolic constants and if there's any tricks you could do to support them. I think there might be, especially when still thinking about things in terms of just using faster linear algebra as a pre-processor to a symbolic solve. Aaron Meurer > > -- Shahriar &g

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

2023-08-31 Thread Aaron Meurer
h could help it out. Actually it wouldn't be much work to generalize this to something that gives an exact answer at least some of the time. For example, you could use nsimplify() to guess at exact values for numeric coefficients. As long as diff(answer) - integrand symbolically simplifies to

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

2023-08-21 Thread Aaron Meurer
all over the place, so focusing on matrices for now can lead to bigger performance wins. Aaron Meurer > > It might be best if the result is assigned to a variable so as to > exclude the cost of converting it to a string. > > I am sure I am teaching my grandmother to suck eggs (not that either

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

2023-08-16 Thread Aaron Meurer
On Wed, Aug 16, 2023 at 12:08 PM Aaron Meurer wrote: > > Thank you for the blog post Oscar. I submitted it to Hacker News as > well https://news.ycombinator.com/item?id=37150867 > > I agree with all the things you wrote. I agree with the idea of having > computation subsystems

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

2023-08-16 Thread Aaron Meurer
istinction between lower level fast data structures and higher level data structures. And in particular, it means that slower abstractions like automatic evaluation have leaked in which really should only ever be part of the top level layers. I look forward to reading the followup blog posts. Aa

Re: [sympy] Sympy webpage repository

2023-08-14 Thread Aaron Meurer
. There's also, unfortunately, an issue currently with the website repo where the GitHub actions deploy script is broken (see https://github.com/sympy/sympy.github.com/pull/187). That should be fixed before any further PRs are merged, or else it will break the website. Aaron Meurer On Mon, Aug 14

Re: [sympy] SymPy numbers and NumPy interoperability

2023-07-28 Thread Aaron Meurer
I don't know why Oscar closed that issue. NumPy does have a lot of methods for defining how custom objects interact with it. I did some basic tests and it seems like adding __array__ to Number would do exactly what we want here. Aaron Meurer On Fri, Jul 28, 2023 at 2:37 AM Idan Pazi wrote

Re: [sympy] SymPy numbers and NumPy interoperability

2023-07-26 Thread Aaron Meurer
(which I wouldn't necessarily recommend). Aaron Meurer On Wed, Jul 26, 2023 at 11:37 AM Idan Pazi wrote: > > Hello, > Is there a way I could configure NumPy or SymPy so that NumPy functions would > accept SymPy numbers (e.g. sympy.Rational)? > > For example: > >>> i

Re: [sympy] Can I splice Symbols into Symbols? Returning None

2023-07-24 Thread Aaron Meurer
les/logic.html As a general rule of thumb, if you find yourself doing mathematical operations using string manipulation, that means you are using SymPy wrong. SymPy is designed to do mathematical operations directly, and doesn't work by operating on strings. Aaron Meurer On Sun, Jul 23, 2023 at 2:41 AM Nick

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

2023-07-18 Thread Aaron Meurer
repos using master and others using main to be confusing. Aaron Meurer -- 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+unsubscr...@googlegroups.com. To

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

2023-07-17 Thread Aaron Meurer
of the repo and is using "git checkout master; git pull" will have their workflows broken when master stops being updated. I don't know if there's a clean way we can do anything about that. Aaron Meurer On Mon, Jul 17, 2023 at 9:25 PM Sangyub Lee wrote: > > I think that github dec

Re: [sympy] Re: ChatGPT and SymPy

2023-07-17 Thread Aaron Meurer
SymPy unless they click the button to show the code that ChatGPT generated. It might end up that a lot of people end up using SymPy with it but most of them never actually realize it. Aaron Meurer On Mon, Jul 17, 2023 at 1:56 AM Francesco Bonazzi wrote: > Nice. Are there any chan

Re: [sympy] Zeilberger's algorithm + documentation

2023-07-15 Thread Aaron Meurer
If it's not too hard to separate them that might be better just because the documentation pull request will probably be able to be merged much quicker and the Zeilberger algorithm may require more review changes before it can be merged. Aaron Meurer On Fri, Jul 14, 2023 at 8:39 AM robert

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

2023-07-07 Thread Aaron Meurer
On Thu, Jul 6, 2023 at 4:15 PM David Bailey wrote: > > On 05/07/2023 21:40, Aaron Meurer wrote: > > For interactive use, just passing a string to S() (or equivalently > > sympify() or parse_expr()) is the simplest way to deal with this. > > However, I would avoid this f

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

2023-07-05 Thread Aaron Meurer
ions, like x = symbols('x', real=True) then this will be a *different* symbol. For example: >>> x = symbols('x', real=True) >>> expr = S("x + 1") >>> x + expr x + x + 1 This can lead to all sorts of confusion. So really only use string input if you are very ca

[sympy] Introducing Diane Tchuindjo to the project

2023-07-05 Thread Aaron Meurer
, but I'm confident we will be able to convince the SymPy community that Hypothesis is a tool that we should be using regularly in the SymPy test suite. Aaron Meurer -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this grou

Re: [sympy] Inconsistency between mathematical functions

2023-06-19 Thread Aaron Meurer
. Aaron Meurer On Mon, Jun 19, 2023 at 5:29 PM David Bailey wrote: > > I wonder if anyone here can explain why some mathematical functions - > e.g. sin and gamma evaluate completely if given a floating point > argument, while others such as besselj(0,0.2) only evaluate completely

Re: [sympy] Re: Code generation for dynamic size arrays

2023-06-13 Thread Aaron Meurer
es currently do not know about the sympy.codegen classes. The idea is to eventually replace everything with the sympy.codegen ast nodes. Aaron Meurer On Tue, Jun 13, 2023 at 12:45 AM Morten Olsen Lysgaard wrote: > > Ah, there is an inconsistency in the above email. I am saying I want > do

Re: [sympy] Simplify expressions involving complex numbers

2023-05-23 Thread Aaron Meurer
expressions are all real, so they should be reexpressed without using i. Aaron Meurer what you want is to rewrite powers as exponentials if possible. If so > that can be done with e.rewrite(exp): > > >>> from sympy import * > >>> i = I > >>> a = i**(

[sympy] 2023 GSoC Projects Announced

2023-05-09 Thread Aaron Meurer
ducing classes for Cables and Improving the Truss class". Mentors: Prakhar Saxena and Advait Pote Tilo Reneau-Cardoso, "Improving Relational Assumptions in SymPy’s New Assumptions". Mentors: Aaron Meurer and Francesco Bonazzi Tirthankar Mazumder, "Rewrite LaTeX Parser".Me

Re: [sympy] Unexpanded coefficients of a polynomial

2023-04-27 Thread Aaron Meurer
Poly is designed to expand all polynomials out. If you just want the terms of an expression as you've written it you can use Add.make_args(). I wouldn't really call these the "coefficients" of the expression though. Aaron Meurer On Thu, Apr 27, 2023 at 11:02 AM Paul Royik wrote:

[sympy] Re: Request for an update on my GSoC proposal status before REU deadline

2023-04-18 Thread Aaron Meurer
. Aaron Meurer On Saturday, April 15, 2023 at 7:05:11 PM UTC-6 tilor...@gmail.com wrote: > Hello SymPy Community, > > Yesterday I was admitted to an REU for over the summer. However, I'm more > interested in participating in GSoC with SymPy. While I understand that > decisions

Re: [sympy] Preferred way to include printing functionalities

2023-04-13 Thread Aaron Meurer
I was actually thinking about the printing methods that are on the classes themselves https://github.com/sympy/sympy/blob/master/sympy/physics/vector/vector.py#L222. For the custom printers themselves, I can see more of a rationale for keeping them in the physics module. Aaron Meurer On Thu, Apr

Re: [sympy] Preferred way to include printing functionalities

2023-04-13 Thread Aaron Meurer
printing bugs than most other SymPy objects. Aaron Meurer On Wed, Apr 12, 2023 at 8:28 AM Jason Moore wrote: > > For the physics objects, I recommend copying how we've done it for Vector and > Dyadic. We keep the printing code in the physics.vector modules because these > objects don't s

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

2023-04-04 Thread Aaron Meurer
On Sun, Apr 2, 2023 at 10:29 AM Oscar Benjamin wrote: > > 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: > > > >

Re: [sympy] Question about best practices

2023-04-03 Thread Aaron Meurer
printers by making correct use of the prettyform class. Aaron Meurer On Sun, Apr 2, 2023 at 2:33 PM Pedro Xavier wrote: > > I'm trying to close issue #12157 through the PR #25012. > > In summary, the issue comes from the physics dyadic > (sympy/physics/vector/dyadic.py)

Re: [sympy] Intro and Potential GSOC Project Ideas

2023-04-03 Thread Aaron Meurer
tionally interface with faster C implementations (e.g., gmpy2). It would be good to dig into Z3 and see how well it does on these sorts of problems, and if possible, determine if there are any specific algorithms its using under the hood. Aaron Meurer > On Wednesday, March 29, 2023 at 12:26:47 

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

2023-04-01 Thread Aaron Meurer
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: > > > > > > When the # of dependencies is large, dependabot is a very annoying > > &g

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

2023-03-31 Thread Aaron Meurer
https://github.com/sympy/sympy/blob/master/doc/requirements.txt I don't know if there's a tool that lets you easily see how often these are updated but my guess would be 1-5 updates a week. Aaron Meurer > > Jason > moorepants.info > +01 530-601-9791 > > > On Fri, Mar 31, 2023

Re: [sympy] GSoC2023 Introduction

2023-03-31 Thread Aaron Meurer
from different modules, but it's best if your proposal focuses on a single coherent goal. Aaron Meurer > > -- > 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

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

2023-03-31 Thread Aaron Meurer
I only ever hear bad things about dependabot. I don't have any experience with it myself, but I would be cautious about using it. Maybe try reaching out to other communities that have tried it to see what their experiences have been. Aaron Meurer On Fri, Mar 31, 2023 at 8:20 AM Oscar Benjamin

Re: [sympy] Re: ChatGPT and SymPy

2023-03-30 Thread Aaron Meurer
CoordSys3D when it could just use Matrix.norm, although that's just random and if you ask it the same thing it might not do that. Aaron Meurer On Thu, Mar 30, 2023 at 4:03 PM Chris Smith wrote: > Use with caution -- the set-up can be right and the answer wrong as in: > > What is the norm

Re: [sympy] Parsing/Codegen GSoC Project

2023-03-30 Thread Aaron Meurer
e. >> >> You may also be interested in lfortran, which is a different GSoC >> organization >> (https://summerofcode.withgoogle.com/programs/2023/organizations/fortran-lang), >> but which has close ties to SymPy (Ondřej Čertík the creator of lfortran >> was also

  1   2   3   4   5   6   7   8   9   10   >