These are chat archives for symengine/symengine
RCP<const Basic> z = rcp(new Symbol("z"));
RCP<const Basic> z = symbol("z");
rcpdirectly, the better.
Mul, we cannot just use
mul, because the
mulmethod is slow, it does all kinds of checks and simplifications, while
rcp(new Mul(coef, dict))is fast and we want to use it when you know the
dictare in canonical form.