Dirk Laurie on Fri, 22 Dec 2017 13:28:20 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: t_QUAD printed representation |
2017-12-22 13:18 GMT+02:00 Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>: > On Thu, Dec 21, 2017 at 11:56:13AM -0500, Sam Steingold wrote: >> Hi, >> >> --8<---------------cut here---------------start------------->8--- >> ? quadunit(5) >> %3 = w >> ? type(%3) >> %4 = "t_QUAD" >> ? type(w) >> %5 = "t_POL" >> ? >> --8<---------------cut here---------------end--------------->8--- >> >> how do I print the t_QUAD objects so that they can be read back? > > Print a+b*w as a+b*quadgen(D) > with D=quaddisc(w). ? quadunit(5) %1 = w ? D=quaddisc(%1) *** at top-level: D=quaddisc(%1) *** ^------------ *** quaddisc: incorrect type in quaddisc (t_QUAD). *** Break loop: type 'break' to go back to GP prompt break> ? D=quaddisc(w) *** at top-level: D=quaddisc(w) *** ^----------- *** quaddisc: incorrect type in quaddisc (t_POL). *** Break loop: type 'break' to go back to GP prompt break>