These are chat archives for symengine/symengine

17th
Mar 2016
Akash Trehan
@CodeMaxx
Mar 17 2016 19:52
What are rings.cpp and rings.h being used for?
Akash Trehan
@CodeMaxx
Mar 17 2016 20:33
For UnivariateIntPolynomial why do we need an eval_bit function when the same functionality can be achieve through eval passing 2**n as an argument ? Is this a frequently used function for bit manipulation or something?
Just curious :smile:
Charles Chen
@chenchfort
Mar 17 2016 20:34
I believe it’s because it’s faster.
Akash Trehan
@CodeMaxx
Mar 17 2016 20:35
Oh I see it uses bit shifts.
Akash Trehan
@CodeMaxx
Mar 17 2016 20:46
@chenchfort Any specific reasons for keeping UnivariateExprPolynomial as a separate class and not have all its functionality in UnivariatePolynomial itself ? Is it because you expect UnivariatePolynomial to be used in more such classes?
Charles Chen
@chenchfort
Mar 17 2016 20:49
UnivariateExprPolynomial serves to overload the operators for UnivariatePolynomial, just like how the class Expression is to Basic. I believe there’s an issue with operator overloading for Basic classes.
Akash Trehan
@CodeMaxx
Mar 17 2016 20:58
Thats a nice explanation! Thanks!