Re: [sympy] What is the difference between Basic and Expr?

2019-12-01 Thread JS S
The best explanation I could make was this:

There exists MatAdd class, which can have ImmutableDenseMatrix as 
arguments, thus representing unevaluated matrix addition.
Therefore, ImmutableDenseMatrix subclasses Expr since it can form matrix 
expression.

However, ImmutableSparseMatrix isn't designed to be argument of MatAdd 
class.
(When I put it as argument of MatAdd, pretty printing raises error, saying 
they don't have `as_coeff_mmul` attribute).
This makes ImmutableSparseMatrix not to subclass Expr. Why this can't be 
argument of MatAdd I don't know.

Likewise, there exists no class such as 'NDimArrayAdd' class, making 
NDimArray subclass of Basic only.


But, seeing that Relational subclasses Expr as you exemplified, I belive 
that obviously there have been some confusion subclassing Basic and Expr.


2019년 12월 2일 월요일 오전 11시 42분 30초 UTC+9, Oscar 님의 말:
>
> On Mon, 2 Dec 2019 at 01:59, JS S > 
> wrote: 
> > 
> > But what confuses me is this: 
> > 
> > - ImmutableDenseMatrix is subclass of Expr 
> > - ImmutableSparseMatrix is subclass of Basic, but not Expr. 
> > - ImmutableDenseNDimArray is, unlike its Matrix counterpart, subclass of 
> Basic but not Expr. 
>
> I don't think there is a good reason for the discrepancy here apart 
> from the fact that there is some confusion about what should subclass 
> from what. Another example is that Relational is a subclass of Expr 
> and that makes no sense at all. 
>
> Probably all of these should be Expr or none of them should. 
>
> -- 
> 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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/855bffec-1cb7-4e3c-8b7b-4d1a5255efd0%40googlegroups.com.


Re: [sympy] What is the difference between Basic and Expr?

2019-12-01 Thread Oscar Benjamin
On Mon, 2 Dec 2019 at 01:59, JS S  wrote:
>
> But what confuses me is this:
>
> - ImmutableDenseMatrix is subclass of Expr
> - ImmutableSparseMatrix is subclass of Basic, but not Expr.
> - ImmutableDenseNDimArray is, unlike its Matrix counterpart, subclass of 
> Basic but not Expr.

I don't think there is a good reason for the discrepancy here apart
from the fact that there is some confusion about what should subclass
from what. Another example is that Relational is a subclass of Expr
and that makes no sense at all.

Probably all of these should be Expr or none of them should.

--
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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxQKXe1nNkz0%2BBP_NeuMX0mCWUaTZ4WYOxJD1f6cmKtBrw%40mail.gmail.com.


[sympy] What is the difference between Basic and Expr?

2019-12-01 Thread JS S
Sorry for duplicate question -  my previous one didn't get any answer so I 
cannot but ask again.

Now, I know that Basic object must be immutable, and Expr object must be 
able to be subject to arithmetic operation.
(As far as I know, that is why some classes, e.g. FiniteSet, is instance of 
Basic but not Expr).

But what confuses me is this:

- ImmutableDenseMatrix is subclass of Expr
- ImmutableSparseMatrix is subclass of Basic, but not Expr.
- ImmutableDenseNDimArray is, unlike its Matrix counterpart, subclass of 
Basic but not Expr.

This is confusing for me: What makes the difference between these three?

-- 
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 visit 
https://groups.google.com/d/msgid/sympy/401e29e2-9a02-41ee-b549-f6d300c9d7cf%40googlegroups.com.


Re: [sympy] Introduction

2019-12-01 Thread Gagandeep Singh (B17CS021)
Hi, Please read the contributing guide(
https://github.com/sympy/sympy/wiki/Introduction-to-contributing). In
addition, also take a look at README(
https://github.com/sympy/sympy/blob/master/README.rst). Take a look at this
list(https://github.com/sympy/sympy/labels/Please%20take%20over)  for
stalled PRs. Feel free to open a new one for continuing one of these.

With Regards,
Gagandeep Singh
Github - https://www.github.com/czgdp1807
LinkedIn - https://www.linkedin.com/in/czgdp1807

On Sun, 1 Dec, 2019, 3:12 PM nisarg shah,  wrote:

> Hello Everyone,
> This is Nisarg Shah, 3rd year Mechanical Engineering student at National
> Institute of Technology,Karnataka particularly interested in Data Science
> and Machine Learning. I have been studying Probability and Statistics for a
> while now and also have a good knowledge of Python and Data Structures and
> Algorithms. I would like to contribute towards any project related to
> Probability and statistics.  Please guide me through the current projects
> regarding the same.
>
> Thanks and Regards
> Nisarg Shah
> National Institute of Technology,Karnataka
>
> --
> 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 visit
> https://groups.google.com/d/msgid/sympy/CANoybyakgbZBooNzkhNX82rA4ZTh9PXg0NyVGxr4mYJCDWCkpA%40mail.gmail.com
> 
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/sympy/CAAvS0gURioMh-aHTXnjfh_xKctHU%3Dr0Rw4ZDCMv6kCYPcTxYJw%40mail.gmail.com.


[sympy] Introduction

2019-12-01 Thread nisarg shah
Hello Everyone,
This is Nisarg Shah, 3rd year Mechanical Engineering student at National
Institute of Technology,Karnataka particularly interested in Data Science
and Machine Learning. I have been studying Probability and Statistics for a
while now and also have a good knowledge of Python and Data Structures and
Algorithms. I would like to contribute towards any project related to
Probability and statistics.  Please guide me through the current projects
regarding the same.

Thanks and Regards
Nisarg Shah
National Institute of Technology,Karnataka

-- 
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 visit 
https://groups.google.com/d/msgid/sympy/CANoybyakgbZBooNzkhNX82rA4ZTh9PXg0NyVGxr4mYJCDWCkpA%40mail.gmail.com.


Re: [sympy] Introduction

2019-12-01 Thread Gagandeep Singh (B17CS021)
Hi,

Please read the contributing guide(
https://github.com/sympy/sympy/wiki/Introduction-to-contributing). In
addition, also take a look at README(
https://github.com/sympy/sympy/blob/master/README.rst). Take a look at this
list(https://github.com/sympy/sympy/labels/Please%20take%20over)  for
stalled PRs. Feel free to open a new one for continuing one of these.
With Regards,
Gagandeep Singh
Github - https://www.github.com/czgdp1807
LinkedIn - https://www.linkedin.com/in/czgdp1807

On Sun, 1 Dec, 2019, 2:47 PM Divyam Singal, 
wrote:

> Hello everyone,
>
> This is Divyam Singal, a 1st year student studying Maths and Computing at
> IIT Guwahati. I have interest in Maths and have also cleared INMO in year
> 2019. I got Honourable Mention at Sharygin Geometry Olympiad. I know a
> little about Python language.
>
> I am more interested in the algebra based projects on SymPy.
> Please guide me as to how to procede further.
>
> Regards
> Divyam Singal
> IIT Guwahati
>
> --
> 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 visit
> https://groups.google.com/d/msgid/sympy/9dcf841d-25fb-4adc-a309-37e80078034f%40googlegroups.com
> 
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/sympy/CAAvS0gU-aPxaaBCoCL-KR5QYtAxv0mhptTygozaErhxf3u%2BCPA%40mail.gmail.com.


[sympy] Introduction

2019-12-01 Thread Divyam Singal
Hello everyone,

This is Divyam Singal, a 1st year student studying Maths and Computing at 
IIT Guwahati. I have interest in Maths and have also cleared INMO in year 
2019. I got Honourable Mention at Sharygin Geometry Olympiad. I know a 
little about Python language.

I am more interested in the algebra based projects on SymPy.
Please guide me as to how to procede further.

Regards
Divyam Singal
IIT Guwahati

-- 
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 visit 
https://groups.google.com/d/msgid/sympy/9dcf841d-25fb-4adc-a309-37e80078034f%40googlegroups.com.