Hi Simon,

f.parent() gives indeed "Symbolic Ring".  But at the beginning I defined

P.<s> = CC[]
P.fraction_field()

with the display

Fraction Field of Univariate Polynomial Ring in s over Complex Field
with 53 bits of precision

so I'm a bit confused.

f.numerator() and f.denominator.de() provide me some results, but
these are not the ones I'm looking for.
Actually, f is given as f=c/d, but with c or d  not polynomials or not
given in the form a_0*s^n+a_1*s^(n-1)+...+a_n.
Unfortunately, f.numerator() delivers c, not a.

Cheers,

Urs






2011/10/19 Simon King <[email protected]>

> Hi Urs,
>
> On 18 Okt., 16:37, Urs Hackstein <[email protected]> wrote:
> > Our goal is to find representatives a and b in the polynomial ring
> > over the complex numbers such that f=a/b. Can sage do this for me?
> > (Simple commands like simplify or expand don' t work.)
>
> You mention simplify and expand - which probably means that you are in
> fact *not* working in the quotient field of a polynomial ring, because
> simplify and expand are typical methods of symbolic expressions.
>
> Could you tell us the result of f.parent()?
>
> If f.parent() is a quotient field, then methods like  f.numerator()
> and f.denominator() will provide you with the polynomials a and b you
> were looking for.
>
> Cheers,
> Simon
>
> --
> 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-support
> URL: http://www.sagemath.org
>

-- 
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-support
URL: http://www.sagemath.org

Reply via email to