These are chat archives for symengine/symengine

16th
Dec 2016
Srajan Garg
@srajangarg
Dec 16 2016 08:14
pow(zero, <any negative number>) should raise DivideByZero error right?
It returns zero at the moment
Isuru Fernando
@isuruf
Dec 16 2016 08:15
what does sympy do?
Srajan Garg
@srajangarg
Dec 16 2016 08:17
Sympy has the infinity class
Isuru Fernando
@isuruf
Dec 16 2016 08:17
as does symengine
Srajan Garg
@srajangarg
Dec 16 2016 08:17
Complex infinity is returned zoo
Isuru Fernando
@isuruf
Dec 16 2016 08:19
okay. then return zoo in symengine
Srajan Garg
@srajangarg
Dec 16 2016 08:20
How is complex infinity defined in symengine? 0 direction?
Isuru Fernando
@isuruf
Dec 16 2016 08:21
SymEngine::zoo
Srajan Garg
@srajangarg
Dec 16 2016 08:21
Also, knowing this, will DivideByZero ever be used?
Isuru Fernando
@isuruf
Dec 16 2016 08:21
It should in polynomials, etc
Srajan Garg
@srajangarg
Dec 16 2016 08:21
I see, thanks
Srajan Garg
@srajangarg
Dec 16 2016 09:11
Also, in SymeEngine we directly simplify pow(0, x)to 0 while SymPy keeps it as 0**x. I think we should shift to how Sympy does it.
What do you think?
Isuru Fernando
@isuruf
Dec 16 2016 09:13
I have no preference
Siddharth
@bollu
Dec 16 2016 09:37
@isuruf - is there expand for matrices?
@isuruf - also, may I implement element-wise multiplication for dense and sparse matrices?
Isuru Fernando
@isuruf
Dec 16 2016 09:38
@bollu, no. you'll have to do it elementwise
sure
Siddharth
@bollu
Dec 16 2016 09:38
@isuruf ah, okay. may I implement expand for matrices as well on the C++ side? the FFI cost would be very high otherwise
Isuru Fernando
@isuruf
Dec 16 2016 09:57
sure
Siddharth
@bollu
Dec 16 2016 10:05
@isuruf - also, I made a PR against symengine.hs. Please do review