These are chat archives for symengine/symengine
@certik I looked into Pynac a little bit and here are some thoughts
Pynac keeps references to integer objects and uses python operations for add, mul, pow, etc.
We could have a implementation like it. We can have a Number type that resembles the numeric class of pynac/ginac. We'll use that class when the type cannot be converted to number formats we support. (We'll have to move the functionality of pow (number^number) to methods of each class).
For eg: Mod is not a class we support, so Mod(3,7)*4 would first convert 4 to a python object, then the two objects would be multiplied and then run through a sympify function(a function written in cython) that returns a RCP<const Number> instance.
We'll need to finish the eval functions. (And maybe include another class to hold the double values)
basic poly manipulation-as mentioned by @shivamvats
divide-methods like cancel( ), factorization, GCD, poly roots