[sage-devel] Fwd: I made a good edu app for notebook

2007-03-11 Thread Timothy Clemans
I made a quadratic factoring app that shows all three tables that I need the kid I tutor to make. It can not deal with negatives right now. I will work on adding that support. There are some HTML problems with the app. It is very functional. Any comments would be nice. I have saved the worksheet o

[sage-devel] Re: Rational construction

2007-03-11 Thread William Stein
On 3/11/07, Robert Miller <[EMAIL PROTECTED]> wrote: > > Say I want a function to return a rational, and I have the integers > for numerator and denominator. Right now, I have to call the Rational > constructor twice: > > return Rational(self.size())/Rational(n) > > It seems natural to have someth

[sage-devel] Rational construction

2007-03-11 Thread Robert Miller
Say I want a function to return a rational, and I have the integers for numerator and denominator. Right now, I have to call the Rational constructor twice: return Rational(self.size())/Rational(n) It seems natural to have something like elif isinstance(x, tuple): .. aro