[Maxima] Another silly question: is sqrt(3) an integer

Jaime Villate villate at fe.up.pt
Sat Oct 10 04:34:10 CDT 2009


On Sáb, 2009-10-10 at 16:36 +1100, Billinghurst, David (RTATECH) wrote:
> I thought that the askinteger() function might be part of the
> solution.
> However:
> 
> (%i1) askinteger(sqrt(3));
> Is sqrt(3) an integer?
> no;
> (%o1)                                 no

Why not something like this?:

(%i11) is ( equal(sqrt(3),fix(3)));
(%o11)                     false

Jaime



More information about the Maxima mailing list