Hi Nathan,

What do you mean by calling absolute value or norm of a polynomial? Why 
should these methods even be defined?

Cheers,
J



On Friday, January 4, 2013 1:50:14 PM UTC, Nathann Cohen wrote:
>
> Helloooooooo everybody !!!
>
> Of course I do not know if what I do has any meaning, but I still get 
> exceptions by calling the methods of a polynomial :
>
> sage: p = 
> sage.graphs.matchpoly.matching_polynomial(graphs.CompleteGraph(3))         
>            
> sage: p
> x^3 - 3*x
> sage: p.abs()
> ...
> AttributeError: 
> 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'
>  
> object has no attribute '__abs__'
> sage: p.N()
> TypeError: unable to coerce to a ComplexNumber: <type 
> 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
> sage: p.additive_order()
> NotImplementedError: 
>
> So if anybody knows where this comes from, and why an object has method 
> that cannot be used.... :-P
>
> Nathann 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to