up previous next
ReadExpr

Read RINGELEM expression from string

Syntax
ReadExpr(R: RING, expr: STRING): RINGELEM

Description
This function reads a RINGELEM expression from a STRING . It is handy to input elements defined in different rings without calling use .

Example
/**/  P ::= QQ[a,b];
/**/  S := NewPolyRing(NewFractionField(P), "x,y");
/**/  ReadExpr(S, "(a^2-b^2)*(x+y)/(a+b)");
(a -b)*x +(a -b)*y

See Also