[sympy] GSoC - Make Sage use CSymPy as the symbolic engine

2015-03-10 Thread Isuru Fernando
Hi, I'm Isuru Fernando. I'm a 3rd year Computer Science and Engineering undergraduate at University of Moratuwa. I've been working on CSymPy for some time now and would like to work on the Sage GSoC project to use CSymPy as the symbolic engine. I have a couple of questions regarding the project

Re: [sympy] Chain rule and Subs

2015-05-01 Thread Isuru Fernando
syntax) Isuru Fernando On Fri, May 1, 2015 at 8:16 PM, Miguel Angel Salazar de Troya salazardetr...@gmail.com wrote: Hello I have this derivative of a function that has an argument which is also a function # Declaration x = symbols('x') U, Theta = symbols('U Theta', cls=Function

Re: [sympy] test_args in PR

2015-11-29 Thread Isuru Fernando
Hi, Test logs show that sympy.tensor.array module is not getting installed. https://travis-ci.org/sympy/sympy/jobs/93753616#L713 You have to add it to the modules list in setup.py for the files to get installed. Isuru Fernando On Sun, Nov 29, 2015 at 6:54 PM, Francesco Bonazzi <franz.b

Re: [sympy] Re: Interested in contributing to Sympy, especially in the area of code generation

2016-06-22 Thread Isuru Fernando
rested, you can take a look at and see if it can be improved. Currently, it's slower than the existing lambdify. I only have a day of experience with LLVM, so I don't know what I'm doing wrong. If you can take a look, that'll be great. Isuru Fernando -- You received this message because you are s

Re: [sympy] Re: Who can mentor for GSoC?

2016-02-09 Thread Isuru Fernando
Hi, I'm willing to mentor a SymEngine project. Isuru Fernando On Tue, Feb 9, 2016 at 5:28 PM, AMiT Kumar <dtu.a...@gmail.com> wrote: > Hi! > I am willing to participate as a mentor. > > > Regards, > AMiT Kumar > > On Tuesday, February 9, 2016 at 2:29:41 A

Re: [sympy] Re: How do you replace a function argument with a float?

2016-03-10 Thread Isuru Fernando
It is looking for mpmath's phi. See https://github.com/sympy/sympy/blob/master/sympy/core/function.py#L458 Isuru Fernando On Fri, Mar 11, 2016 at 12:33 AM, Aaron Meurer <asmeu...@gmail.com> wrote: > Oh maybe it's just looking up the mpmath function named phi. We do have > >

Re: [symengine] Re: [sympy] Re: GSOC 2016: Classical Mechanics: Efficient Equation of Motion Generation with C++

2016-03-15 Thread Isuru Fernando
Hi, You have to figure out which methods from sympy core and matrices are called and check if SymEngine has implemented those. If not, then you can start implementing them in SymEngine. Isuru Fernando On Fri, Mar 11, 2016 at 4:18 PM, Aravind Reddy <aravindreddy...@gmail.com> wrote: &g

[sympy] Using SymEngine in SymPy

2016-04-27 Thread Isuru Fernando
Clang) and Windows (MSVC, MinGW, MinGW-w64) with different compilers using Travis-CI and Appveyor. Jason was okay to merge the PR as an undocumented feature, but what should be done to support this officially? Thanks, Isuru Fernando -- You received this message because you are subscribed to

[sympy] GSoC ideas - Using SymEngine in SymPy

