These are chat archives for symengine/symengine

26th
May 2016
Srajan Garg
@srajangarg
May 26 2016 04:17
@isuruf I couldn't find your comment on why negative integers are allowed in UniviariatePolynomial. Is it just for UnivariateSeries to work? Semantically, polynomials are supposed to have only non-negative integer exponents?
Isuru Fernando
@isuruf
May 26 2016 04:20
One reason is to make UnivariateSeries to work
Think of it as a laurent polynomial
Srajan Garg
@srajangarg
May 26 2016 04:52
It's just that, if we switch to negative exponents in UnivariateIntPolynomial fast multiplication won't be possible. Also evalwill also have to be changed I think.
Isuru Fernando
@isuruf
May 26 2016 04:52
Okay, then keep UnivariateIntPolynomial as it is.
Srajan Garg
@srajangarg
May 26 2016 05:06
@isuruf Can you merge in #953 ? I'll merge with master, and continue my work
Rajith Vidanaarachchi
@rajithv
May 26 2016 08:46

@abinashmeher999 @isuruf
in the cwrapper I want to call the real_part function of SymEngine::Complex class, I'm currently trying this,

void complex_real_part(basic s, basic com)
{
    s->m = com->m.real_part();
}

but it fails as it is of RCP type. How do I get the SymEngine::Complex object from the RCP?

Isuru Fernando
@isuruf
May 26 2016 08:48
See, integer_get_si for an example
Abinash Meher
@abinashmeher999
May 26 2016 08:54
Yes. You should first check it is indeed a Complex. And then you can dereference the RCP and call real_part
Rajith Vidanaarachchi
@rajithv
May 26 2016 09:04
thanks @isuruf @abinashmeher999 got it
Abhinav Agarwal
@abhinavagarwal07
May 26 2016 10:09
@isuruf is there any online compiler for mathematica/ maple?
Isuru Fernando
@isuruf
May 26 2016 10:13
wolfram cloud is there
@abhinavagarwal07, I can write the maple ones
Rajith Vidanaarachchi
@rajithv
May 26 2016 11:28
This message was deleted
Srajan Garg
@srajangarg
May 26 2016 12:59
@isuruf Any other changes required, apart from the ones you mentioned in #951 ?
Abhinav Agarwal
@abhinavagarwal07
May 26 2016 14:47

also symbench needs to be added for mathematica and maple

what is benchmarks/symbench.nb