Closed Ravindu-Hirimuthugoda closed 1 year ago
I'd say this is a symengine issue. Are you sure that Symengine supports floordiv? @isuruf might know this off the top of his head.
Yes floordiv can be used in Symengine.
By adding following code in the pymbolic/interop/common.py
under PymbolicToSympyLikeMapper
class might be a fix.
def map_floor_div(self, expr):
return self.sym.floor(self.rec(expr.numerator) / self.rec(expr.denominator))
I'd be happy to look at a PR. Make sure to include a test.
Sure. I'll do
https://github.com/symengine/symengine.py/pull/441 should fix the //
operator for symengine
Thanks!
There was an error encountered while attempting to convert a
Pymbolic
floor division
expression to aSymEngine
expression.Error: