These are chat archives for symengine/symengine
__dealloc__methods. It's okay to declare them in Basic class right?
var_in Polynomial which holding the variable of Univariate Polynomial by
@certik, SymPy has
I as a special symbol and
1+2*I is an
Add but in SymEngine,
1+2*I is a
Complex type. I started writing a class
ComplexDouble which would store
One issue is that we cannot have two different types for real part and imaginary part. i.e. we cannot have
0.1+2*I as in SymPy. SymEngine would have to convert it into
0.1+2.0*Iwhich is what happens with Sage.
__dealloc__method to Basic, if it works, i.e. run it under Valgrind, or use print statements to ensure that it is being called properly.
a+b*Iis handled by a numeric class. The user can decide what exact class to use for Complex numbers, whether rational complex (our current default), or ComplexDouble, or arbitrary precision floating point, etc.
ringsdo not take negative exponents. One way to deal with it is to modify
ringto accept it. Or we can make make individual functions multiply out the negative exponents before carrying out operations. Are there issues with modifying