Fwd: A question about the rat command



You can convert objects from rational (CRE) form to general representation
using totaldisrep.

        is( ident(2) = rat( ident(2 ) ) ) => false

but

        is( ident(2) = totaldisrep(  rat( ident(2) ) ) ) => true

You might also want to use "equal" rather than "=" for comparison here.
Unfortunately, there seems to be a bug in 5.9.3/GCL/Windows:

       is( equal( ident(2), rat( ident(2 ) ) ) )  => internal error

           -s


On 6/5/06, Robert Dodier <robert.dodier at gmail.com> wrote:
>
> I know that rat(0) has a different internal
> representation than 0 but I would like to know if I
> could remove this property later,...
> (%i91) if rat(zeromatrix(2,2))=zeromatrix(2,2) then(hi);
> (%o91) false
>