TRe: [sympy] Addin sympy to SPEC 0?

2024-06-19 Thread Anton Akhmerov
Thank you Oscar for taking action. Does that mean that sympy can endorse spec-0? Or that will it do so starting from some version? Anton On Wednesday 5 June 2024 at 21:13:21 UTC+2 Oscar wrote: > On Tue, 4 Jun 2024 at 21:10, Oscar Benjamin wrote: > > > > Personally I am in favour of going with

Re: [sympy] Addin sympy to SPEC 0?

2024-04-14 Thread Anton Akhmerov
y 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. There is no way to put version constraints on > optional dependencies in pip/

Re: [sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Anton Akhmerov
upport within my package that has SymPy as a >> dependency" because I am not sure what the benefit would be of >> supporting more than 1 version of SymPy. >> >> Is there a reason that someone would need to combine a newer version >> of your package with an older version of

Re: [sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Anton Akhmerov
gt; optional dependencies in pip/PyPI land. > > Oscar > > On Sun, 10 Mar 2024 at 14:24, Anton Akhmerov wrote: > > > > Hi all, > > > > There is now SPEC 0, a SciPy-community-wide standard for versions of > different packages that developers should aim suppo

[sympy] Addin sympy to SPEC 0?

2024-03-10 Thread Anton Akhmerov
Hi all, There is now SPEC 0, a SciPy-community-wide standard for versions of different packages that developers should aim supporting, see https://scientific-python.org/specs/spec-/ I believe Sympy is the biggest package missing from SPEC 0, and I've asked the maintainers of SPEC 0 what

[sympy] Representing a matrix-valued function

2022-10-24 Thread Anton Akhmerov
Hello everyone, I would like to represent a symbolic function whose argument is a matrix symbol and so is its output. To make a specific example, I would like an expression like to define F, such that F(X) + X works if X is a MatrixSymbol("X", n, n). The closest that I was able to find in the

[sympy] Linear equations with block matrices

2015-07-12 Thread Anton Akhmerov
Hi everyone, I'm trying to solve a system of linear equations involving a bunch of block matrices, see over here: http://nbviewer.ipython.org/url/antonakhmerov.org/misc/Andreev reflection.ipynb Obviously my attempt is overly naive, but I didn't find any complicated solution in the docs

Re: [sympy] Re: Linear equations with block matrices

2015-07-12 Thread Anton Akhmerov
http://nbviewer.ipython.org/url/antonakhmerov.org/misc/Andreev reflection.ipynb The link appears to be broken. Can you fix it? Sorry, a space bar in the filename. You can either select the full link manually and copy it in the URL or use this one:

Re: [sympy] type of a defined function

2014-07-06 Thread Anton Akhmerov
) - (2 + 5*I) Are there cases when the result would be ambiguous? Would there be important errors that would be swallowed and lead to an unexpected result if a distinction between callable and uncallable is removed? Anton Akhmerov Aaron Meurer could just return Expr(func=a, args=b

Re: [sympy] type of a defined function

2014-07-03 Thread Anton Akhmerov
). On Saturday, June 14, 2014 10:31:19 PM UTC+2, Aaron Meurer wrote: On Tue, Jun 10, 2014 at 8:13 AM, Anton Akhmerov anton.a...@gmail.com javascript: wrote: Hi Ondrej and Aaron, Thanks for the replies. On Tuesday, June 10, 2014 8:38:15 AM UTC+2, Ondřej Čertík wrote: Agreed, we

Re: [sympy] type of a defined function

2014-06-10 Thread Anton Akhmerov
the union of free_symbols and atoms(AppliedUndef). Aaron Meurer Best, Anton Akhmerov On Monday, October 28, 2013 6:16:16 PM UTC+1, Aaron Meurer wrote: This is correct. type() in Python basically means class of. Function('x') creates a class, called x. When you apply

[sympy] Complex numeric coefficients

2014-06-09 Thread Anton Akhmerov
multiplication is performed). Thanks, Anton Akhmerov -- 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 post to this group, send email

Re: [sympy] Complex numeric coefficients

2014-06-09 Thread Anton Akhmerov
generation there. Best, Anton Akhmerov On Monday, June 9, 2014 5:20:54 PM UTC+2, Aaron Meurer wrote: I guess you'll need to subclass whatever printer you are using (StrPrinter or LambdaPrinter probably) and override _print_Add to get this behavior. See http://docs.sympy.org/latest/modules

Re: [sympy] type of a defined function

2014-06-09 Thread Anton Akhmerov
)) is and UndefinedFunction. Best, Anton Akhmerov On Monday, October 28, 2013 6:16:16 PM UTC+1, Aaron Meurer wrote: This is correct. type() in Python basically means class of. Function('x') creates a class, called x. When you apply it to t, it creates an instance of that class. The class