Thank you so much, It was so helpful.
On Monday, April 29, 2013 11:46:22 PM UTC+4:30, Simon King wrote:
>
> Hi Neda, 
>
> On 2013-04-29, Neda <neda.d...@gmail.com <javascript:>> wrote: 
> > I want to compute S(f,g) , but this command doesn't work and it said 
> there 
> > is no spol command, could you please tell me how can I compute it? 
> > R.<x,y,z>=PolynomialRing(QQ,3,'lex') 
> > f=4*x^2*z-7*y^2 
> > g=x*y*z^2+3*x*z^4 
> > spol(f,g) 
>
> spol is a function defined in the module 
> sage.rings.polynomial.toy_buchberger. 
>
> Of course, most functions defined in Sage are not imported into the 
> global namespace when you start the program---otherwise, it would 
> be a total mess. 
>
> So, you need to import the function first: 
>    sage: from sage.rings.polynomial.toy_buchberger import spol 
>    sage: R.<x,y,z>=PolynomialRing(QQ,3,'lex') 
>    sage: f=4*x^2*z-7*y^2 
>    sage: g=x*y*z^2+3*x*z^4 
>    sage: spol(f,g) 
>    -1/3*x^2*y*z^2 - 7/4*y^2*z^3 
>
> Note that the functions in toy_buchberger are not intended for an 
> efficient computation of Gröbner bases---that's why it is called 
> "toy". The purpose is educational. 
>
> Best regards, 
> Simon 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to