Re: Fractions

2008-04-28 Thread Fabio Tonti
If you use the notebook (of course, it also works with the interactive ipython interface), you could just type this: a=2/3 After having defined the fraction, type a.TAB, which gives a list of available methods. Having looked it up there, you'll find a.denom() and a.numer() quite useful. Fabio

Re: Fractions

2008-04-28 Thread Fabio Tonti
oh please somebody delete my post! I'm so confusing different mailing lists. BIG Apology. Fabio On Mon, Apr 28, 2008 at 12:56 PM, Fabio Tonti [EMAIL PROTECTED] wrote: If you use the notebook (of course, it also works with the interactive ipython interface), you could just type this: a=2/3

Fractions

2008-04-28 Thread Colin Gillespie
Dear All, Is there a method for automatically extracting the numerator and denominator of a fraction? For example, f= a/b f.numerator() a Thanks Colin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sympy

Re: Fractions

2008-04-28 Thread Ondrej Certik
On Mon, Apr 28, 2008 at 12:57 PM, Fabio Tonti [EMAIL PROTECTED] wrote: oh please somebody delete my post! I'm so confusing different mailing lists. BIG Apology. Thanks for the answer --- the same methodology applies to sympy as well, just start ipython (or isympy), type f = x/y f.TAB to get