On Dec 31, 2007, at 5:00 PM, Kishore wrote:

> Hello ,
>
> I am new to SAGE and have installed the Windows version (along with
> VMWare).
> I am currently using SAGE for doing polynomial arithmetic over finite
> fields. I would be creating a script that interactively accepts
> polynomials from user and use the same to process it.

A better forum for support would probably be sage-support, however  
I'm happy to answer your question.

> I am currently using the Python built-in IO function "input()" for
> accepting from the keyboard.
> Unfortunately, the entered polynomial will be stored as "string" type
> and I wouldn't be able to use it for Polynomial Arithmetic.
>
> What I seek is a means of converting this string to a standard
> polynomial type as in sage.rings.polynomial.

That depends on what kind of string you have. If it's something like  
"x^4 - 3*x + 2" then you can do

sage: F = GF(7) # construct a finite field
sage: x = polygen(F, 'x') # or R.<x> = F['x']
sage: sage_eval('x^4 - 3*x + 2', {'x':x})
x^4 + 4*x + 2

> Also I would appreciate if you can enlighten me with the types of
> multivariate/univariate polynomial representations supported in SAGE.

Internally, single-variate polynomials over finite fields use NTL  
(and, in the future FLINT), and multi-variate polynomials use Singular.

>
> Thanks in advance
>
> Best Regards
> Kishore
>
> 

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to