Re: [sympy] What is the difference between as_numer_denom and fraction?

2021-03-19 Thread Oscar Benjamin
On Fri, 19 Mar 2021 at 21:18, Aaron Meurer wrote: > > fraction() only takes the numerator and denominator of the top-level > expression, without doing any simplification. It should be used in > places where you don't care about subexpressions and want something > very fast. as_numer_denom()

Re: [sympy] What is the difference between as_numer_denom and fraction?

2021-03-19 Thread Aaron Meurer
fraction() only takes the numerator and denominator of the top-level expression, without doing any simplification. It should be used in places where you don't care about subexpressions and want something very fast. as_numer_denom() simplifies subexpressions when extracting numerator and

[sympy] What is the difference between as_numer_denom and fraction?

2021-03-19 Thread Paul Royik
And why one needs both these methods? -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit