Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Q2: Odd behavior for poly input
PostPosted: Thu Aug 11, 2005 5:31 pm 
Hi,

I don't get this:

> ring Fp=5,x,dp;
> poly f=7*x^3+9*x^2+8*x+3;
// ** redefining f **
> f;
2*x^3-x^2-2*x-2
> poly f=7x^3+9x^2+8x+3;
// ** redefining f **
> f;
-2*x^3+x^2-2*x-2

This is from 2.0.3 (Mac OS X 10.2.4). 'short=0' has been
entered.

The only difference between the two copies of 'f' is that
I didn't use the '*' between coefficient and indeterminate.

The second seems wrong to me, while the first seems correct.

Help!

Regards,

Justin


email: [email protected]
Posted in old Singular Forum on: 2003-04-10 03:36:32+02


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 08, 2005 11:48 am 

Joined: Mon Aug 29, 2005 9:22 am
Posts: 41
Location: Kaiserslautern, Germany
As  7x^3 is not unique (there are no brackets) there must
be a default: 7x^3 = (7x)^3, 7*x^3 = 7*(x^3).

The reason is that in Singular 7x is a monomial (taken to
the 3rd power) while 7*x is 7 * the monomial x (taken to
the 3rd power).
To be on the safe side you can always use brackets.

This is explained in the Manual:
6.3 Miscellaneous oddities

Gert-Martin

email: [email protected]
Posted in old Singular Forum on: 2003-04-15 22:21:56+02


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 21, 2005 8:27 pm 
> The reason is that in Singular 7x is a monomial (taken to
> the 3rd power) while 7*x is 7 * the monomial x (taken to
> the 3rd power).
> To be on the safe side you can always use brackets.

That's counter-intuitive. I guess I need to go back and read up on what a monomial is. I'd naturally expect '*' (implicit or not) to bind less tightly than '^'.

> This is explained in the Manual:
> 6.3 Miscellaneous oddities

I looked at this section, but just didn't make the connection.

Thanks for the clarification.

Regards,

Justin


email: [email protected]
Posted in old Singular Forum on: 2003-04-16 21:05:37+02


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:00 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group