2017-01-20 Thread Isuru Fernando
. (SymEngine doesn't have those yet.) 2. SymPy is not fast enough for your application and there are benchmarks we can use. Isuru Fernando -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving e

Re: [sympy] Idea for PR reviewing

2016-09-01 Thread Isuru Fernando
comments are addressed, but no new commits are sent? Isuru Fernando On Thu, Sep 1, 2016 at 10:47 PM, Aaron Meurer <asmeu...@gmail.com> wrote: > One problem with PR reviewing is that it isn't always clear which PRs are > ready to review, and which require more work. > > One solu

Re: [sympy] Re: Doing a release

2017-01-12 Thread Isuru Fernando
Same topic came up on sage-devel today with a solution. https://groups.google.com/forum/m/#!topic/sage-devel/81qsOpoOKMM Isuru Fernando On Jan 12, 2017 5:30 AM, "Aaron Meurer" <asmeu...@gmail.com> wrote: > So let's figure out how they do it. Does someone do it by hand, or

Re: [sympy] How to simplify -polylog(2, exp_polar(I*pi))/16 + pi**2/96 ?

2016-12-02 Thread Isuru Fernando
This is a known bug, https://github.com/sympy/sympy/issues/8404 A._sage_() works because exp_polar(I*pi) is -1 in sage and is unevaluated in SymPy. Isuru Fernando On Fri, Dec 2, 2016 at 2:55 PM, Sébastien Labbé <sla...@gmail.com> wrote: > Can SymPy tell me that A = 1/64*pi**2 by si

Re: [sympy] How to simplify -polylog(2, exp_polar(I*pi))/16 + pi**2/96 ?

2016-12-02 Thread Isuru Fernando
It does give me the correct answer in the latest master, but I get the same incorrect answer in sympy-1.0. It was fixed here, https://github.com/sympy/sympy/pull/10799 Isuru Fernando On Fri, Dec 2, 2016 at 6:48 PM, Sébastien Labbé <sla...@gmail.com> wrote: > Ok, thank you. I see: >

Re: [sympy] MPZ related error: where to start investigations?

2017-06-29 Thread Isuru Fernando
ens when gmpy is installed only. (SymPy detects whether gmpy is installed and uses gmpy) > (ii) if this fix is already merged in the current sympy master, or if it > will be in a future release. > This is fixed in sympy master and will be in the next release Isuru Fernando > > Can

Re: [sympy] MPZ related error: where to start investigations?

2017-06-28 Thread Isuru Fernando
I can reproduce with gmpy2 and sympy=1.0, but goes away if I remove gmpy2 or update to sympy master. This was fixed accidentally in https://github.com/sympy/sympy/pull/11862 Isuru Fernando. -- You received this message because you are subscribed to the Google Groups "sympy&q

Re: [sympy] MPZ related error: where to start investigations?

2017-06-28 Thread Isuru Fernando
>From reproduce I meant a similar error (didn't check pyphs) from sympy import Point import pickle pickle.loads(pickle.dumps(Point(1.1, 2.1).evalf())) Isuru Fernando On Wed, Jun 28, 2017 at 5:28 PM, Isuru Fernando <isu...@gmail.com> wrote: > I can reproduce with gmpy2 and sympy=1

Re: [sympy] Re: GSoC Students announced

2017-05-12 Thread Isuru Fernando
I created https://gitter.im/sympy/codegen-gsoc17 On Fri, May 12, 2017 at 6:54 PM, Björn Dahlgren wrote: > > > On Friday, 12 May 2017 00:20:49 UTC+2, Aaron Meurer wrote: >> >> Maybe you have to have admin access to do it. Can you tell me the name >> of the room you want to

Re: [sympy] Re: mpmath 1.0

2017-10-02 Thread Isuru Fernando
python-flint` Isuru Fernando -- 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 to sympy@g

Re: [sympy] Re: mpmath 1.0

2017-10-02 Thread Isuru Fernando
ps://github.com/conda-forge?utf8=%E2%9C%93=flint== > > Aaron Meurer > > On Mon, Oct 2, 2017 at 3:37 PM, Isuru Fernando <isu...@gmail.com> wrote: > >> I think getting FLINT and python-flint on conda-forge would help a > >> lot, as it would make it much easi

Re: [sympy] Error? Mpmath Bound Method

2018-05-17 Thread Isuru Fernando
Hi, Without seeing your code or the full output, I can't say anything. See https://stackoverflow.com/help/mcve sympy is provided "as is" and the developers cannot say that you should trust it. See https://github.com/sympy/sympy/blob/master/LICENSE#L18-L21 Isuru -- You received this message

Re: [sympy] digital logarithm

2018-01-11 Thread Isuru Fernando
Discrete logarithm has no "efficient solution" in general. For example finding `y = x**n mod m` (i.e. in the set of integers modulo `m`) is hard, but finding the discrete logarithm in the set of integers is easy. Isuru On Thu, Jan 11, 2018 at 4:35 PM, Chris Smith wrote: > I

Re: [sympy] is something wrong with evaluation of Rationals?

2018-03-30 Thread Isuru Fernando
Part of it is a bug and part of it is a feature. First the bug, https://github.com/sympy/sympy/blob/7524499458cf114b32e 3aa6e8acdb77e846111f9/sympy/core/evalf.py#L1264 needs to be changed. It should be changed from from_rational(x.p, x.q, prec) to from_rational(x.p, x.q, prec, rnd). Otherwise

Re: [sympy] [Proposal] Mutable expressions in SymPy

2018-03-24 Thread Isuru Fernando
On Sat, Mar 24, 2018 at 11:16 AM, Aaron Meurer wrote: > Assumedly the point of this is for performance, so that something like > (x + y + z) + w doesn't require rebuilding x + y + z. > > I've thought for some time that Add should save its coeff: term > dictionary, to make

Re: [sympy] Re: why eigenvectors very slow

2018-10-09 Thread Isuru Fernando
Hi, For triangular matrices, it's straightforward to calculate eigenvectors. You just need triangular solves. See Section 4.4.1 of Heath's Scientific Computing 2nd Edition. Isuru On Tue, Oct 9, 2018 at 11:27 AM Jacob Miner wrote: > I will show you a representation of the 7x7 form of my

Re: [sympy] Re: why eigenvectors very slow

2018-10-09 Thread Isuru Fernando
ned (you should have >> mentioned that it was triangular). I think as Isuru said we can likely >> implement a faster method for triangular matrices. The eigenvalues >> themselves (the diagonals) are already computed very quickly. >> >> Aaron Meurer >> On Tue, Oct 9, 2018 at 1

Re: [sympy] Benchmarking CI

2019-05-20 Thread Isuru Fernando
Forget that. That was because I also pushed to a branch. For PRs, we'll have to set up a bot to push to a gitlab branch. Isuru On Tue, May 21, 2019 at 12:41 AM Isuru Fernando wrote: > > Yes, but not by default, one has to setup a bot to do that. Here is how > somebody already di

Re: [sympy] is compatibility builtins broken?

2019-05-08 Thread Isuru Fernando
You can do, >>> from sympy.core.compatibility import builtins >>> type = builtins.type On Wed, May 8, 2019 at 4:42 PM Vishesh Mangla wrote: > What do these builtins ought to be doing? > > > > Sent from Mail for > Windows 10 > > > > *From: *Chris

Re: [sympy] Benchmarking CI

2019-05-20 Thread Isuru Fernando
> Yes, but not by default, one has to setup a bot to do that. Here is how somebody already did exactly that: There's a new feature in gitlab that takes care of this. See https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/github_integration.html I just created https://gitlab.com/isuruf/sympy/

Re: [sympy] Benchmarking CI

2019-05-20 Thread Isuru Fernando
On Mon, May 20, 2019 at 4:30 PM Aaron Meurer wrote: > On Mon, May 20, 2019 at 2:45 PM Isuru Fernando wrote: > > > > > > On Mon, May 20, 2019 at 3:34 PM Aaron Meurer wrote: > >> > >> Thanks. My biggest question has been how we can do it in the cl

Re: [sympy] Benchmarking CI

2019-05-20 Thread Isuru Fernando
Hi, I setup asv in Gitlab CI for https://gitlab.tiker.net/inducer/sumpy. It runs the PR head and master (cached) and errors if there is a test with 10% regression. Script is at https://gitlab.tiker.net/inducer/ci-support/blob/master/build-and-benchmark-py-project.sh. It runs on a dedicated Gitlab

Re: [sympy] Benchmarking CI

2019-05-20 Thread Isuru Fernando
maintain. What do the sumpy > benchmarks run on? > It's a dedicated machine somewhere in the university running a gitlab runner service. Not a cloud machine. Isuru > Aaron Meurer > > On Mon, May 20, 2019 at 1:59 PM Isuru Fernando wrote: > > > > Hi, > > >

Re: [sympy] Re: SymPy 1.5 released

2019-12-14 Thread Isuru Fernando
FYI, NumPy has already dropped python 2.7 support in 1.17.0 in July. They are supporting 1.16.x until January, 1 2020 and 1.16.x will no longer be supported. Isuru On Sat, Dec 14, 2019 at 5:36 PM Oscar Benjamin wrote: > I don't see why anything dramatic will happen when NumPy drops support >

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

Re: [sympy] Parsing expressions problem | "ImportError: Clang is not installed, cannot parse C code"

2022-04-19 Thread Isuru Fernando
It should be python-clang. Isuru On Tue, Apr 19, 2022 at 2:23 PM Aaron Meurer wrote: > The error message should be improved there. You need clang-python. > > Aaron Meurer > > On Tue, Apr 19, 2022 at 1:20 PM Audrius-St > wrote: > > > > Hello, > > > > I am attempting to parse C code into Python

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

2023-07-07 Thread Isuru Fernando
Hi David, You could write a simple converter to convert all ints to sympy Integers if you are writing the code inside a function. See code below. Isuru import sympy from sympy.interactive.session import int_to_Integer import inspect import types def use_sympy_ints(f): #