These are chat archives for symengine/symengine

4th
Jan 2016
Ondřej Čertík
@certik
Jan 04 2016 03:29
I finished #738, it's ready for a review.
Srajan Garg
@srajangarg
Jan 04 2016 10:33
>>> x = Symbol('x')
>>> y = Add(1/x**3, 1/x**6)
>>> y.as_numer_denom()
(x**6 + x**3, x**9)

SymPy gives me this, but I feel this isn't correct, and a better approach should be used to give the correct answer

(x**3 + 1, x**6)

Should I stick with SymPy's way of doing it, or do it in a better way (which doesn't seem to be slower)? (after proper testing) @isuruf @certik

Abhinav Agarwal
@abhinavagarwal07
Jan 04 2016 12:33
@isuruf
how can we order if user passes non-integer/ non-rational number ?
Isuru Fernando
@isuruf
Jan 04 2016 12:38
Based on the hash
Isuru Fernando
@isuruf
Jan 04 2016 14:00
@srajangarg, go ahead (x**3+1, x**6) is better
Ralf Stephan
@rwst
Jan 04 2016 16:36
@isuruf @srajangarg +1