Bill Allombert on Fri, 22 Dec 2017 14:00:01 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: t_QUAD printed representation


On Fri, Dec 22, 2017 at 02:28:11PM +0200, Dirk Laurie wrote:
> 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).

Ah yes, you should use D=poldisc(w) instead.
This is a historical misnaming.

Cheers,
Bill.