Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - First n terms of polynomial
Author Message
  Post subject:  Re: First n terms of polynomial  Reply with quote
Thank you ederc, that is exactly what I needed.
Post Posted: Mon Jan 24, 2011 10:11 pm
  Post subject:  Re: First n terms of polynomial  Reply with quote
Assume you have defined your polynomial p in SINGULAR. Then you can define an intvec v of the positions of the terms in p (w.r.t. the ordering) you want to be returned, say
Code:
intvec v = 1,2,3,8,12;

Then you can use
Code:
p[v]

to get the sum of the terms 1,2,3,8 and 12 of p.
See also http://www.singular.uni-kl.de/Manual/la ... htm#SEC186.
Post Posted: Mon Jan 24, 2011 12:19 pm
  Post subject:  First n terms of polynomial  Reply with quote
If I have a polynomial, f, with many terms, is there a function that returns another polynomial that is the first n terms f with respect to the term order. For example, say f has 25 terms, I'd like to define a new polynomial that is the first 10 terms of f with respect to a term order.
Post Posted: Sun Jan 23, 2011 9:35 pm


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