Hi! On Jul 28, 5:29 pm, eggartmumie <eggartmu...@googlemail.com> wrote: > I read the reference, I followed Your advice, all I get is a > polynomial of type > 'sage.rings.polynomial.polynomial_zz_pex.Polynomial_ZZ_pEX' > which I connot coerce to the intended data type (I tried e.g.
And what data type do you want? In your original post, you asked for advice on creating a polynomial ring. There are many different implementations of polynomials, which should, on the user interface, behave more or less the same. So, whether it is Polynomial_ZZ_pEX or some other polynomial type shouldn't make much difference. But: > from sage.symbolic.expression_conversions import polynomial; > polynomial(g,ring = PR) > > or also > > polynomial(g, base_ring = F) > > and the like) so that I cannot differentiate it ... That sounds like you don't want a polynomial but a symbolic expression! > vars = var('x'); g = function('g',x); g(x)=goppapolynomial(F,x); # Indeed, by the last line, g is an expression, not a polynomial. > kind of discouraging experience, any advice welcome It seems to me that your problem arose as follows: 1) You thought: "I have a polynomial, so, let's create a polynomial." 2) You were taught how to create a polynomial. 3) You tested whether polynomials provide the functionality you need (and found that this is not the case). The point is that some people (including myself) believe that polynomials belong to algebra, whereas differentiation is calculus. A polynomial and a polynomial function are two very different things. So, how (and why) would one differentiate a polynomial? My advice would be to adopt a different problem solving strategy: 1) First think what you want to do. Apparently you want to differentiate. So, search the reference for "differential", "differentiate" etc. 2) This search will probably tell you what data types you can work with. 3) Try to transform your data into one of the types found in step 2). Best regards, Simon -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org