Re: [sage-support] Solve polynomial over ring

2013-01-30 Thread Santanu Sarkar
Thank you.

On 30 January 2013 10:17, Charles Bouillaguet  wrote:

> On Jan 30, 2013, at 3:20 PM, Santanu Sarkar wrote:
>
> >
> > N=8
> > R.=Integers(N)[]
> > f=x^2-1
> > print f.roots()
>
>
> Try :
>
> sage: print f.roots(multiplicities=False)
> [1, 3, 5, 7]
>
> It's a start...
> ---
> Charles Bouillaguet
> http://www.lifl.fr/~bouillaguet/
>
> --
> 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.
>
>
>

-- 
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.




Re: [sage-support] Solve polynomial over ring

2013-01-30 Thread Charles Bouillaguet
On Jan 30, 2013, at 3:20 PM, Santanu Sarkar wrote:

> 
> N=8
> R.=Integers(N)[]
> f=x^2-1
> print f.roots()


Try :

sage: print f.roots(multiplicities=False)
[1, 3, 5, 7]

It's a start... 
---
Charles Bouillaguet
http://www.lifl.fr/~bouillaguet/

-- 
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.




[sage-support] Solve polynomial over ring

2013-01-30 Thread Santanu Sarkar
I want to solve a polynomial over ring.
However my code does not work.


N=8
R.=Integers(N)[]
f=x^2-1
print f.roots()

In my case, N is always a power of 2.

-- 
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.