[sage-devel] Re: The lcm of two univariate polynomials

2014-01-18 Thread rjf
On Thursday, January 16, 2014 10:45:31 AM UTC-8, John H Palmieri wrote: > > > > On Wednesday, January 15, 2014 2:17:10 PM UTC-8, rjf wrote: >> >> If the polynomial is multivariate, you need to specify the >> quotient/remainder "main variable". >> I don't see it in the syntax you give below. >> c

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-16 Thread John H Palmieri
On Wednesday, January 15, 2014 2:17:10 PM UTC-8, rjf wrote: > > If the polynomial is multivariate, you need to specify the > quotient/remainder "main variable". > I don't see it in the syntax you give below. > consider x+y divided by x-y. can give 1 with remainder 2y. > It can also give -1 wi

Re: [sage-devel] Re: The lcm of two univariate polynomials

2014-01-16 Thread rjf
On Thursday, January 16, 2014 5:12:32 AM UTC-8, William wrote: > > > > > > Awesome. I had never heard of a ring or group until my last year of > undergraduate studies! Maybe sage is just my grand scheme to increase the > chance that people learn about some of the most basic (and beautiful) i

Re: [sage-devel] Re: The lcm of two univariate polynomials

2014-01-16 Thread William Stein
On Jan 16, 2014 5:06 AM, "Simon King" wrote: > > Hi! > > On 2014-01-15, rjf wrote: > > PS, I think it is unfortunate if a user of Sage must know what is meant by > > a polynomial ring in order to > > do something from high school algebra. Just saying. > > Just saying: I think it is unfortunate

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-16 Thread Simon King
Hi again! On 2014-01-16, rjf wrote: >> at least not in the sense that we are accustomed to in the univariate >> case. I was only hoping to address the univariate case. >> > > This is a kind of "all the math I need I learned in high school" attitude > that sometimes gets people into trouble. Ex

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-16 Thread Simon King
Hi! On 2014-01-15, rjf wrote: > PS, I think it is unfortunate if a user of Sage must know what is meant by > a polynomial ring in order to > do something from high school algebra. Just saying. Just saying: I think it is unfortunate that some (not all) high schools pretend to teach polynomials

Re: [sage-devel] Re: The lcm of two univariate polynomials

2014-01-15 Thread rjf
On Wednesday, January 15, 2014 3:01:41 PM UTC-8, Gregory Bard wrote: > > On Jan 15, 2014, at 5:17 PM, rjf wrote: > > If the polynomial is multivariate, you need to specify the > quotient/remainder "main variable". > I don't see it in the syntax you give below. > consider x+y divided by x-y. ca

Re: [sage-devel] Re: The lcm of two univariate polynomials

2014-01-15 Thread Gregory Bard
On Jan 15, 2014, at 5:17 PM, rjf wrote: > If the polynomial is multivariate, you need to specify the quotient/remainder > "main variable". > I don't see it in the syntax you give below. > consider x+y divided by x-y. can give 1 with remainder 2y. > It can also give -1 with remainder 2x. > RJF

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-15 Thread rjf
If the polynomial is multivariate, you need to specify the quotient/remainder "main variable". I don't see it in the syntax you give below. consider x+y divided by x-y. can give 1 with remainder 2y. It can also give -1 with remainder 2x. RJF PS, I think it is unfortunate if a user of Sage mus

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-14 Thread John H Palmieri
On Tuesday, January 14, 2014 9:12:00 AM UTC-8, Andrew wrote: > > > > On Tuesday, 14 January 2014 17:21:41 UTC+1, rjf wrote: >> >> Division with remainder is available in Maxima as the command divide. >> e.g. divide(a, x-4,x) returns the pair, x-1 and 2 for >> quotient and remainder. >> LCM i

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-14 Thread Andrew
On Tuesday, 14 January 2014 17:21:41 UTC+1, rjf wrote: > > Division with remainder is available in Maxima as the command divide. > e.g. divide(a, x-4,x) returns the pair, x-1 and 2 for > quotient and remainder. > LCM is available in Maxima as lcm. It probably has the semantics you > expect

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-14 Thread rjf
On Monday, January 13, 2014 4:32:10 PM UTC-8, Gregory Bard wrote: > > Hi everyone. I might be confused but I think I've found something not > quite right. > > The following code: > > ### > a(x) = x^2 - 5*x + 6 > b(x) = x^2 - 8*x + 15 > > f(x) = lcm( a(x), b(x) ) > > p

[sage-devel] Re: The lcm of two univariate polynomials

2014-01-13 Thread Nils Bruin
On Monday, January 13, 2014 4:32:10 PM UTC-8, Gregory Bard wrote: > > Hi everyone. I might be confused but I think I've found something not > quite right. > > The following code: > > ### > a(x) = x^2 - 5*x + 6 > b(x) = x^2 - 8*x + 15 > For polynomial arithmetic, you're